mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-23 13:33:50 +03:00
context:add separator action in hash
This commit is contained in:
parent
f26b59f248
commit
b85ce9e415
@ -64,8 +64,6 @@ Menu::~Menu()
|
||||
qDeleteAll(m_actions.values());
|
||||
m_actions.clear();
|
||||
|
||||
m_separator->deleteLater();
|
||||
|
||||
//! sub-menus
|
||||
m_addViewMenu->deleteLater();
|
||||
m_switchLayoutsMenu->deleteLater();
|
||||
@ -88,8 +86,8 @@ void Menu::makeActions()
|
||||
m_actions[Latte::Data::ContextMenu::SECTIONACTION]->setSeparator(true);
|
||||
m_actions[Latte::Data::ContextMenu::SECTIONACTION]->setText("Latte");
|
||||
|
||||
m_separator = new QAction(this);
|
||||
m_separator->setSeparator(true);
|
||||
m_actions[Latte::Data::ContextMenu::SEPARATOR1ACTION] = new QAction(this);
|
||||
m_actions[Latte::Data::ContextMenu::SEPARATOR1ACTION]->setSeparator(true);
|
||||
|
||||
//! Print Message...
|
||||
m_printAction = new QAction(QIcon::fromTheme("edit"), "Print Message...", this);
|
||||
@ -230,7 +228,7 @@ QList<QAction *> Menu::contextualActions()
|
||||
actions << m_preferenceAction;
|
||||
actions << m_quitApplication;
|
||||
|
||||
actions << m_separator;
|
||||
actions << m_actions[Latte::Data::ContextMenu::SEPARATOR1ACTION];
|
||||
actions << m_addWidgetsAction;
|
||||
actions << m_addViewAction;
|
||||
actions << m_moveAction;
|
||||
|
@ -55,8 +55,6 @@ private:
|
||||
|
||||
QHash<QString, QAction *> m_actions;
|
||||
|
||||
QAction *m_separator{nullptr};
|
||||
|
||||
QAction *m_addWidgetsAction{nullptr};
|
||||
QAction *m_configureAction{nullptr};
|
||||
QAction *m_duplicateAction{nullptr};
|
||||
|
Loading…
Reference in New Issue
Block a user