summaryrefslogtreecommitdiffstats
path: root/src/printsupport/dialogs/qpagesetupdialog_unix_p.h
diff options
context:
space:
mode:
authorMartin Klapetek <mklapetek@kde.org>2013-09-18 16:22:48 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-20 00:50:04 +0200
commit00e50fb97c3d9b91193fef50d63b430e4648ac52 (patch)
tree5e4753cf8d8b7d3c2f5f54600f5d1ce6013f511a /src/printsupport/dialogs/qpagesetupdialog_unix_p.h
parent438912f27350cfe5f63f8abc68f4fc99614ee7c5 (diff)
Expose more CUPS options via the 'Properties' dialog
On systems with CUPS support users can now choose how many pages from a document are to be printed on paper. This can vary from 1 page per document to 16 pages per document. The page preview changes upon the users selection. Also included in the patch is an option to choose the flow for text. Users can now print documents in the "Right to Left" order or "Bottom to Top", including many other options. [ChangeLog][QtPrintSupport][QPrintDialog] Added support for setting CUPS Pages Per Sheet and Pages Per Sheet Layout options Change-Id: I4e60a4523c6e06d4c15fe9ee9590248fa7ae2038 Reviewed-by: John Layt <jlayt@kde.org>
Diffstat (limited to 'src/printsupport/dialogs/qpagesetupdialog_unix_p.h')
-rw-r--r--src/printsupport/dialogs/qpagesetupdialog_unix_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/printsupport/dialogs/qpagesetupdialog_unix_p.h b/src/printsupport/dialogs/qpagesetupdialog_unix_p.h
index a83d6e4fbe..b96d300ab9 100644
--- a/src/printsupport/dialogs/qpagesetupdialog_unix_p.h
+++ b/src/printsupport/dialogs/qpagesetupdialog_unix_p.h
@@ -63,7 +63,6 @@ QT_BEGIN_NAMESPACE
class QPrinter;
class QPagePreview;
-class QCUPSSupport;
class QPageSetupWidget : public QWidget {
Q_OBJECT
@@ -79,6 +78,7 @@ public:
private slots:
void _q_pageOrientationChanged();
void _q_paperSizeChanged();
+ void _q_pagesPerSheetChanged();
void unitChanged(int item);
void setTopMargin(double newValue);
void setBottomMargin(double newValue);
@@ -86,6 +86,7 @@ private slots:
void setRightMargin(double newValue);
private:
+ friend class QUnixPrintWidgetPrivate;
Ui::QPageSetupWidget widget;
QPagePreview *m_pagePreview;
QPrinter *m_printer;
@@ -97,6 +98,8 @@ private:
qreal m_currentMultiplier;
bool m_blockSignals;
bool m_cups;
+
+ void initPagesPerSheet();
};
QT_END_NAMESPACE