KDWinUtils
Helper library for MFC to Qt migration
|
The Position struct is the position of the item in the view. More...
#include <klistmodel.h>
Public Member Functions | |
operator bool () const noexcept | |
Position ()=default | |
Position (int p) noexcept | |
Public Attributes | |
int | pos = -1 |
Friends | |
bool | operator!= (Position lhs, Position rhs) noexcept |
bool | operator!= (Position p, Private::CompareAgainstLiteralZero) noexcept |
bool | operator!= (Position p, std::nullptr_t) noexcept |
bool | operator== (Position lhs, Position rhs) noexcept |
bool | operator== (Position p, Private::CompareAgainstLiteralZero) noexcept |
bool | operator== (Position p, std::nullptr_t) noexcept |
The Position struct is the position of the item in the view.
This struct is used to replace POSITION in MFC. It corresponds to the item line. Note that there is no notions of columns here. You can test if the position exists with the bool operator.
|
default |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
Returns true if the position exists.
|
friend |
|
friend |
|
friend |
|
friend |
int KListModel::Position::pos = -1 |