Define toolbar locations for the actions of the QueryTool module.
This commit is contained in:
parent
6acf70660b
commit
cbb2f897aa
8 changed files with 26 additions and 4 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define LWIDGETACTION_H
|
||||
|
||||
#include "MenuLocation.h"
|
||||
#include "ToolbarLocation.h"
|
||||
#include <QIcon>
|
||||
#include <QKeySequence>
|
||||
#include <QString>
|
||||
|
|
@ -23,6 +24,7 @@ public:
|
|||
void setIcon(const char * icon) { setIcon(QIcon(icon)); }
|
||||
void setMenuLocation(MenuLocation menu_location);
|
||||
void setMenuLocation(const char * menu_location) { setMenuLocation(MenuPath(menu_location)); }
|
||||
void setToolbarLocation(ToolbarLocation toolbar_location);
|
||||
void setShortcut(QKeySequence shortcut);
|
||||
void setText(QString text);
|
||||
void setToolTip(QString tooltip);
|
||||
|
|
@ -37,6 +39,7 @@ private:
|
|||
QIcon m_icon;
|
||||
QKeySequence m_shortCut;
|
||||
MenuLocation m_menuLocation;
|
||||
ToolbarLocation m_toolbarLocation;
|
||||
|
||||
const char * m_slotname;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue