Qt 3 Support Members for QMenuBarОписанные ниже члены класса являются частью слоя поддержки Qt 3. Они введены для поддержки старого кода в Qt 4. Мы советуем не использовать их во вновь создаваемом коде. Открытые типы
Открытые функции
Сигналы
Защищенные функции
Описание типов-членовenum QMenuBar::Separator
Описание функций-членовQMenuBar::QMenuBar ( QWidget * parent, const char * name )Use one of the constructors that doesn't take the name argument and then use setObjectName() instead. QKeySequence QMenuBar::accel ( int id ) constUse shortcut() on the relevant QAction instead. Смотрите также setAccel(). void QMenuBar::activateItemAt ( int index )Use activate() on the relevant QAction instead. void QMenuBar::activated ( int itemId ) [signal]Use triggered() instead. bool QMenuBar::autoGeometry () constReturns true if the menu bar automatically resizes itself when its parent widget is resized; otherwise returns false. This feature is provided to help porting to Qt 4. We recommend against using it in new code. See also setAutoGeometry(). void QMenuBar::changeItem ( int id, const QString & text )Use setText() on the relevant QAction instead. void QMenuBar::changeItem ( int id, const QPixmap & pixmap )Это перегруженная функция, предоставленная для удобства. Use setText() on the relevant QAction instead. void QMenuBar::changeItem ( int id, const QIcon & icon, const QString & text )Это перегруженная функция, предоставленная для удобства. Use setIcon() and setText() on the relevant QAction instead. bool QMenuBar::connectItem ( int id, const QObject * receiver, const char * member )Use connect() on the relevant QAction instead. uint QMenuBar::count () constUse actions().count() instead. bool QMenuBar::disconnectItem ( int id, const QObject * receiver, const char * member )Use disconnect() on the relevant QAction instead. QMenuItem * QMenuBar::findItem ( int id ) constUse actions instead. int QMenuBar::frameWidth () constUse style()->pixelMetric(QStyle::PM_MenuBarPanelWidth, this) instead. void QMenuBar::highlighted ( int itemId ) [signal]Use hovered() instead. QIcon QMenuBar::iconSet ( int id ) constUse icon() on the relevant QAction instead. int QMenuBar::idAt ( int index ) constUse actions instead. int QMenuBar::indexOf ( int id ) constUse actions().indexOf(action) on the relevant QAction instead. int QMenuBar::insertItem ( const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0, int id = -1, int index = -1 )Use one of the insertAction() or addAction() overloads instead. int QMenuBar::insertItem ( const QIcon & icon, const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0, int id = -1, int index = -1 )Это перегруженная функция, предоставленная для удобства. Use one of the insertAction() or addAction() overloads instead. int QMenuBar::insertItem ( const QPixmap & pixmap, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0, int id = -1, int index = -1 )Это перегруженная функция, предоставленная для удобства. Use one of the insertAction(), addAction(), insertMenu(), or addMenu() overloads instead. int QMenuBar::insertItem ( const QString & text, int id = -1, int index = -1 )Это перегруженная функция, предоставленная для удобства. Use one of the insertAction() or addAction() overloads instead. int QMenuBar::insertItem ( const QIcon & icon, const QString & text, int id = -1, int index = -1 )Это перегруженная функция, предоставленная для удобства. Use one of the insertAction(), addAction(), insertMenu(), or addMenu() overloads instead. int QMenuBar::insertItem ( const QString & text, QMenu * popup, int id = -1, int index = -1 )Это перегруженная функция, предоставленная для удобства. Use one of the insertMenu(), or addMenu() overloads instead. int QMenuBar::insertItem ( const QIcon & icon, const QString & text, QMenu * popup, int id = -1, int index = -1 )Это перегруженная функция, предоставленная для удобства. Use one of the insertMenu(), or addMenu() overloads instead. int QMenuBar::insertItem ( const QPixmap & pixmap, int id = -1, int index = -1 )Это перегруженная функция, предоставленная для удобства. Use one of the insertAction(), addAction(), insertMenu(), or addMenu() overloads instead. int QMenuBar::insertItem ( const QPixmap & pixmap, QMenu * popup, int id = -1, int index = -1 )Это перегруженная функция, предоставленная для удобства. Use one of the insertMenu(), or addMenu() overloads instead. int QMenuBar::insertSeparator ( int index = -1 )Это перегруженная функция, предоставленная для удобства. Use addSeparator() or insertAction() instead. Например, если у вас есть код menuBar->insertSeparator(); вы можете записать его в виде menuBar->addSeparator(); Эта функция была введена в Qt 4.2. bool QMenuBar::isItemActive ( int id ) constUse activeAction() instead. bool QMenuBar::isItemChecked ( int id ) constUse isChecked() on the relevant QAction instead. bool QMenuBar::isItemEnabled ( int id ) constUse isEnabled() on the relevant QAction instead. bool QMenuBar::isItemVisible ( int id ) constUse isVisible() on the relevant QAction instead. int QMenuBar::itemAtPos ( const QPoint & p ) [protected]There is no equivalent way to achieve this in Qt 4. int QMenuBar::itemParameter ( int id ) constUse QAction::data() instead. See also setItemParameter(). QRect QMenuBar::itemRect ( int index ) [protected]Use actionGeometry() on the relevant QAction instead. int QMenuBar::margin () constReturns the with of the the margin around the contents of the widget. Use QWidget::getContentsMargins() instead. See also setMargin() and QWidget::getContentsMargins(). QPixmap QMenuBar::pixmap ( int id ) constUse QPixmap(icon()) on the relevant QAction instead. void QMenuBar::removeItem ( int id )Use removeAction() instead. void QMenuBar::removeItemAt ( int index )Use removeAction() instead. Separator QMenuBar::separator () constThis function is provided only to make old code compile. See also setSeparator(). void QMenuBar::setAccel ( const QKeySequence & key, int id )Use setShortcut() on the relevant QAction instead. Смотрите также accel(). void QMenuBar::setAutoGeometry ( bool b )Sets whether the menu bar should automatically resize itself when its parent widget is resized. This feature is provided to help porting to Qt 4. We recommend against using it in new code. See also autoGeometry(). void QMenuBar::setItemChecked ( int id, bool check )Use setChecked() on the relevant QAction instead. See also isItemChecked(). void QMenuBar::setItemEnabled ( int id, bool enable )Use setEnabled() on the relevant QAction instead. See also isItemEnabled(). bool QMenuBar::setItemParameter ( int id, int param )Use QAction::setData() instead. See also itemParameter(). void QMenuBar::setItemVisible ( int id, bool visible )Use setVisible() on the relevant QAction instead. See also isItemVisible(). void QMenuBar::setMargin ( int margin )Sets the width of the margin around the contents of the widget to margin. Используйте взамен QWidget::setContentsMargins(). See also margin() and QWidget::setContentsMargins(). void QMenuBar::setSeparator ( Separator sep )This function is provided only to make old code compile. See also separator(). void QMenuBar::setWhatsThis ( int id, const QString & w )Use setWhatsThis() on the relevant QAction instead. See also whatsThis(). QString QMenuBar::text ( int id ) constUse text() on the relevant QAction instead. QString QMenuBar::whatsThis ( int id ) constUse whatsThis() on the relevant QAction instead. Смотрите также setWhatsThis().
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |