Commit 689ef32f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add save action

parent eae834a8
Pipeline #60686 passed with stage
in 40 minutes and 31 seconds
......@@ -5,12 +5,17 @@
*/
#include "filtersavedmenu.h"
#include <KLocalizedString>
#include <QAction>
using namespace MessageList::Core;
FilterSavedMenu::FilterSavedMenu(QWidget *parent)
: QMenu(parent)
, mSaveAction(new QAction(i18n("Save Filter..."), this))
, mConfigureAction(new QAction(i18n("Configure..."), this))
{
connect(this, &FilterSavedMenu::aboutToShow, this, &FilterSavedMenu::slotShowMenu);
connect(mSaveAction, &QAction::triggered, this, &FilterSavedMenu::saveFilter);
}
FilterSavedMenu::~FilterSavedMenu()
......
......@@ -9,6 +9,7 @@
#include "messagelist_private_export.h"
#include <QMenu>
#include <QObject>
class QAction;
namespace MessageList
{
namespace Core
......@@ -26,6 +27,8 @@ Q_SIGNALS:
private:
void slotShowMenu();
QAction *const mSaveAction;
QAction *const mConfigureAction;
};
}
}
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