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>
This commit is contained in:
Alexander Volkov 2016-01-18 17:30:49 +03:00
parent 99e25dd7d8
commit 9eba208445

View File

@ -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();
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////