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
3#include <QtQml/QQmlComponent>
4
6 : QObject(parent)
7{
8
9}
10
12{
13 if (enabled != _enabled) {
16 }
17}
18
20{
21 if (visible != _visible) {
24 }
25
26}
27
29{
30 if (checkable != _checkable) {
33 }
34
35}
36
38{
39 if (checked != _checked) {
42 }
43
44}
45
54
55void ToolStripAction::setbiColorIcon(bool biColorIcon)
56{
60 }
61
62}
63
72
81
90
91void ToolStripAction::setText(const QString& text)
92{
93 if (text != _text) {
94 _text = text;
95 emit textChanged(text);
96 }
97
98}
99
100void ToolStripAction::setIconSource(const QString& iconSource)
101{
102 if (iconSource != _iconSource) {
105 }
106
107}
108
116
117void ToolStripAction::setDropPanelComponent(QQmlComponent* dropPanelComponent)
118{
121}
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 enabled(void) const
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 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)
void enabledChanged(bool enabled)
bool biColorIcon(void) const
void setbiColorIcon(bool biColorIcon)
void setVisible(bool visible)
bool checked(void) const
void setNonExclusive(bool nonExclusive)