summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/printoptions.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2020-08-22 14:36:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-09-03 11:46:16 -0700
commit8f6d05414050a52209556576816ec10cc041e547 (patch)
tree3a16f5fe36155864e4ba8bd8048bcb2fa9ff8877 /desktop-widgets/printoptions.cpp
parent02a4aa927e1e47e9cf7bbafc9c233594cad29c2b (diff)
downloadsubsurface-8f6d05414050a52209556576816ec10cc041e547.tar.gz
Set printer resolution
You need a better resolution to plot a picture with high resolution... Connection done with a lambda expression thanks to @dirkhh. Signed-off-by: Robert C. Helling <helling@atdotde.de> (+1 squashed commit) Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/printoptions.cpp')
-rw-r--r--desktop-widgets/printoptions.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop-widgets/printoptions.cpp b/desktop-widgets/printoptions.cpp
index 0d9ae0a40..fbd03c127 100644
--- a/desktop-widgets/printoptions.cpp
+++ b/desktop-widgets/printoptions.cpp
@@ -44,7 +44,9 @@ void PrintOptions::setup()
connect(ui.printInColor, SIGNAL(clicked(bool)), this, SLOT(printInColorClicked(bool)));
connect(ui.printSelected, SIGNAL(clicked(bool)), this, SLOT(printSelectedClicked(bool)));
-
+ connect(ui.resolution, QOverload<int>::of(&QSpinBox::valueChanged), [this](int value) {
+ printOptions->resolution = value;
+ });
hasSetupSlots = true;
}