36 auto *
const vLayout =
new QVBoxLayout(
this);
39 auto gridLayout = std::make_unique<QGridLayout>();
58 vLayout->addLayout(gridLayout.get());
62 auto *
const buttons =
new QDialogButtonBox(QDialogButtonBox::Ok
63 | QDialogButtonBox::Cancel,
66 BT_CONNECT(buttons, &QDialogButtonBox::accepted,
this, &QDialog::accept);
67 BT_CONNECT(buttons, &QDialogButtonBox::rejected,
this, &QDialog::reject);
68 vLayout->addWidget(buttons);
97 int key =
event->key();
98 if ( (key == Qt::Key_Shift) || (key == Qt::Key_Control) || (key == Qt::Key_Meta) || (key == Qt::Key_Alt) )
101 QKeySequence keys(key);
102 QString keyStr = keys.toString();
103 if ( (event->modifiers() & Qt::AltModifier) == Qt::AltModifier)
104 keyStr = QStringLiteral(
"Alt+") + keyStr;
105 if ( (event->modifiers() & Qt::ShiftModifier) == Qt::ShiftModifier)
106 keyStr = QStringLiteral(
"Shift+") + keyStr;
107 if ( (event->modifiers() & Qt::ControlModifier) == Qt::ControlModifier)
108 keyStr = QStringLiteral(
"Ctrl+") + keyStr;