diff options
author | Alexander Volkov <a.volkov@rusbitech.ru> | 2016-01-18 17:30:49 +0300 |
---|---|---|
committer | Alexander Volkov <a.volkov@rusbitech.ru> | 2016-01-18 15:57:59 +0000 |
commit | 9eba208445ad3c6f8efeadc1e6c8befad4478d8f (patch) | |
tree | 6bf8aecefdc73b3743f9cf4511bbc223b1461dc7 | |
parent | 99e25dd7d8bfcb184852110c5f882b89cfb889df (diff) |
Center QPrintPropertiesDialog on top of its parent
Remove QPrintPropertiesDialog::showEvent(). It just accepts
QShowEvent, it makes no sense. At the same time this method
overrides QDialog::showEvent(), which centers dialogs.
Change-Id: I11510feb4a946f347c19d6ac59874b4cb931020e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
-rw-r--r-- | src/printsupport/dialogs/qprintdialog_unix.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/printsupport/dialogs/qprintdialog_unix.cpp b/src/printsupport/dialogs/qprintdialog_unix.cpp index 9633032a0f..b96d8dfd22 100644 --- a/src/printsupport/dialogs/qprintdialog_unix.cpp +++ b/src/printsupport/dialogs/qprintdialog_unix.cpp @@ -118,9 +118,6 @@ public: void applyPrinterProperties(QPrinter *p); void setupPrinter() const; -protected: - void showEvent(QShowEvent* event) Q_DECL_OVERRIDE; - private: friend class QUnixPrintWidgetPrivate; Ui::QPrintPropertiesWidget widget; @@ -274,11 +271,6 @@ void QPrintPropertiesDialog::selectPrinter(QPrinter::OutputFormat outputFormat, widget.pageSetup->selectPrinter(outputFormat, printerName); } -void QPrintPropertiesDialog::showEvent(QShowEvent* event) -{ - event->accept(); -} - //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// |