QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ToolStripAction.cc
Go to the documentation of this file.
1#include "ToolStripAction.h"
2
4 : QObject(parent)
5{
6
7}
8
10{
11 if (enabled != _enabled) {
12 _enabled = enabled;
13 emit enabledChanged(enabled);
14 }
15}
16
18{
19 if (visible != _visible) {
22 }
23
24}
25
27{
28 if (checkable != _checkable) {
31 }
32
33}
34
36{
37 if (checked != _checked) {
40 }
41
42}
43
52
53void ToolStripAction::setbiColorIcon(bool biColorIcon)
54{
58 }
59
60}
61
70
79
88
89void ToolStripAction::setText(const QString& text)
90{
91 if (text != _text) {
92 _text = text;
93 emit textChanged(text);
94 }
95
96}
97
98void ToolStripAction::setIconSource(const QString& iconSource)
99{
100 if (iconSource != _iconSource) {
103 }
104
105}
106
114
115void ToolStripAction::setDropPanelComponent(QQmlComponent* dropPanelComponent)
116{
119}
void setDropPanelComponent(QQmlComponent *dropPanelComponent)
void setEnabled(bool enabled)
QQmlComponent * dropPanelComponent(void) const
void setText(const QString &text)
void toolStripIndexChanged(int toolStripIndex)
void setAlternateIconSource(const QString &alternateIconSource)
void dropPanelComponentChanged(void)
void setChecked(bool checked)
void setShowAlternateIcon(bool showAlternateIcon)
int toolStripIndex(void) const
void textChanged(QString text)
bool nonExclusive(void) const
void biColorIconChanged(bool biColorIcon)
void alternateIconSourceChanged(QString alternateIconSource)
bool visible(void) const
void fullColorIconChanged(bool fullColorIcon)
void iconSourceChanged(QString iconSource)
QString alternateIconSource(void) const
void visibleChanged(bool visible)
bool checkable(void) const
void setToolStripIndex(int toolStripIndex)
void setIconSource(const QString &iconSource)
void checkableChanged(bool checkable)
ToolStripAction(QObject *parent=nullptr)
QQmlComponent * _dropPanelComponent
QString iconSource(void) const
bool showAlternateIcon(void) const
bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged(bool visible READ visible WRITE setVisible NOTIFY visibleChanged) 1(bool checkable READ checkable WRITE setCheckable NOTIFY checkableChanged) 1(bool checked READ checked WRITE setChecked NOTIFY checkedChanged) 1(bool showAlternateIcon READ showAlternateIcon WRITE setShowAlternateIcon NOTIFY showAlternateIconChanged) 1(bool biColorIcon READ biColorIcon WRITE setbiColorIcon NOTIFY biColorIconChanged) 1(bool fullColorIcon READ fullColorIcon WRITE setfullColorIcon NOTIFY fullColorIconChanged) 1(bool nonExclusive READ nonExclusive WRITE setNonExclusive NOTIFY nonExclusiveChanged) 1(int toolStripIndex READ toolStripIndex WRITE setToolStripIndex NOTIFY toolStripIndexChanged) 1(QString text READ text WRITE setText NOTIFY textChanged) 1(QString iconSource READ iconSource WRITE setIconSource NOTIFY iconSourceChanged) 1(QString alternateIconSource READ alternateIconSource WRITE setAlternateIconSource NOTIFY alternateIconSourceChanged) 1(QQmlComponent *dropPanelComponent READ dropPanelComponent WRITE setDropPanelComponent NOTIFY dropPanelComponentChanged) bool enabled(void) const
bool fullColorIcon(void) const
void checkedChanged(bool checked)
QString text(void) const
void setfullColorIcon(bool fullColorIcon)
void showAlternateIconChanged(bool showAlternateIcon)
QString _alternateIconSource
void nonExclusiveChanged(bool nonExclusive)
void setCheckable(bool checkable)
bool biColorIcon(void) const
void setbiColorIcon(bool biColorIcon)
void setVisible(bool visible)
bool checked(void) const
void setNonExclusive(bool nonExclusive)