summaryrefslogtreecommitdiffstats
path: root/qt-ui/printoptions.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-11-30 18:43:40 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-11-30 18:56:25 +0200
commitf183da546b4aed34e7ab5b51903d0bb27930c711 (patch)
tree21c184d56f1d342f1460348191777bc1cf8164a9 /qt-ui/printoptions.cpp
parenta268311a0b2e4cf910093c6190ee88e8e8998fe3 (diff)
downloadsubsurface-f183da546b4aed34e7ab5b51903d0bb27930c711.tar.gz
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 <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/printoptions.cpp')
-rw-r--r--qt-ui/printoptions.cpp7
1 files changed, 7 insertions, 0 deletions
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);