diff options
author | Nick Dedekind <nicholas.dedekind@gmail.com> | 2013-08-13 09:10:02 +0000 |
---|---|---|
committer | Tarmac <> | 2013-08-13 09:10:02 +0000 |
commit | a89cb0566228e3e9f61128b450d0b4c22e53e83c (patch) | |
tree | 6decbd0004cd4b171a0753782b5f079c1d5e56dd /libqmenumodel/src/unitymenuaction.cpp | |
parent | 2713de8b43b6c4c2fbb89a60a97f803eb5f1bed3 (diff) | |
parent | 3caade32e973e78b9470f6a57e25c53f96c4e083 (diff) | |
download | qmenumodel-a89cb0566228e3e9f61128b450d0b4c22e53e83c.tar.gz qmenumodel-a89cb0566228e3e9f61128b450d0b4c22e53e83c.tar.bz2 qmenumodel-a89cb0566228e3e9f61128b450d0b4c22e53e83c.zip |
Removed UnityMenuAction.
Approved by Lars Uebernickel, PS Jenkins bot.
Diffstat (limited to 'libqmenumodel/src/unitymenuaction.cpp')
-rw-r--r-- | libqmenumodel/src/unitymenuaction.cpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/libqmenumodel/src/unitymenuaction.cpp b/libqmenumodel/src/unitymenuaction.cpp deleted file mode 100644 index f391bfe..0000000 --- a/libqmenumodel/src/unitymenuaction.cpp +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2013 Canonical Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * Authors: - * Nick Dedekind <nick.dedekind@canonical.com> - */ - -#include "unitymenuaction.h" -#include "unitymenumodel.h" - -UnityMenuAction::UnityMenuAction(QObject* parent) - : QObject(parent), - m_model(NULL), - m_index(-1) -{ -} - -int UnityMenuAction::index() const -{ - return m_index; -} - -void UnityMenuAction::setIndex(int index) -{ - if (m_index != index) { - m_index = index; - Q_EMIT indexChanged(index); - } -} - -UnityMenuModel* UnityMenuAction::model() const -{ - return m_model; -} - -void UnityMenuAction::setModel(UnityMenuModel* model) -{ - if (m_model != model) { - if (m_model) { - disconnect(m_model); - } - m_model = model; - - connect(model, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&, const QVector<int>&)), SIGNAL(stateChanged())); - - Q_EMIT modelChanged(model); - } -} |