mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:13:24 +00:00
Added close button to print preview window title bar.
Without this I was only able to close it by choosing to print. Signed-off-by: John Van Ostrand <john@vanostrand.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b2af700a42
commit
0996908dd8
1 changed files with 4 additions and 1 deletions
|
@ -68,7 +68,10 @@ PrintDialog::PrintDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f
|
|||
|
||||
void PrintDialog::previewClicked(void)
|
||||
{
|
||||
QPrintPreviewDialog previewDialog(&printer, this);
|
||||
QPrintPreviewDialog previewDialog(&printer, this, Qt::Window
|
||||
| Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint
|
||||
| Qt::WindowTitleHint);
|
||||
|
||||
connect(&previewDialog, SIGNAL(paintRequested(QPrinter *)), this, SLOT(onPaintRequested(QPrinter *)));
|
||||
previewDialog.exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue