Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwinrules/ruleswidget.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 47 | #define SETUP( var, type ) \ | |||
---|---|---|---|---|---|
51 | enable_##var->setWhatsThis( enableDesc ); \ | 51 | enable_##var->setWhatsThis( enableDesc ); \ | ||
52 | rule_##var->setWhatsThis( type##RuleDesc ); | 52 | rule_##var->setWhatsThis( type##RuleDesc ); | ||
53 | 53 | | |||
54 | RulesWidget::RulesWidget(QWidget* parent) | 54 | RulesWidget::RulesWidget(QWidget* parent) | ||
55 | : detect_dlg(nullptr) | 55 | : detect_dlg(nullptr) | ||
56 | { | 56 | { | ||
57 | Q_UNUSED(parent); | 57 | Q_UNUSED(parent); | ||
58 | setupUi(this); | 58 | setupUi(this); | ||
59 | detect->setVisible(KWindowSystem::isPlatformX11()); | ||||
60 | detection_delay->setVisible(KWindowSystem::isPlatformX11()); | ||||
59 | QRegularExpressionValidator* validator = new QRegularExpressionValidator(QRegularExpression("[0-9\\-+,xX:]*"), this); | 61 | QRegularExpressionValidator* validator = new QRegularExpressionValidator(QRegularExpression("[0-9\\-+,xX:]*"), this); | ||
60 | maxsize->setValidator(validator); | 62 | maxsize->setValidator(validator); | ||
61 | minsize->setValidator(validator); | 63 | minsize->setValidator(validator); | ||
62 | position->setValidator(validator); | 64 | position->setValidator(validator); | ||
63 | Ui::RulesWidgetBase::size->setValidator(validator); | 65 | Ui::RulesWidgetBase::size->setValidator(validator); | ||
64 | 66 | | |||
65 | QString enableDesc = | 67 | QString enableDesc = | ||
66 | i18n("Enable this checkbox to alter this window property for the specified window(s)."); | 68 | i18n("Enable this checkbox to alter this window property for the specified window(s)."); | ||
▲ Show 20 Lines • Show All 897 Lines • Show Last 20 Lines |