From 9eba208445ad3c6f8efeadc1e6c8befad4478d8f Mon Sep 17 00:00:00 2001 From: Alexander Volkov Date: Mon, 18 Jan 2016 17:30:49 +0300 Subject: 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 --- src/printsupport/dialogs/qprintdialog_unix.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/printsupport') 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(); -} - //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3