Qt 3 Support Members for QMenuThe 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
Signals
Protected Functions
Member Function DocumentationQKeySequence QMenu::accel ( int id ) constUse 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 () constUse 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 ) constUse actions instead. QMenuItem * QMenu::findPopup ( QMenu * popup, int * index )Use QAction and actions() instead. int QMenu::frameWidth () constUse style()->pixelMetric(QStyle::PM_MenuPanelWidth, this) instead. void QMenu::highlighted ( int itemId ) [signal]Use hovered() instead. QIcon QMenu::iconSet ( int id ) constUse icon() on the relevant QAction instead. int QMenu::idAt ( int index ) constUse actions instead. int QMenu::indexOf ( int id ) constUse 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 () constNot necessary anymore. Always returns true. bool QMenu::isItemActive ( int id ) constUse activeAction() instead. bool QMenu::isItemChecked ( int id ) constUse isChecked() on the relevant QAction instead. bool QMenu::isItemEnabled ( int id ) constUse isEnabled() on the relevant QAction instead. bool QMenu::isItemVisible ( int id ) constUse isVisible() on the relevant QAction instead. int QMenu::itemAtPos ( const QPoint & p, bool ignoreSeparator = true ) [protected]Use actions instead. QFont QMenu::itemFont ( int id ) constUse 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 ) constUse QAction::data() instead. See also setItemParameter(). QPixmap QMenu::pixmap ( int id ) constUse 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 ) constUse text() on the relevant QAction instead. QString QMenu::whatsThis ( int id ) constUse whatsThis() on the relevant QAction instead. See also setWhatsThis().
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |