Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a1e19b26 authored by Laurent Montel's avatar Laurent Montel 😁

Add parent

parent 35b3e1dd
......@@ -32,7 +32,7 @@ ConfigureCustomSettingDialog::ConfigureCustomSettingDialog(QWidget *parent)
QVBoxLayout *mainLayout = new QVBoxLayout(this);
setWindowTitle(i18n("Add custom rule"));
mCustomSettingWidget = new ConfigureCustomSettingWidget;
mCustomSettingWidget = new ConfigureCustomSettingWidget(this);
mCustomSettingWidget->setObjectName(QStringLiteral("customsettingwidget"));
mainLayout->addWidget(mCustomSettingWidget);
......
......@@ -34,9 +34,9 @@ ConfigureCustomSettingWidget::ConfigureCustomSettingWidget(QWidget *parent)
{
QVBoxLayout *vbox = new QVBoxLayout(this);
QLabel *lab = new QLabel(i18n("Category:"));
QLabel *lab = new QLabel(i18n("Category:"), this);
lab->setObjectName(QStringLiteral("category_label"));
mCategoryLineEdit = new KLineEdit;
mCategoryLineEdit = new KLineEdit(this);
mCategoryLineEdit->setTrapReturnKey(true);
mCategoryLineEdit->setClearButtonShown(true);
mCategoryLineEdit->setObjectName(QStringLiteral("category_lineedit"));
......@@ -46,7 +46,7 @@ ConfigureCustomSettingWidget::ConfigureCustomSettingWidget(QWidget *parent)
categoryLayout->addWidget(lab);
categoryLayout->addWidget(mCategoryLineEdit);
lab = new QLabel(i18n("Type:"));
lab = new QLabel(i18n("Type:"), this);
lab->setObjectName(QStringLiteral("categorytype_label"));
categoryLayout->addWidget(lab);
......@@ -54,7 +54,7 @@ ConfigureCustomSettingWidget::ConfigureCustomSettingWidget(QWidget *parent)
mCategoryType->setObjectName(QStringLiteral("categorytype_combobox"));
categoryLayout->addWidget(mCategoryType);
mEnableCategory = new QCheckBox(i18n("Enable"));
mEnableCategory = new QCheckBox(i18n("Enable"), this);
mEnableCategory->setObjectName(QStringLiteral("enable_category"));
categoryLayout->addWidget(mEnableCategory);
}
......
......@@ -38,11 +38,11 @@ CustomDebugSettingsPage::CustomDebugSettingsPage(QWidget *parent)
QVBoxLayout *vbox = new QVBoxLayout;
mainLayout->addLayout(vbox);
QLabel *lab = new QLabel(i18n("Rules:"));
QLabel *lab = new QLabel(i18n("Rules:"), this);
lab->setObjectName(QStringLiteral("custom_label"));
vbox->addWidget(lab);
mListWidget = new QListWidget;
mListWidget = new QListWidget(this);
mListWidget->setObjectName(QStringLiteral("custom_listwidget"));
connect(mListWidget, &QListWidget::itemSelectionChanged, this, &CustomDebugSettingsPage::updateButtons);
connect(mListWidget, &QListWidget::itemDoubleClicked, this, &CustomDebugSettingsPage::slotEditRule);
......@@ -51,17 +51,17 @@ CustomDebugSettingsPage::CustomDebugSettingsPage(QWidget *parent)
QVBoxLayout *buttonLayout = new QVBoxLayout;
mainLayout->addLayout(buttonLayout);
mAddRule = new QPushButton(i18n("Add..."));
mAddRule = new QPushButton(i18n("Add..."), this);
mAddRule->setObjectName(QStringLiteral("add_rule"));
buttonLayout->addWidget(mAddRule);
connect(mAddRule, &QAbstractButton::clicked, this, &CustomDebugSettingsPage::slotAddRule);
mEditRule = new QPushButton(i18n("Edit..."));;
mEditRule = new QPushButton(i18n("Edit..."), this);
mEditRule->setObjectName(QStringLiteral("edit_rule"));
buttonLayout->addWidget(mEditRule);
connect(mEditRule, &QAbstractButton::clicked, this, &CustomDebugSettingsPage::slotEditRule);
mRemoveRule = new QPushButton(i18n("Remove..."));
mRemoveRule = new QPushButton(i18n("Remove..."), this);
mRemoveRule->setObjectName(QStringLiteral("remove_rule"));
buttonLayout->addWidget(mRemoveRule);
buttonLayout->addStretch();
......
......@@ -52,7 +52,7 @@ KDebugSettingsDialog::KDebugSettingsDialog(QWidget *parent)
mCategoryWarning->setObjectName(QStringLiteral("categorywarning"));
mainLayout->addWidget(mCategoryWarning);
mTabWidget = new QTabWidget;
mTabWidget = new QTabWidget(this);
mTabWidget->setObjectName(QStringLiteral("tabwidget"));
mainLayout->addWidget(mTabWidget);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment