亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qmenudata.cpp

?? qtopia-phone-2.2.0下公共的控件實現(xiàn)源代碼。
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
	else	    parent->menuContentsChanged();    }}/*!  Changes the icon and text of the menu item \a id.  \sa pixmap()*/void QMenuData::changeItem( int id, const QIconSet &icon, const QString &text ){    changeItem(id, text);    changeItemIconSet(id,  icon);}/*!  Changes the icon and pixmap of the menu item \a id.  \sa pixmap()*/void QMenuData::changeItem( int id, const QIconSet &icon, const QPixmap &pixmap ){    changeItem(id, pixmap);    changeItemIconSet(id,  icon);}/*!  Changes the icon of the menu item \a id.  \sa pixmap()*/void QMenuData::changeItemIconSet( int id, const QIconSet &icon ){    QMenuData *parent;    QMenuItem *mi = findItem( id, &parent );    if ( mi ) {					// item found	register QIconSet *i = mi->iconset_data;	bool fast_refresh = i != 0;	mi->iconset_data = new QIconSet( icon );	delete i; // old mi->iconset_data, could be &icon	if ( fast_refresh )	    parent->updateItem( id );	else	    parent->menuContentsChanged();    }}/*!  Returns TRUE if the item with identifier \a id is enabled or FALSE if  it is disabled.  \sa setItemEnabled()*/bool QMenuData::isItemEnabled( int id ) const{    QMenuItem *mi = findItem( id );    return mi ? mi->isEnabled() : FALSE;}/*!  Enables the menu item with identifier \a id if \a enable is TRUE, or  disables the item if \a enable is FALSE.  \sa isItemEnabled()*/void QMenuData::setItemEnabled( int id, bool enable ){    QMenuData *parent;    QMenuItem *mi = findItem( id, &parent );    if ( mi && (bool)mi->is_enabled != enable ) {	mi->is_enabled = enable;#ifndef QT_NO_ACCEL	if ( mi->popup() )	    mi->popup()->enableAccel( enable );#endif	parent->menuStateChanged();    }}/*!  Returns TRUE if the menu item has been checked, otherwise FALSE.  \sa setItemChecked()*/bool QMenuData::isItemChecked( int id ) const{    QMenuItem *mi = findItem( id );    return mi ? mi->isChecked() : FALSE;}/*!  Checks the menu item with id \a id if \a check is TRUE, or unchecks  it if \a check is FALSE, and calls QPopupMenu::setCheckable( TRUE ) if  necessary.  \sa isItemChecked()*/void QMenuData::setItemChecked( int id, bool check ){    QMenuData *parent;    QMenuItem *mi = findItem( id, &parent );    if ( mi && (bool)mi->is_checked != check ) {	mi->is_checked = check;	if ( parent->isPopupMenu && !((QPopupMenu *)parent)->isCheckable() )	    ((QPopupMenu *)parent)->setCheckable( TRUE );	parent->menuStateChanged();    }}/*!  Returns a pointer to the menu item with identifier \a id, or 0 if  there is no item with such an identifier.  \sa indexOf()*/QMenuItem *QMenuData::findItem( int id ) const{    return findItem( id, 0 );}/*!  Returns a pointer to the menu item with identifier \a id, or 0 if  there is no item with such an identifier, and changes \a parent to  point to the parent of the return value.  \sa indexOf()*/QMenuItem * QMenuData::findItem( int id, QMenuData ** parent ) const{    if ( parent )	*parent = (QMenuData *)this;		// ###    if ( id == -1 )				// bad identifier	return 0;    QMenuItemListIt it( *mitems );    QMenuItem *mi;    while ( (mi=it.current()) ) {		// search this menu	++it;	if ( mi->ident == id )			// found item	    return mi;    }    it.toFirst();    while ( (mi=it.current()) ) {		// search submenus	++it;	if ( mi->popup_menu ) {	    mi = mi->popup_menu->findItem( id, parent );	    if ( mi )				// found item		return mi;	}    }    return 0;					// not found}/*!  Returns the index of the menu item with identifier \a id, or -1 if  there is no item with such an identifier.  \sa idAt(), findItem()*/int QMenuData::indexOf( int id ) const{    if ( id == -1 )				// bad identifier	return -1;    QMenuItemListIt it( *mitems );    QMenuItem *mi;    int index = 0;    while ( (mi=it.current()) ) {	if ( mi->ident == id )			// this one?	    return index;	++index;	++it;    }    return -1;					// not found}/*!  Returns the identifier of the menu item at position \a index in the internal  list, or -1 if \a index is out of range.  \sa setId(), indexOf()*/int QMenuData::idAt( int index ) const{    return index < (int)mitems->count() && index >= 0 ?	   mitems->at(index)->id() : -1;}/*!  Sets the menu identifier of the item at \a index to \a id.  If index is out of range the operation is ignored.  \sa idAt()*/void QMenuData::setId( int index, int id ){    if ( index < (int)mitems->count() )	mitems->at(index)->ident = id;}/*!  Sets the parameter of the activation signal of item \a id to \a  param.  If any receiver takes an integer parameter, this value is passed.  \sa connectItem(), disconnectItem(), itemParameter() */bool QMenuData::setItemParameter( int id, int param ) {    QMenuItem *mi = findItem( id );    if ( !mi )					// no such identifier	return FALSE;    if ( !mi->signal_data ) {			// create new signal	mi->signal_data = new QSignal;	CHECK_PTR( mi->signal_data );    }    mi->signal_data->setParameter( param );    return TRUE;}/*!  Returns the parameter of the activation signal of item \a id.  If no parameter has been specified for this item with  setItemParameter(), the value defaults to \a id.  \sa connectItem(), disconnectItem(), setItemParameter() */int QMenuData::itemParameter( int id ) const{    QMenuItem *mi = findItem( id );    if ( !mi || !mi->signal_data )	return id;    return mi->signal_data->parameter();}/*!  Connects a menu item to a receiver and a slot or signal.  The receiver's slot/signal is activated when the menu item is activated.  \sa disconnectItem(), setItemParameter()*/bool QMenuData::connectItem( int id, const QObject *receiver,			     const char* member ){    QMenuItem *mi = findItem( id );    if ( !mi )					// no such identifier	return FALSE;    if ( !mi->signal_data ) {			// create new signal	mi->signal_data = new QSignal;	CHECK_PTR( mi->signal_data );	mi->signal_data->setParameter( id );    }    return mi->signal_data->connect( receiver, member );}/*!  Disconnects a receiver/member from a menu item.  All connections are removed when the menu data object is destroyed.  \sa connectItem(), setItemParameter()*/bool QMenuData::disconnectItem( int id, const QObject *receiver,				const char* member ){    QMenuItem *mi = findItem( id );    if ( !mi || !mi->signal_data )		// no identifier or no signal	return FALSE;    return mi->signal_data->disconnect( receiver, member );}/*!  Sets a Whats This help for a certain menu item.  \arg \e id is the menu item id.  \arg \e text is the Whats This help text in rich text format ( see QStyleSheet)  \sa whatsThis() */void QMenuData::setWhatsThis( int id, const QString& text ){    QMenuData *parent;    QMenuItem *mi = findItem( id, &parent );    if ( mi ) {	mi->setWhatsThis( text );	parent->menuContentsChanged();    }}/*!  Returns the Whats This help text for the specified item \e id or  QString::null if no text has been defined yet.  \sa setWhatsThis() */QString QMenuData::whatsThis( int id ) const{    QMenuItem *mi = findItem( id );    return mi? mi->whatsThis() : QString::null;}// NOT REVISED/*!  \class QCustomMenuItem qmenudata.h  \brief The QCustomMenuItem class is an abstract base class for custom menu items in  popup menus.  A custom menu item is a menu item that is defined by two purely  virtual functions, paint() and sizeHint(). The size hint tells the  menu how much space it needs to reserve for this item, whereas paint  is called whenever the item needs painting.  This simply mechanism gives applications the possibility to create  all kinds of application specific menu items. Examples are items  showing different fonts in a word processor, or menus that allow the  selection of drawing utilities in a vector drawing program.  A custom item is inserted into a popup menu with  QPopupMenu::insertItem().  Per default, a custom item can also have an icon set and/or an  accelerator key. You can, however, reimplement fullSpan() to return  TRUE if you want the item to span the entire popup menu width. This  is in particular useful for labels.  If you want the custom item to be treated as a separator only,  reimplement isSeparator() to return TRUE.  Note that you can also insert pixmaps or bitmaps as items into a  popup menu. A custom menu item, however, offers even more  flexibility and - which is especially important under windows style  - the possibility to draw the item with a different color when it is  highlighted.  menu/menu.cpp shows a simply example how custom menu items can beused.  Please note: QCustomMenu items will not recognize menu shortcuts (text with ampersands  in it).  <img src=qpopmenu-fancy.png>  \sa QMenuData, QPopupMenu*//*!  Constructs a QCustomMenuItem */QCustomMenuItem::QCustomMenuItem(){}/*!  Destructs a QCustomMenuItem */QCustomMenuItem::~QCustomMenuItem(){}/*!  Sets the font of the custom menu item.  This function is called whenever the font in the popup menu  changes. For menu items that show their own individual font entry,  you want to ignore this. */void QCustomMenuItem::setFont( const QFont&  ){}/*!  Returns whether this item wants to span the entire popup menu width.  The default is FALSE, meaning that the menu may show an icon and/or  an accelerator key for this item as well. */bool QCustomMenuItem::fullSpan() const{    return FALSE;}/*!  Returns whether this item is just a separator. */bool QCustomMenuItem::isSeparator() const{    return FALSE;}/*! \fn void QCustomMenuItem::paint( QPainter* p, const QColorGroup& cg, bool act,  bool enabled, int x, int y, int w, int h );  Paints this item. When this function is invoked, the painter \a p is  set to the right font and the right foreground color suitable for a  menu item text. The item is active according to \a act and  enabled/disabled according to \a enabled. The geometry values \a x,  \a y, \a w and h specify where to draw the item.  Do not draw any background, this has already been done by the popup  menu according to the current gui style. *//*! \fn QSize QCustomMenuItem::sizeHint();  Returns the size hint of this item. *//*!  Activates the menu item at index \a index.  If the index is invalid (for example -1), the object itself is  deactivated. */void QMenuData::activateItemAt( int index ){#ifndef QT_NO_MENUBAR    if ( isMenuBar )	( (QMenuBar*)this )->activateItemAt( index );    else#endif    if ( isPopupMenu )	( (QPopupMenu*)this )->activateItemAt( index );}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆免费精品视频| 欧洲国产伦久久久久久久| 婷婷夜色潮精品综合在线| 国产精品久久精品日日| 精品国产91九色蝌蚪| 欧美精品亚洲一区二区在线播放| 不卡的电影网站| 国产精品一品二品| 亚洲国产欧美日韩另类综合| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 亚洲欧美影音先锋| 国产清纯美女被跳蛋高潮一区二区久久w | 精品国产sm最大网站| 欧洲精品在线观看| 91蜜桃免费观看视频| 成人深夜在线观看| 国产福利精品导航| 国产一区二区精品在线观看| 久久99精品久久久| 日韩国产欧美视频| 奇米精品一区二区三区在线观看一| 亚洲国产成人av网| 亚洲第一成人在线| 亚洲国产视频一区| 偷窥少妇高潮呻吟av久久免费| 亚洲电影激情视频网站| 亚洲成av人片一区二区梦乃| 久热成人在线视频| 国产毛片精品视频| 成人av网在线| 欧美三级日韩在线| 91精品国产色综合久久不卡电影 | 91精品国产综合久久久久| 91麻豆精品国产91久久久久久久久| 欧美人与z0zoxxxx视频| 国产精品家庭影院| 亚洲影视在线播放| 日韩电影免费在线| 精品亚洲免费视频| 91亚洲精品一区二区乱码| 色婷婷av一区二区三区大白胸 | 日韩视频一区二区三区在线播放| 精品国一区二区三区| 国产欧美日韩综合| 最新成人av在线| 男人的j进女人的j一区| 国产精品自拍网站| 91一区一区三区| 在线观看不卡一区| 久久久夜色精品亚洲| 综合色天天鬼久久鬼色| 午夜欧美视频在线观看| 高清不卡在线观看av| 在线亚洲欧美专区二区| 91精品在线一区二区| 日韩亚洲国产中文字幕欧美| 日韩美女视频一区| 日韩电影在线观看网站| 国产69精品久久777的优势| 在线欧美小视频| 久久久精品影视| 亚洲成人av资源| 国产99精品在线观看| 91精品国产综合久久久久久久 | av网站一区二区三区| 一本大道久久a久久综合| 欧美一区二视频| 亚洲国产精品黑人久久久| 亚洲影视在线播放| 精品综合免费视频观看| 91麻豆国产福利在线观看| 日韩一区二区三| 综合久久久久久| 久久国内精品自在自线400部| 国产精品一区二区黑丝| 欧美日韩视频在线观看一区二区三区| 久久一区二区三区国产精品| 一区二区三区免费在线观看| 国产尤物一区二区在线| 欧美午夜精品免费| 国产欧美日韩一区二区三区在线观看| 国产成人精品一区二区三区网站观看| 日本丶国产丶欧美色综合| 久久久亚洲高清| 亚洲1区2区3区4区| 成人黄色av网站在线| 884aa四虎影成人精品一区| 国产精品毛片久久久久久久| 久久成人综合网| 欧美视频一区在线| 最新成人av在线| 久久国产夜色精品鲁鲁99| 91福利资源站| 国产精品国产精品国产专区不蜜| 久久99国产精品久久99果冻传媒| 国产麻豆日韩欧美久久| 欧美视频在线播放| 亚洲人成精品久久久久| 成人精品鲁一区一区二区| 欧美激情资源网| 成人免费视频播放| 国产精品第五页| 色综合一个色综合亚洲| 亚洲欧美日韩成人高清在线一区| 99麻豆久久久国产精品免费 | 国产麻豆一精品一av一免费 | 丝袜诱惑亚洲看片| 欧美精品v日韩精品v韩国精品v| 亚洲高清免费观看高清完整版在线观看| 91在线精品秘密一区二区| 中文字幕免费一区| av资源站一区| 亚洲一级二级在线| 欧美日韩美少妇| 麻豆一区二区99久久久久| 精品国产电影一区二区| 国产久卡久卡久卡久卡视频精品| 国产三级欧美三级日产三级99| 国产成人综合在线播放| 综合久久一区二区三区| 欧美性高清videossexo| 视频一区中文字幕| 日韩精品自拍偷拍| 国产成人免费在线观看不卡| 亚洲欧洲日韩一区二区三区| 欧美日韩一区在线| 免费观看一级欧美片| 久久久蜜臀国产一区二区| 国产不卡视频一区二区三区| 一区二区三区在线观看网站| 欧美一区二区视频免费观看| 韩国精品久久久| 国产蜜臀av在线一区二区三区| 97成人超碰视| a在线欧美一区| 午夜精品一区二区三区三上悠亚| 欧美va在线播放| 99精品欧美一区二区三区小说 | 国产凹凸在线观看一区二区| 亚洲欧美二区三区| 欧美亚洲综合色| 秋霞av亚洲一区二区三| 久久婷婷一区二区三区| 色悠久久久久综合欧美99| 日韩国产欧美三级| 国产精品免费免费| 在线综合+亚洲+欧美中文字幕| 国产成人精品1024| 首页国产欧美久久| 欧美韩国日本不卡| 欧美疯狂性受xxxxx喷水图片| 国产不卡视频在线观看| 亚洲超碰精品一区二区| 日本一区二区视频在线观看| 欧美性一级生活| 国产精品99久久久久久久女警 | 国产精品视频看| 欧美精品久久99久久在免费线| 国产一区不卡精品| 亚洲激情av在线| 久久亚洲一区二区三区四区| 在线视频国内自拍亚洲视频| 狠狠色伊人亚洲综合成人| 亚洲三级在线观看| 久久久久成人黄色影片| 制服丝袜日韩国产| 91天堂素人约啪| 国产美女一区二区三区| 三级成人在线视频| 亚洲女人的天堂| 亚洲国产精品精华液ab| 欧美成人精品1314www| 欧美色区777第一页| 成人av在线资源| 国产一区免费电影| 视频一区在线视频| 亚洲综合色成人| 亚洲视频每日更新| 国产欧美一二三区| 精品精品国产高清a毛片牛牛| 欧美另类久久久品| 91久久精品一区二区二区| 丁香婷婷综合色啪| 加勒比av一区二区| 免费成人美女在线观看| 亚洲成人先锋电影| 一区二区三区**美女毛片| 国产精品乱码人人做人人爱 | 国产精品激情偷乱一区二区∴| 欧美大肚乱孕交hd孕妇| 欧美精品日韩精品| 欧美日韩国产美| 欧美综合视频在线观看| 91色九色蝌蚪| 99久久99久久精品免费观看| 成人精品一区二区三区中文字幕| 国产精品亚洲一区二区三区在线| 久久99精品视频| 蜜臀国产一区二区三区在线播放| 成人精品视频网站|