QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsaction.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsaction.cpp - QgsAction
3 
4  ---------------------
5  begin : 18.4.2016
6  copyright : (C) 2016 by Matthias Kuhn
7  email : [email protected]
8  ***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #include "qgsaction.h"
18 
19 bool QgsAction::runable() const
20 {
21  return mType == Generic ||
22  mType == GenericPython ||
23  mType == OpenUrl ||
24 #if defined(Q_OS_WIN)
25  mType == Windows
26 #elif defined(Q_OS_MAC)
27  mType == Mac
28 #else
29  mType == Unix
30 #endif
31  ;
32 }
bool runable() const
Checks if the action is runable on the current platform.
Definition: qgsaction.cpp:19