62 lines
1.1 KiB
C++
62 lines
1.1 KiB
C++
|
|
#include "LContextAction.h"
|
|||
|
|
|
|||
|
|
LContextAction::LContextAction(QString text, const char * slotname)
|
|||
|
|
: m_text(std::move(text))
|
|||
|
|
, m_slotname(slotname)
|
|||
|
|
{}
|
|||
|
|
|
|||
|
|
const QIcon& LContextAction::icon() const
|
|||
|
|
{
|
|||
|
|
return m_icon;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
const MenuLocation& LContextAction::menuLocation() const
|
|||
|
|
{
|
|||
|
|
return m_menuLocation;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void LContextAction::setIcon(QIcon icon)
|
|||
|
|
{
|
|||
|
|
m_icon = std::move(icon);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void LContextAction::setMenuLocation(MenuLocation menu_location)
|
|||
|
|
{
|
|||
|
|
m_menuLocation = std::move(menu_location);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void LContextAction::setToolbarLocation(ToolbarLocation toolbar_location)
|
|||
|
|
{
|
|||
|
|
m_toolbarLocation = toolbar_location;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void LContextAction::setShortcut(QKeySequence shortcut)
|
|||
|
|
{
|
|||
|
|
m_shortCut = std::move(shortcut);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void LContextAction::setText(QString text)
|
|||
|
|
{
|
|||
|
|
m_text = std::move(text);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void LContextAction::setToolTip(QString tooltip)
|
|||
|
|
{
|
|||
|
|
m_toolTip = std::move(tooltip);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
const QKeySequence& LContextAction::shortcut() const
|
|||
|
|
{
|
|||
|
|
return m_shortCut;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
const QString& LContextAction::text() const
|
|||
|
|
{
|
|||
|
|
return m_text;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
const QString& LContextAction::toolTip() const
|
|||
|
|
{
|
|||
|
|
return m_toolTip;
|
|||
|
|
}
|