summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qprinterinfo_p.h
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2013-01-01 01:33:42 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-11 17:50:56 +0100
commit83e6d1fe6006ad8e3cf37d5ca412aedae5aab9a4 (patch)
tree3d0bce6a62c444f4655292084530c9cfe1561f76 /src/printsupport/kernel/qprinterinfo_p.h
parent78d4c949a4556255303cb3fc2ce0d91900167f43 (diff)
Add support for getting the paper names available for the printer
Task-number: QTBUG-27714 Change-Id: I9bc6f1188f262e43f581add058d7895e1b5bd9e3 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/printsupport/kernel/qprinterinfo_p.h')
-rw-r--r--src/printsupport/kernel/qprinterinfo_p.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/printsupport/kernel/qprinterinfo_p.h b/src/printsupport/kernel/qprinterinfo_p.h
index 97f4fd8a56..d4bb08f1f5 100644
--- a/src/printsupport/kernel/qprinterinfo_p.h
+++ b/src/printsupport/kernel/qprinterinfo_p.h
@@ -58,6 +58,7 @@
#ifndef QT_NO_PRINTER
#include "QtCore/qlist.h"
+#include "QtCore/qpair.h"
QT_BEGIN_NAMESPACE
@@ -65,7 +66,8 @@ class QPrinterInfoPrivate
{
public:
QPrinterInfoPrivate(const QString& name = QString()) :
- name(name), isDefault(false), index(-1), hasPaperSizes(false)
+ name(name), isDefault(false), index(-1), hasPaperSizes(false),
+ hasPaperNames(false)
{}
~QPrinterInfoPrivate()
{}
@@ -81,6 +83,8 @@ public:
mutable bool hasPaperSizes;
mutable QList<QPrinter::PaperSize> paperSizes;
+ mutable bool hasPaperNames;
+ mutable QList<QPair<QString, QSizeF> > paperNames;
};