Commit 3e67613e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to implement manage group

parent 74668c14
Pipeline #44568 passed with stage
in 9 minutes and 18 seconds
......@@ -87,6 +87,7 @@ KDebugSettingsDialog::KDebugSettingsDialog(QWidget *parent)
buttonBox->addButton(load, QDialogButtonBox::ActionRole);
connect(load, &LoadToolButton::loadFromFile, this, &KDebugSettingsDialog::slotLoad);
connect(load, &LoadToolButton::loadGroupRequested, this, &KDebugSettingsDialog::slotLoadGroup);
connect(load, &LoadToolButton::manageGroupRequested, this, &KDebugSettingsDialog::slotManageGroup);
connect(this, &KDebugSettingsDialog::updateLoadGroupMenu, load, &LoadToolButton::updateLoadGroupMenu);
QPushButton *insertCategories = new QPushButton(i18n("Insert..."), this);
......@@ -242,3 +243,8 @@ void KDebugSettingsDialog::slotRestoreDefault()
{
mKdeApplicationSettingsPage->restoreToDefault();
}
void KDebugSettingsDialog::slotManageGroup()
{
//TODO
}
......@@ -59,6 +59,7 @@ private:
void updateLoggingCategories();
void slotLoadGroup(const QString &fullPath);
void slotSaveAsGroup();
void slotManageGroup();
KdeLoggingCategory::List mCategoriesList;
KDebugSettingsLoadingCategories mLoggings;
QTabWidget *mTabWidget = nullptr;
......
......@@ -67,4 +67,7 @@ void LoadGroupMenu::init()
Q_EMIT loadGroupRequested(fullPath);
});
}
addSeparator();
QAction *manageGroup = addAction(i18n("Manage Group"));
connect(manageGroup, &QAction::triggered, this, &LoadGroupMenu::manageGroupRequested);
}
......@@ -36,6 +36,7 @@ public:
Q_SIGNALS:
void loadGroupRequested(const QString &filePath);
void manageGroupRequested();
private:
void init();
......
......@@ -36,6 +36,7 @@ LoadToolButton::LoadToolButton(QWidget *parent)
mLoadMenu->setObjectName(QStringLiteral("loadMenu"));
connect(mLoadMenu, &LoadGroupMenu::loadGroupRequested, this, &LoadToolButton::loadGroupRequested);
connect(mLoadMenu, &LoadGroupMenu::manageGroupRequested, this, &LoadToolButton::manageGroupRequested);
mainMenu->addMenu(mLoadMenu);
}
......
......@@ -36,6 +36,7 @@ public:
Q_SIGNALS:
void loadGroupRequested(const QString &fullPath);
void loadFromFile();
void manageGroupRequested();
private:
LoadGroupMenu *const mLoadMenu;
};
......
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