17#include <QRadioButton>
19#include <QApplication>
21#include <klocalizedstring.h>
28 QWidget::paintEvent(e);
30 QPen pen(QPalette().highlight().color());
33 p.drawLine(0, 0, width(), 0);
34 if (qApp->isLeftToRight()) {
35 p.drawLine(0, 0, 0, height());
37 p.drawLine(width(), 0, width(), height());
42 const QKeySequence &activeSeq,
bool allowLetterShortcuts)
44 m_defaultKeySequence(defaultSeq),
48 QGridLayout *layout =
new QGridLayout(
this);
51 m_defaultLabel =
new QLabel(i18nc(
"No shortcut defined",
"None"),
this);
52 QString defaultText = defaultSeq.toString(QKeySequence::NativeText);
53 if (defaultText.isEmpty()) {
54 defaultText = i18nc(
"No shortcut defined",
"None");
66 layout->setColumnStretch(2, 1);
153 QKeySequence original = seq;
167 if (activeSeq.toString(QKeySequence::NativeText) ==
m_defaultKeySequence.toString(QKeySequence::NativeText)) {
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))