From f183da546b4aed34e7ab5b51903d0bb27930c711 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 30 Nov 2013 18:43:40 +0200 Subject: Print: adjustments to PrintDialog - Hide the sizeing sliders from PrintOptions. we don't really support any of those in PrintLayout and these are not that useful and easy to implement, until some sort of layouting/templating system is in place. - Move the 'Print' button on top as a workaround, since if it's bellow the print options it stays bellow an empty area where the now hidden sizing sliders are. - Resize the dialog to a smaller size Signed-off-by: Lubomir I. Ivanov --- qt-ui/printdialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qt-ui/printdialog.cpp') diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp index cf2086417..f083c5479 100644 --- a/qt-ui/printdialog.cpp +++ b/qt-ui/printdialog.cpp @@ -27,13 +27,14 @@ PrintDialog::PrintDialog(QWidget *parent, Qt::WindowFlags f) QVBoxLayout *layout = new QVBoxLayout(this); setLayout(layout); - layout->addWidget(optionsWidget); QPushButton *printButton = new QPushButton(tr("&Print")); connect(printButton, SIGNAL(clicked(bool)), this, SLOT(printClicked())); layout->addWidget(printButton); - setFixedSize(520, 500); + layout->addWidget(optionsWidget); + + setFixedSize(520, 320); setWindowTitle("Print"); } -- cgit v1.2.3-70-g09d2