OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
Action.h
Go to the documentation of this file.
1
4
// ###########################################################################################################################################################################################################################################################################################################################
5
6
#pragma once
7
8
// OpenTwin header
9
#include "
OTCore/OTClassHelper.h
"
10
#include "
OTWidgets/OTWidgetsAPIExport.h
"
11
12
// Qt header
13
#include <QtWidgets/qaction.h>
14
15
namespace
ot
{
16
17
class
OT_WIDGETS_API_EXPORT
Action
:
public
QAction {
18
OT_DECL_NOCOPY
(
Action
)
19
public
:
20
Action
(QObject* _parent = (QObject*)
nullptr
);
21
Action
(
const
QString& _text, QObject* _parent = (QObject*)
nullptr
);
22
Action
(
const
QIcon& _icon,
const
QString& _text, QObject* _parent = (QObject*)
nullptr
);
23
virtual
~Action
();
24
};
25
26
}
OTClassHelper.h
This file contains defines that may be used simplyfy class creation.
OT_DECL_NOCOPY
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition
OTClassHelper.h:14
OTWidgetsAPIExport.h
OT_WIDGETS_API_EXPORT
#define OT_WIDGETS_API_EXPORT
Definition
OTWidgetsAPIExport.h:12
ot::Action
Definition
Action.h:17
ot
Definition
Connector.h:8
Libraries
OTWidgets
include
OTWidgets
Action.h
Generated by
1.10.0