summaryrefslogtreecommitdiffstats
path: root/src/printsupport/dialogs/qpagesetupdialog.cpp
diff options
context:
space:
mode:
authorJohn Layt <jlayt@kde.org>2012-05-20 20:38:21 +0100
committerQt by Nokia <qt-info@nokia.com>2012-06-07 21:18:36 +0200
commitb9fc8bc10f20a0d106db5dd579669cd88b250472 (patch)
tree4a28492908907867f8fc1f13335e90d06cf2a462 /src/printsupport/dialogs/qpagesetupdialog.cpp
parent88e735c9c92487f7ff51a06cfd66746afa655b2d (diff)
SIC: QPrintSupport - Remove options api from QPageSetupDialog
QPageSetupDialog has an enum PageSetupDialogOption, however one option had support removed in Qt 4.5 and the remaining 2 are actually for an internal implementation detail that could lead to memory leaks if changed by an app. This change removes the enum and the api as they is now useless. Change-Id: I9a3ab689dcab57151de894db5ebf22f6ad90d71e Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: John Layt <jlayt@kde.org>
Diffstat (limited to 'src/printsupport/dialogs/qpagesetupdialog.cpp')
-rw-r--r--src/printsupport/dialogs/qpagesetupdialog.cpp112
1 files changed, 0 insertions, 112 deletions
diff --git a/src/printsupport/dialogs/qpagesetupdialog.cpp b/src/printsupport/dialogs/qpagesetupdialog.cpp
index 53b304df9e..3c3362c550 100644
--- a/src/printsupport/dialogs/qpagesetupdialog.cpp
+++ b/src/printsupport/dialogs/qpagesetupdialog.cpp
@@ -98,118 +98,6 @@ class QPageSetupDialogPrivate : public QAbstractPageSetupDialogPrivate
};
/*!
- \enum QPageSetupDialog::PageSetupDialogOption
- \since 4.4
-
- Used to specify options to the page setup dialog
-
- This value is obsolete and does nothing since Qt 4.5:
-
- \value DontUseSheet In previous versions of QDialog::exec() the
- page setup dialog would create a sheet by default if the dialog
- was given a parent. This is no longer supported from Qt 4.5. If
- you want to use sheets, use QPageSetupDialog::open() instead.
-
- \omitvalue None
- \omitvalue OwnsPrinter
-*/
-
-/*!
- Sets the given \a option to be enabled if \a on is true;
- otherwise, clears the given \a option.
-
- \sa options, testOption()
-*/
-void QPageSetupDialog::setOption(PageSetupDialogOption option, bool on)
-{
- Q_D(QPageSetupDialog);
- if (!(d->opts & option) != !on)
- setOptions(d->opts ^ option);
-}
-
-/*!
- Returns true if the given \a option is enabled; otherwise, returns
- false.
-
- \sa options, setOption()
-*/
-bool QPageSetupDialog::testOption(PageSetupDialogOption option) const
-{
- Q_D(const QPageSetupDialog);
- return (d->opts & option) != 0;
-}
-
-/*!
- \property QPageSetupDialog::options
- \brief the various options that affect the look and feel of the dialog
- \since 4.5
-
- By default, all options are disabled.
-
- Options should be set before showing the dialog. Setting them while the
- dialog is visible is not guaranteed to have an immediate effect on the
- dialog (depending on the option and on the platform).
-
- \sa setOption(), testOption()
-*/
-void QPageSetupDialog::setOptions(PageSetupDialogOptions options)
-{
- Q_D(QPageSetupDialog);
-
- PageSetupDialogOptions changed = (options ^ d->opts);
- if (!changed)
- return;
-
- d->opts = options;
-}
-
-QPageSetupDialog::PageSetupDialogOptions QPageSetupDialog::options() const
-{
- Q_D(const QPageSetupDialog);
- return d->opts;
-}
-
-/*!
- \obsolete
-
- Use setOption(\a option, true) instead.
-*/
-void QPageSetupDialog::addEnabledOption(PageSetupDialogOption option)
-{
- setOption(option, true);
-}
-
-/*!
- \obsolete
-
- Use setOptions(\a options) instead.
-*/
-void QPageSetupDialog::setEnabledOptions(PageSetupDialogOptions options)
-{
- setOptions(options);
-}
-
-/*!
- \obsolete
-
- Use options() instead.
-*/
-QPageSetupDialog::PageSetupDialogOptions QPageSetupDialog::enabledOptions() const
-{
- return options();
-}
-
-/*!
- \obsolete
-
- Use testOption(\a option) instead.
-*/
-bool QPageSetupDialog::isOptionEnabled(PageSetupDialogOption option) const
-{
- return testOption(option);
-}
-
-/*!
\overload
\since 4.5