Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QPageRanges::Range Struct Reference

\inmodule QtGui More...

#include <qpageranges.h>

+ Collaboration diagram for QPageRanges::Range:

Public Member Functions

bool contains (int pageNumber) const noexcept
 \variable QPageRanges::Range::from
 

Public Attributes

int from = -1
 
int to = -1
 

Friends

bool operator== (Range lhs, Range rhs) noexcept
 
bool operator!= (Range lhs, Range rhs) noexcept
 
bool operator< (Range lhs, Range rhs) noexcept
 

Detailed Description

\inmodule QtGui

The QPageRanges::Range struct holds the from and to endpoints of a range.

See also
QPageRanges::toRangeList()

Definition at line 39 of file qpageranges.h.

Member Function Documentation

◆ contains()

bool QPageRanges::Range::contains ( int pageNumber) const
inlinenoexcept

\variable QPageRanges::Range::from

the lower endpoint of the range

\variable QPageRanges::Range::to

the upper endpoint of the range

Returns true if pageNumber is within the interval {[from, to]}; otherwise returns false.

Definition at line 42 of file qpageranges.h.

Friends And Related Symbol Documentation

◆ operator!=

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

Definition at line 46 of file qpageranges.h.

◆ operator<

bool operator< ( Range lhs,
Range rhs )
friend

Definition at line 48 of file qpageranges.h.

◆ operator==

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

Definition at line 44 of file qpageranges.h.

Member Data Documentation

◆ from

int QPageRanges::Range::from = -1

Definition at line 40 of file qpageranges.h.

Referenced by QPageRanges::firstPage().

◆ to

int QPageRanges::Range::to = -1

Definition at line 41 of file qpageranges.h.

Referenced by QPageRanges::lastPage().


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