75 bool myOk =
setSize(formatString);
135 bool setSize(QString formatString);
void setSize(format f)
Sets paperSize to a given standard format.
paperSize(QString formatString, bool *ok=0)
Constructs paperSize from a string.
paperSize(format f)
Constructs paperSize for given standard format.
length width() const
Width of the paper.
bool isNonPositive() const
Check if length is positive.
void setWidth(length width)
Sets paper width.
length height() const
Height of the paper.
paperSize()
Constructs empty paperSize.
paperSize(length width, length height)
Constructs paperSize of given width and height.
The length stores a length and converts between units.
The paperSize class identifies and stores paper sizes.
void setHeight(length height)
Sets paper height.
format
List of supported standard sizes.
bool isEmpty() const
Checks for empty paper size.