Qt 3 Support Members for QActionThe 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. Public Functions
Public Slots
Signals
Member Function DocumentationQAction::QAction ( QObject * parent, const char * name )Use one of the QAction constructors that doesn't take a name argument and call setObjectName() instead. QAction::QAction ( const QString & text, const QKeySequence & shortcut, QObject * parent, const char * name )Use one of the QAction constructors that doesn't take a name argument and call setObjectName() instead. QAction::QAction ( const QIcon & icon, const QString & text, const QKeySequence & shortcut, QObject * parent, const char * name )Use one of the QAction constructors that doesn't take a name argument and call setObjectName() instead. QKeySequence QAction::accel () constUse shortcut() instead. See also setAccel(). void QAction::activated ( int i = 0 ) [signal]Use triggered() instead. bool QAction::addTo ( QWidget * w )Use QWidget::addAction() instead. For example, if you have code like action->addTo(widget); you can rewrite it as widget->addAction(action); QIcon QAction::iconSet () constUse icon() instead. See also setIconSet(). bool QAction::isOn () constUse isChecked() instead. bool QAction::isToggleAction () constUse isCheckable() instead. QString QAction::menuText () constUse text() instead. See also setMenuText(). bool QAction::removeFrom ( QWidget * w )Use QWidget::removeAction() instead. For example, if you have code like action->removeFrom(widget); you can rewrite it as widget->removeAction(action); void QAction::setAccel ( const QKeySequence & shortcut )Use setShortcut() instead. See also accel(). void QAction::setIconSet ( const QIcon & i )Use setIcon() instead. See also iconSet(). void QAction::setMenuText ( const QString & text )Use setText() instead. See also menuText(). void QAction::setOn ( bool b ) [slot]Use setChecked() instead. See also isOn(). void QAction::setToggleAction ( bool b )Use setCheckable() instead. See also isToggleAction(). X
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |