19 #include "quicklistentry.h" 21 QuickListEntry::QuickListEntry()
22 : m_hasSeparator(false)
26 QString QuickListEntry::actionId()
const 31 void QuickListEntry::setActionId(
const QString &actionId)
33 m_actionId = actionId;
36 QString QuickListEntry::text()
const 41 void QuickListEntry::setText(
const QString &text)
46 QString QuickListEntry::icon()
const 51 void QuickListEntry::setIcon(
const QString &icon)
56 bool QuickListEntry::clickable()
const 58 return !m_actionId.isEmpty();
61 void QuickListEntry::setHasSeparator(
bool hasSeparator)
63 m_hasSeparator = hasSeparator;
66 bool QuickListEntry::hasSeparator()
const 68 return m_hasSeparator;
71 bool QuickListEntry::operator==(
const QuickListEntry &other)
73 return !other.actionId().isEmpty() && other.actionId() == m_actionId;