Qt:Документация 4.3.2/qaction-qt3

Материал из Wiki.crossplatform.ru

(Различия между версиями)
Перейти к: навигация, поиск
Root (Обсуждение | вклад)
(Новая: {{Qt4.3.2_header}} =Qt 3 Support Members for QAction= '''The following class members are part of the Qt 3 support layer.''' They are ...)

Текущая версия на 14:23, 6 ноября 2008

40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] Qt 3 Support Members for QAction

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.



[править] Открытые функции

  • 8 открытых функций унаследованных от QObject

[править] Открытые слоты

[править] Сигналы


[править] Описание функций-членов

[править]
QAction::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 () const

Use 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 () const

Use icon() instead.

See also setIconSet().

[править]
bool QAction::isOn () const

Use isChecked() instead.

[править]
bool QAction::isToggleAction () const

Use isCheckable() instead.

[править] QString QAction::menuText () const

Use 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().


Copyright © 2007 Trolltech Trademarks
Qt 4.3.2