From 44db8f11c0e2fe7d5f5c05327d8dd51aa6d89932 Mon Sep 17 00:00:00 2001 From: Valentin Bruch Date: Wed, 23 Aug 2023 23:35:26 +0200 Subject: [PATCH] Tool dialog: use two columns for input device selection --- src/gui/tooldialog.cpp | 9 ++++++--- translations/de.ts | 4 ++++ translations/en_GB.ts | 4 ++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/gui/tooldialog.cpp b/src/gui/tooldialog.cpp index ef8dbd33..dd63388b 100644 --- a/src/gui/tooldialog.cpp +++ b/src/gui/tooldialog.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include "src/gui/tooldialog.h" #include "src/log.h" #include "src/enumerates.h" @@ -261,12 +261,15 @@ ToolDialog::ToolDialog(QWidget *parent) : // Input devices { QGroupBox *device_group = new QGroupBox(tr("Input devices"), this); - QVBoxLayout *device_layout = new QVBoxLayout(); + QGridLayout *device_layout = new QGridLayout(); + device_layout->setSpacing(0); + int i = 0; for (auto it = string_to_input_device.cbegin(); it != string_to_input_device.cend(); ++it) { QCheckBox *button = new QCheckBox(Tool::tr(it.key().c_str()), device_group); - device_layout->addWidget(button); + device_layout->addWidget(button, i/2, i%2); device_buttons.insert(*it, button); + ++i; } device_group->setLayout(device_layout); layout->addWidget(device_group); diff --git a/translations/de.ts b/translations/de.ts index d2fdeaf8..64ee7d5d 100644 --- a/translations/de.ts +++ b/translations/de.ts @@ -545,6 +545,10 @@ Should apply micro step, but history is empty. Sollte Mikroschritt anwenden, doch Verlauf ist leer. + + Error in drawing history: inHistory > history.size() + Fehler im Verlauf der Anmerkungen: inHistory > history.size() + PdfMaster diff --git a/translations/en_GB.ts b/translations/en_GB.ts index 998c94a8..3070a4ea 100644 --- a/translations/en_GB.ts +++ b/translations/en_GB.ts @@ -545,6 +545,10 @@ New item existed before, but could not find it in _z_order! Searching full array. + + Error in drawing history: inHistory > history.size() + + PdfMaster