Lomiri
Loading...
Searching...
No Matches
quicklistentry.cpp
1/* Copyright (C) 2014-2015 Canonical Ltd.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; version 3.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15
16#include "quicklistentry.h"
17
18QuickListEntry::QuickListEntry()
19{
20
21}
22
23QString QuickListEntry::actionId() const
24{
25 return m_actionId;
26}
27
28void QuickListEntry::setActionId(const QString &actionId)
29{
30 m_actionId = actionId;
31}
32
33QString QuickListEntry::text() const
34{
35 return m_text;
36}
37
38void QuickListEntry::setText(const QString &text)
39{
40 m_text = text;
41}
42
43QString QuickListEntry::icon() const
44{
45 return m_icon;
46}
47
48void QuickListEntry::setIcon(const QString &icon)
49{
50 m_icon = icon;
51}
52
53bool QuickListEntry::clickable() const
54{
55 return !m_actionId.isEmpty();
56}