diff options
-rw-r--r-- | qt-ui/printdialog.cpp | 5 | ||||
-rw-r--r-- | qt-ui/printoptions.cpp | 7 |
2 files changed, 10 insertions, 2 deletions
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"); } diff --git a/qt-ui/printoptions.cpp b/qt-ui/printoptions.cpp index d68078bad..5db665ab4 100644 --- a/qt-ui/printoptions.cpp +++ b/qt-ui/printoptions.cpp @@ -14,6 +14,13 @@ PrintOptions::PrintOptions(QWidget *parent, struct options *printOpt) void PrintOptions::setup(struct options *printOpt) { + /* these options are not supported ATM and we hide them. + * basically the entire PrintDialog class needs re-implementation, so that + * the paper size, DPI and all other options are displayed in one dialog. + * this way we can print directly or do an optional preview first. + */ + ui.sizingHeights->setVisible(false); + printOptions = printOpt; // layout height sliders initSliderWithLabel(ui.sliderPHeight, ui.valuePHeight, printOptions->profile_height); |