Logo    
KDWinUtils
Helper library for MFC to Qt migration
Loading...
Searching...
No Matches
KListModel::Position Struct Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Position() [1/2]

KListModel::Position::Position ( )
default

◆ Position() [2/2]

KListModel::Position::Position ( int p)
inlineexplicitnoexcept

Member Function Documentation

◆ operator bool()

KListModel::Position::operator bool ( ) const
inlineexplicitnoexcept

Returns true if the position exists.

Friends And Related Symbol Documentation

◆ operator!= [1/3]

bool operator!= ( Position lhs,
Position rhs )
friend

◆ operator!= [2/3]

bool operator!= ( Position p,
Private::CompareAgainstLiteralZero  )
friend

◆ operator!= [3/3]

bool operator!= ( Position p,
std::nullptr_t  )
friend

◆ operator== [1/3]

bool operator== ( Position lhs,
Position rhs )
friend

◆ operator== [2/3]

bool operator== ( Position p,
Private::CompareAgainstLiteralZero  )
friend

◆ operator== [3/3]

bool operator== ( Position p,
std::nullptr_t  )
friend

Member Data Documentation

◆ pos

int KListModel::Position::pos = -1

The documentation for this struct was generated from the following file: