| 1 |
/**************************************************************************************** |
| 2 |
* Copyright (c) 2007 Nikolaj Hald Nielsen <[email protected]> * |
| 3 |
* * |
| 4 |
* This program is free software; you can redistribute it and/or modify it under * |
| 5 |
* the terms of the GNU General Public License as published by the Free Software * |
| 6 |
* Foundation; either version 2 of the License, or (at your option) any later * |
| 7 |
* version. * |
| 8 |
* * |
| 9 |
* This program is distributed in the hope that it will be useful, but WITHOUT ANY * |
| 10 |
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * |
| 11 |
* PARTICULAR PURPOSE. See the GNU General Public License for more details. * |
| 12 |
* * |
| 13 |
* You should have received a copy of the GNU General Public License along with * |
| 14 |
* this program. If not, see <http://www.gnu.org/licenses/>. * |
| 15 |
****************************************************************************************/ |
| 16 |
|
| 17 |
#include "core/capabilities/ActionsCapability.h" |
| 18 |
|
| 19 |
Capabilities::ActionsCapability::ActionsCapability() |
| 20 |
: Capabilities::Capability() |
| 21 |
{ |
| 22 |
//nothing to do |
| 23 |
} |
| 24 |
|
| 25 |
Capabilities::ActionsCapability::ActionsCapability( const QList<QAction*> &actions ) |
| 26 |
: Capabilities::Capability() |
| 27 |
, m_actions( actions ) |
| 28 |
{ |
| 29 |
//nothing to do |
| 30 |
} |
| 31 |
|
| 32 |
Capabilities::ActionsCapability::~ActionsCapability() |
| 33 |
{ |
| 34 |
//nothing to do. |
| 35 |
} |
| 36 |
|
| 37 |
QList<QAction *> |
| 38 |
Capabilities::ActionsCapability::actions() const |
| 39 |
{ |
| 40 |
return m_actions; |
| 41 |
} |
| 42 |
|