Home · All Classes · All Functions · Overviews |
The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
QAction ( QObject * parent, const char * name ) | |
QAction ( const QString & text, const QKeySequence & shortcut, QObject * parent, const char * name ) | |
QAction ( const QIcon & icon, const QString & text, const QKeySequence & shortcut, QObject * parent, const char * name ) | |
QKeySequence | accel () const |
bool | addTo ( QWidget * w ) |
QIcon | iconSet () const |
bool | isOn () const |
bool | isToggleAction () const |
QString | menuText () const |
bool | removeFrom ( QWidget * w ) |
void | setAccel ( const QKeySequence & shortcut ) |
void | setIconSet ( const QIcon & i ) |
void | setMenuText ( const QString & text ) |
void | setToggleAction ( bool b ) |
void | setOn ( bool b ) |
void | activated ( int i = 0 ) |
Use one of the QAction constructors that doesn't take a name argument and call setObjectName() instead.
Use one of the QAction constructors that doesn't take a name argument and call setObjectName() instead.
Use one of the QAction constructors that doesn't take a name argument and call setObjectName() instead.
Use shortcut() instead.
See also setAccel().
Use triggered() instead.
Use QWidget::addAction() instead.
For example, if you have code like
action->addTo(widget);
you can rewrite it as
widget->addAction(action);
Use icon() instead.
See also setIconSet().
Use isChecked() instead.
Use isCheckable() instead.
Use text() instead.
See also setMenuText().
Use QWidget::removeAction() instead.
For example, if you have code like
action->removeFrom(widget);
you can rewrite it as
widget->removeAction(action);
Use setShortcut() instead.
See also accel().
Use setIcon() instead.
See also iconSet().
Use setText() instead.
See also menuText().
Use setChecked() instead.
See also isOn().
Use setCheckable() instead.
See also isToggleAction().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.6.0 |