45 #include <QtGui/QLabel> 46 #include <QtGui/QIcon> 47 #include <QtGui/QAction> 48 #include <QtGui/QMenu> 50 #include <QtCore/QDebug> 58 , m_animationSpeed(1.0f)
65 tr(
"Inspector Mode"),
this);
69 tr(
"Select (Marquee)"),
this);
72 tr(
"Color Picker"),
this);
74 tr(
"Apply Changes to QML Viewer"),
this);
76 tr(
"Apply Changes to Document"),
this);
197 if (action->
data().
toReal() == slowDownFactor) {
The QColor class provides colors based on RGB, HSV or CMYK values.
void setMenu(QMenu *menu)
Sets the menu contained by this action to the specified menu.
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
T * qobject_cast(QObject *object)
The QActionGroup class groups actions together.
void setData(const QVariant &var)
Sets the action's internal data to the given userData.
QObject * sender() const
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; othe...
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
QAction * addAction(QAction *a)
Adds the action to this group, and returns it.
QVariant data() const
Returns the user data as set in QAction::setData.
void setIcon(const QIcon &icon)
QList< QAction * > actions() const
Returns the list of this groups's actions.
The QAction class provides an abstract user interface action that can be inserted into widgets...
qreal toReal(bool *ok=0) const
Returns the variant as a qreal if the variant has type() Double , QMetaType::Float ...
The QIcon class provides scalable icons in different modes and states.