Qt:Документация 4.3.2/qmenu-qt3
Материал из Wiki.crossplatform.ru
Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
[править] Qt 3 Support Members for QMenu
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.
[править] Открытые функции
- QKeySequence accel ( int id ) const
- void activateItemAt ( int index )
- void changeItem ( int id, const QString & text )
- void changeItem ( int id, const QPixmap & pixmap )
- void changeItem ( int id, const QIcon & icon, const QString & text )
- bool connectItem ( int id, const QObject * receiver, const char * member )
- uint count () const
- bool disconnectItem ( int id, const QObject * receiver, const char * member )
- QMenuItem * findItem ( int id ) const
- QMenuItem * findPopup ( QMenu * popup, int * index )
- int frameWidth () const
- QIcon iconSet ( int id ) const
- int idAt ( int index ) const
- int indexOf ( int id ) const
- int insertItem ( const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0, int id = -1, int index = -1 )
- int insertItem ( const QIcon & icon, const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0, int id = -1, int index = -1 )
- int insertItem ( const QPixmap & pixmap, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0, int id = -1, int index = -1 )
- int insertItem ( const QString & text, int id = -1, int index = -1 )
- int insertItem ( const QIcon & icon, const QString & text, int id = -1, int index = -1 )
- int insertItem ( const QString & text, QMenu * popup, int id = -1, int index = -1 )
- int insertItem ( const QIcon & icon, const QString & text, QMenu * popup, int id = -1, int index = -1 )
- int insertItem ( const QPixmap & pixmap, int id = -1, int index = -1 )
- int insertItem ( const QPixmap & pixmap, QMenu * popup, int id = -1, int index = -1 )
- int insertItem ( QMenuItem * item, int id = -1, int index = -1 )
- int insertSeparator ( int index = -1 )
- int insertTearOffHandle ( int a = 0, int b = 0 )
- bool isCheckable () const
- bool isItemActive ( int id ) const
- bool isItemChecked ( int id ) const
- bool isItemEnabled ( int id ) const
- bool isItemVisible ( int id ) const
- QFont itemFont ( int id ) const
- QRect itemGeometry ( int index )
- int itemParameter ( int id ) const
- QPixmap pixmap ( int id ) const
- void popup ( const QPoint & pos, int indexAtPoint )
- void removeItem ( int id )
- void removeItemAt ( int index )
- void setAccel ( const QKeySequence & key, int id )
- void setActiveItem ( int id )
- void setCheckable ( bool checkable )
- void setId ( int index, int id )
- void setItemChecked ( int id, bool check )
- void setItemEnabled ( int id, bool enable )
- void setItemFont ( int id, const QFont & font )
- bool setItemParameter ( int id, int param )
- void setItemVisible ( int id, bool visible )
- void setWhatsThis ( int id, const QString & w )
- QString text ( int id ) const
- QString whatsThis ( int id ) const
- 60 открытых функций унаследованных от QWidget
- 8 открытых функций унаследованных от QObject
- 8 открытых функций унаследованных от QPaintDevice
[править] Сигналы
- void activated ( int itemId )
- void highlighted ( int itemId )
[править] Защищенные функции
- int columns () const
- int itemAtPos ( const QPoint & p, bool ignoreSeparator = true )
- int itemHeight ( int index )
- int itemHeight ( QMenuItem * mi )
- 1 защищенная функция унаследованна от QObject
[править] Описание функций-членов
[править] QKeySequence QMenu::accel ( int id ) const
Use shortcut() on the relevant QAction instead.
See also setAccel().
[править] void QMenu::activateItemAt ( int index )
Use activate() on the relevant QAction instead.
[править] void QMenu::activated ( int itemId ) [signal]
Use triggered() instead.
[править] void QMenu::changeItem ( int id, const QString & text )
Use setText() on the relevant QAction instead.
[править] void QMenu::changeItem ( int id, const QPixmap & pixmap )
This is an overloaded member function, provided for convenience.
Use setText() on the relevant QAction instead.
[править] void QMenu::changeItem ( int id, const QIcon & icon, const QString & text )
This is an overloaded member function, provided for convenience.
Use setIcon() and setText() on the relevant QAction instead.
[править] int QMenu::columns () const [protected]
Use columnCount() instead.
[править] bool QMenu::connectItem ( int id, const QObject * receiver, const char * member )
Use connect() on the relevant QAction instead.
[править] uint QMenu::count () const
Use actions().count() instead.
[править] bool QMenu::disconnectItem ( int id, const QObject * receiver, const char * member )
Use disconnect() on the relevant QAction instead.
[править] QMenuItem * QMenu::findItem ( int id ) const
Use actions instead.
[править] QMenuItem * QMenu::findPopup ( QMenu * popup, int * index )
Use QAction and actions() instead.
[править] int QMenu::frameWidth () const
Use style()->pixelMetric( QStyle::PM_MenuPanelWidth, this) instead.
[править] void QMenu::highlighted ( int itemId ) [signal]
Use hovered() instead.
[править] QIcon QMenu::iconSet ( int id ) const
Use icon() on the relevant QAction instead.
[править] int QMenu::idAt ( int index ) const
Use actions instead.
[править] int QMenu::indexOf ( int id ) const
Use actions().indexOf(action) on the relevant QAction instead.
[править] int QMenu::insertItem ( const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0, int id = -1, int index = -1 )
Use insertAction() or one of the addAction() overloads instead.
[править] int QMenu::insertItem ( const QIcon & icon, const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0, int id = -1, int index = -1 )
This is an overloaded member function, provided for convenience.
Use insertAction() or one of the addAction() overloads instead.
[править] int QMenu::insertItem ( const QPixmap & pixmap, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0, int id = -1, int index = -1 )
This is an overloaded member function, provided for convenience.
Use insertAction() or one of the addAction() overloads instead.
[править] int QMenu::insertItem ( const QString & text, int id = -1, int index = -1 )
This is an overloaded member function, provided for convenience.
Use insertAction() or one of the addAction() overloads instead.
[править] int QMenu::insertItem ( const QIcon & icon, const QString & text, int id = -1, int index = -1 )
This is an overloaded member function, provided for convenience.
Use insertAction() or one of the addAction() overloads instead.
[править] int QMenu::insertItem ( const QString & text, QMenu * popup, int id = -1, int index = -1 )
This is an overloaded member function, provided for convenience.
Use insertMenu() or one of the addMenu() overloads instead.
[править] int QMenu::insertItem ( const QIcon & icon, const QString & text, QMenu * popup, int id = -1, int index = -1 )
This is an overloaded member function, provided for convenience.
Use insertMenu() or one of the addMenu() overloads instead.
[править] int QMenu::insertItem ( const QPixmap & pixmap, int id = -1, int index = -1 )
This is an overloaded member function, provided for convenience.
Use insertAction() or one of the addAction() overloads instead.
[править] int QMenu::insertItem ( const QPixmap & pixmap, QMenu * popup, int id = -1, int index = -1 )
This is an overloaded member function, provided for convenience.
Use insertMenu() or one of the addMenu() overloads instead.
[править] int QMenu::insertItem ( QMenuItem * item, int id = -1, int index = -1 )
This is an overloaded member function, provided for convenience.
Use insertAction() or one of the addAction() overloads instead.
[править] int QMenu::insertSeparator ( int index = -1 )
This is an overloaded member function, provided for convenience.
Use the insertSeparator() overload that takes a QAction * parameter instead.
[править] int QMenu::insertTearOffHandle ( int a = 0, int b = 0 )
Use setTearOffEnabled() instead.
[править] bool QMenu::isCheckable () const
Not necessary anymore. Always returns true.
[править] bool QMenu::isItemActive ( int id ) const
Use activeAction() instead.
[править] bool QMenu::isItemChecked ( int id ) const
Use isChecked() on the relevant QAction instead.
[править] bool QMenu::isItemEnabled ( int id ) const
Use isEnabled() on the relevant QAction instead.
[править] bool QMenu::isItemVisible ( int id ) const
Use isVisible() on the relevant QAction instead.
[править] int QMenu::itemAtPos ( const QPoint & p, bool ignoreSeparator = true ) [protected]
Use actions instead.
[править] QFont QMenu::itemFont ( int id ) const
Use font() on the relevant QAction instead.
See also setItemFont().
[править] QRect QMenu::itemGeometry ( int index )
Use actionGeometry() on the relevant QAction instead.
[править] int QMenu::itemHeight ( int index ) [protected]
Use actionGeometry( actions().value(index)). height() instead.
[править] int QMenu::itemHeight ( QMenuItem * mi ) [protected]
This is an overloaded member function, provided for convenience.
Use actionGeometry() instead.
[править] int QMenu::itemParameter ( int id ) const
Use QAction::data() instead.
See also setItemParameter().
[править] QPixmap QMenu::pixmap ( int id ) const
Use QPixmap( icon()) on the relevant QAction instead.
[править] void QMenu::popup ( const QPoint & pos, int indexAtPoint )
This is an overloaded member function, provided for convenience.
Use popup() on the relevant QAction instead.
[править] void QMenu::removeItem ( int id )
Use removeAction() instead.
[править] void QMenu::removeItemAt ( int index )
Use removeAction() instead.
[править] void QMenu::setAccel ( const QKeySequence & key, int id )
Use setShortcut() on the relevant QAction instead.
See also accel().
[править] void QMenu::setActiveItem ( int id )
Use setActiveAction() instead.
[править] void QMenu::setCheckable ( bool checkable )
Not necessary anymore. The checkable parameter is ignored.
See also isCheckable().
[править] void QMenu::setId ( int index, int id )
Use actions instead.
[править] void QMenu::setItemChecked ( int id, bool check )
Use setChecked() on the relevant QAction instead.
See also isItemChecked().
[править] void QMenu::setItemEnabled ( int id, bool enable )
Use setEnabled() on the relevant QAction instead.
See also isItemEnabled().
[править] void QMenu::setItemFont ( int id, const QFont & font )
Use setFont() on the relevant QAction instead.
See also itemFont().
[править] bool QMenu::setItemParameter ( int id, int param )
Use QAction::setData() instead.
See also itemParameter().
[править] void QMenu::setItemVisible ( int id, bool visible )
Use setVisible() on the relevant QAction instead.
See also isItemVisible().
[править] void QMenu::setWhatsThis ( int id, const QString & w )
Use setWhatsThis() on the relevant QAction instead.
See also whatsThis().
[править] QString QMenu::text ( int id ) const
Use text() on the relevant QAction instead.
[править] QString QMenu::whatsThis ( int id ) const
Use whatsThis() on the relevant QAction instead.
See also setWhatsThis().
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.2
|