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/printoptions.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qt-ui/printoptions.cpp') 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); -- cgit v1.2.3-70-g09d2