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

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

?? qaction.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
  has to be the application window.  \sa accel() */void QAction::setAccel( int key ){    d->key = key;#ifndef QT_NO_ACCEL    delete d->accel;    d->accel = 0;#endif    if ( !key ) {	d->update();	return;    }#ifndef QT_NO_ACCEL    QObject* p = parent();    while ( p && !p->isWidgetType() ) {	p = p->parent();    }    if ( p ) {	d->accel = new QAccel( (QWidget*)p, 0, "qt_action_accel" );	d->accelid = d->accel->insertItem( d->key );	d->accel->connectItem( d->accelid, this, SLOT( internalActivation() ) );	if ( !d->whatsthis.isEmpty() )	    d->accel->setWhatsThis( d->accelid, d->whatsthis );    }#if defined(CHECK_STATE)    else	qWarning( "QAction::setAccel()  (%s) requires widget in parent chain.", name( "unnamed" ) );#endif#endif    d->update();}/*!  Returns the acceleration key.  \sa setAccel() */int QAction::accel() const{    return d->key;}/*!  Makes the action a toggle action if \e enable is TRUE, or a  normal action if \e enable is FALSE.  You may want to add toggle actions to a QActionGroup for exclusive  toggling.  \sa isToggleAction() */void QAction::setToggleAction( bool enable ){    if ( enable == (bool)d->toggleaction )	return;    d->toggleaction = enable;    d->update();}/*!  Returns whether the action is a toggle action or not.  \sa setToggleAction() */bool QAction::isToggleAction() const{    return d->toggleaction;}/*!  Switches a toggle action on if \e enable is TRUE or off if \e enable is  FALSE.  This function should be called only for toggle actions.  \sa isOn(), setToggleAction() */void QAction::setOn( bool enable ){    if ( !isToggleAction() ) {#if defined(CHECK_STATE)	qWarning( "QAction::setOn() (%s) Only toggle actions "		  "may be switched", name( "unnamed" ) );#endif	return;    }    if ( enable == (bool)d->on )	return;    d->on = enable;    d->update( QActionPrivate::State );    emit toggled( enable );}/*!  Returns TRUE if this toggle action is switched on, or FALSE if it is switched off. \sa setOn(), isToggleAction()*/bool QAction::isOn() const{    return d->on;}/*!  Enables the action if \a enable is TRUE, otherwise disables it.  Menu items and/or tool buttons presenting the action to the user are  updated accordingly.  \sa isEnabled() */void QAction::setEnabled( bool enable ){    if ( d->enabled != enable ) {	d->enabled = enable;#ifndef QT_NO_ACCEL	if ( d->accel )	    d->accel->setEnabled( enable );#endif	d->update( QActionPrivate::State );    }}/*!  Returns TRUE if the action is enabled, or FALSE if it is disabled.  \sa setEnabled() */bool QAction::isEnabled() const{    return d->enabled;}void QAction::internalActivation(){    if ( isToggleAction() )	setOn( !isOn() );    emit activated();}void QAction::toolButtonToggled( bool on ){    if ( !isToggleAction() )	return;    setOn( on );}/*! Adds this action to widget \a w.  Currently supported widget types are QToolBar and QPopupMenu.  Returns TRUE when the action was added successfully, FALSE  otherwise.  \sa removeFrom() */bool QAction::addTo( QWidget* w ){#ifndef QT_NO_TOOLBAR    if ( w->inherits( "QToolBar" ) ) {	QCString bname = name() + QCString( "_action_button" );	QToolButton* btn = new QToolButton( (QToolBar*) w, bname );	btn->setToggleButton( d->toggleaction );	d->toolbuttons.append( btn );	if ( d->iconset )	    btn->setIconSet( *d->iconset );	d->update( QActionPrivate::State );	d->update( QActionPrivate::Everything );	connect( btn, SIGNAL( clicked() ), this, SIGNAL( activated() ) );	connect( btn, SIGNAL( toggled(bool) ), this, SLOT( toolButtonToggled(bool) ) );	connect( btn, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );# ifndef QT_NO_TOOLTIP	connect( d->tipGroup, SIGNAL(showTip(const QString&)), this, SLOT(showStatusText(const QString&)) );	connect( d->tipGroup, SIGNAL(removeTip()), this, SLOT(clearStatusText()) );# endif    } else#endif    if ( w->inherits( "QPopupMenu" ) ) {	QActionPrivate::MenuItem* mi = new QActionPrivate::MenuItem;	mi->popup = (QPopupMenu*) w;	QIconSet* diconset = d->iconset; // stupid GCC 2.7.x compiler	if ( diconset )	    mi->id = mi->popup->insertItem( *diconset, QString::fromLatin1("") );	else	    mi->id = mi->popup->insertItem( QString::fromLatin1("") );	mi->popup->connectItem( mi->id, this, SLOT(internalActivation()) );	d->menuitems.append( mi );	d->update( QActionPrivate::State );	d->update( QActionPrivate::Everything );	w->topLevelWidget()->className();	connect( mi->popup, SIGNAL(highlighted(int)), this, SLOT(menuStatusText(int)) );	connect( mi->popup, SIGNAL(aboutToHide()), this, SLOT(clearStatusText()) );	connect( mi->popup, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );    } else {	qWarning( "QAction::addTo(), unknown object" );	return FALSE;    }    return TRUE;}/*!  Sets the status message to \a text */void QAction::showStatusText( const QString& text ){    QObject* par;    if ( ( par = parent() ) && par->inherits( "QActionGroup" ) )	par = par->parent();    if ( !par || !par->isWidgetType() )	return;#ifndef QT_NO_STATUSBAR    QObjectList* l = ( (QWidget*)par )->topLevelWidget()->queryList("QStatusBar");    for ( QStatusBar* bar = (QStatusBar*) l->first(); bar; bar = (QStatusBar*)l->next() ) {	if ( text.isEmpty() )	    bar->clear();	else	    bar->message( text );    }    delete l;#endif}/*!  Sets the status message to the menuitem's status text, or  to the tooltip, if there is no status text.*/void QAction::menuStatusText( int id ){    QString text;    QListIterator<QActionPrivate::MenuItem> it( d->menuitems);    QActionPrivate::MenuItem* mi;    while ( ( mi = it.current() ) ) {	++it;	if ( mi->id == id ) {	    text = statusTip();	    break;	}    }    if ( !text.isEmpty() )	showStatusText( text );}/*!  Clears the status text.*/void QAction::clearStatusText(){    showStatusText( QString::null );}/*!  Removes the action from widget \a w  Returns TRUE when the action was removed successfully, FALSE  otherwise.  \sa addTo()*/bool QAction::removeFrom( QWidget* w ){    if ( w->inherits( "QToolBar" ) ) {	QListIterator<QToolButton> it( d->toolbuttons);	QToolButton* btn;	while ( ( btn = it.current() ) ) {	    ++it;	    if ( btn->parentWidget() == w ) {		d->toolbuttons.removeRef( btn );		disconnect( btn, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );		delete btn;		// no need to disconnect from statusbar	    }	}    } else if ( w->inherits( "QPopupMenu" ) ) {	QListIterator<QActionPrivate::MenuItem> it( d->menuitems);	QActionPrivate::MenuItem* mi;	while ( ( mi = it.current() ) ) {	    ++it;	    if ( mi->popup == w ) {		disconnect( mi->popup, SIGNAL(highlighted(int)), this, SLOT(menuStatusText(int)) );		disconnect( mi->popup, SIGNAL(aboutToHide()), this, SLOT(clearStatusText()) );		disconnect( mi->popup, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );		mi->popup->removeItem( mi->id );		d->menuitems.removeRef( mi );	    }	}    } else {	qWarning( "QAction::removeFrom(), unknown object" );	return FALSE;    }    return TRUE;}void QAction::objectDestroyed(){    const QObject* obj = sender();    QListIterator<QActionPrivate::MenuItem> it( d->menuitems);    QActionPrivate::MenuItem* mi;    while ( ( mi = it.current() ) ) {	++it;	if ( mi->popup == obj )	    d->menuitems.removeRef( mi );    }    d->toolbuttons.removeRef( (QToolButton*) obj );}/*!  \fn void QAction::activated()  This signal is emitted when the action was activated by the user.  \sa toggled()*//*!  \fn void QAction::toggled(bool)  This signal is emitted when a toggle action changes state.  \sa activated(), setToggleAction()*/class QActionGroupPrivate{public:    uint exclusive: 1;    QList<QAction> actions;    QAction* selected;};/*!  \class QActionGroup qaction.h  \brief The QActionGroup class combines actions to a group.  An action group makes it easier to deal with groups of actions. It  allows to add, remove or activate its children with a single call  and provides radio semantics ("one of many" choice) for toggle  actions.  QActionGroup is an action by its own and thus can be treated as  such. Standard action functions like addTo(), removeFrom() and  setEnabled() are automatically performed on all members of the  group, i.e. for example that adding a group to a toolbar creates a  tool button for each child action.  Toggle action handling is controlled with the setExclusive() flag,  with the default being TRUE. An exclusive group switches off all  toggle actions except the one that was activated. This results in a  "one of many" choice similar to a group of radio buttons (see  QRadioButton). An exclusive group emits the signal selected()  whenever the current child action changes.*//*!  Constructs an action group with parent \a parent and name \a name.  If \a exclusive is TRUE, any toggle action that is a member of this  group is toggled off by another action being toggled on. */QActionGroup::QActionGroup( QWidget* parent, const char* name, bool exclusive )    : QAction( parent, name ){    d = new QActionGroupPrivate;    d->exclusive = exclusive;    d->selected = 0;}/*! Destroys the object and frees any allocated resources. */QActionGroup::~QActionGroup(){    delete d;}/*!  Sets the action group to be exclusive if \e enable is TRUE,  or to be non-exclusive if \e enable is FALSE.  In an exclusive group, any toggle action that is a member of this  group is toggled off by another action being toggled on.  \sa isExclusive() */void QActionGroup::setExclusive( bool enable ){    d->exclusive = enable;}/*!  Returns TRUE if the action group is exclusive, otherwise FALSE.  \sa setExclusive()*/bool QActionGroup::isExclusive() const{    return d->exclusive;}/*!  Inserts action \a action to the group.  It is not necessary to manually insert actions that have this action  group as their parent object. */void QActionGroup::insert( QAction* action ){    if ( d->actions.containsRef( action ) )	return;    action->setEnabled( isEnabled() );    d->actions.append( action );    connect( action, SIGNAL( destroyed() ), this, SLOT( childDestroyed() ) );    connect( action, SIGNAL( activated() ), this, SIGNAL( activated() ) );    connect( action, SIGNAL( toggled(bool) ), this, SLOT( childToggled(bool) ) );}/*!\reimp */bool QActionGroup::addTo( QWidget* w ){    for ( QListIterator<QAction> it( d->actions); it.current(); ++it ) {	it.current()->addTo( w );    }    return TRUE;}/*!\reimp */bool QActionGroup::removeFrom( QWidget* w ){    for ( QListIterator<QAction> it( d->actions); it.current(); ++it ) {	it.current()->removeFrom( w );    }    return TRUE;}void QActionGroup::childToggled( bool b ){    if ( !isExclusive() )	return;    QAction* s = (QAction*) sender();    if ( b ) {	if ( s != d->selected ) {	    d->selected = s;	    for ( QListIterator<QAction> it( d->actions); it.current(); ++it ) {		if ( it.current()->isToggleAction() && it.current() != s )		    it.current()->setOn( FALSE );	    }	    emit activated();	    emit selected( s );	}    } else {	if ( s == d->selected ) {	    // at least one has to be selected	    s->setOn( TRUE );	}    }}void QActionGroup::childDestroyed(){    d->actions.removeRef( (QAction*) sender() );    if ( d->selected == sender() )	d->selected = 0;}/*!\reimp */void QActionGroup::setEnabled( bool enable ){    for ( QListIterator<QAction> it( d->actions); it.current(); ++it ) {	it.current()->setEnabled( enable );    }    QAction::setEnabled( enable );}/*!  \fn void QActionGroup::selected(QAction*)  This signal is emitted in exclusive groups when the current toggle  action changes. \sa setExclusive()*/#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性受xxxx| 亚洲亚洲人成综合网络| 国产精品99久久久久久似苏梦涵| 日韩精品中文字幕一区二区三区| 视频一区二区三区中文字幕| 欧美一区二区三区四区在线观看| 日韩在线一区二区三区| 欧美成人激情免费网| 国产精品一区二区三区网站| 中文字幕av资源一区| 色婷婷国产精品综合在线观看| 亚洲制服丝袜在线| 欧美一级欧美三级| 韩国欧美国产1区| 中文字幕av一区 二区| 99re这里都是精品| 三级久久三级久久| 久久九九久久九九| 91免费在线播放| 亚洲国产精品人人做人人爽| 欧美xxxxx裸体时装秀| 不卡一卡二卡三乱码免费网站| 亚洲色图20p| 91精品蜜臀在线一区尤物| 国产麻豆视频精品| 亚洲精品视频在线观看免费| 欧美一区二区网站| 成人国产亚洲欧美成人综合网| 亚洲综合成人在线视频| 久久午夜色播影院免费高清| 91久久免费观看| 亚洲综合色婷婷| 日韩午夜在线影院| 成人黄色小视频| 久久精品99国产精品日本| 日本韩国欧美在线| 国产精品69久久久久水密桃| 亚洲成人精品一区二区| ww久久中文字幕| 欧美日韩一区在线| thepron国产精品| 开心九九激情九九欧美日韩精美视频电影| 国产精品久久久一区麻豆最新章节| 欧美区一区二区三区| 不卡一二三区首页| 国内精品免费**视频| 亚洲成人av资源| 亚洲欧美怡红院| 欧美成人精品福利| 69久久夜色精品国产69蝌蚪网| 99精品久久99久久久久| 国产一区二区三区四区五区美女| 亚洲v中文字幕| 亚洲精品乱码久久久久久| 国产嫩草影院久久久久| 精品国产一区二区三区久久久蜜月| 欧美视频中文一区二区三区在线观看| 国产精品综合在线视频| 日本女优在线视频一区二区| 亚洲观看高清完整版在线观看| 中文字幕的久久| 久久精品一区二区| 精品久久人人做人人爱| 欧美精品123区| 欧美日韩亚洲综合一区| 色偷偷久久一区二区三区| 成人精品视频.| 成人短视频下载| 国产成人在线影院| 国产99久久久国产精品潘金| 黑人精品欧美一区二区蜜桃| 免费成人你懂的| 免费在线成人网| 五月天国产精品| 三级欧美韩日大片在线看| 亚洲网友自拍偷拍| 婷婷一区二区三区| 天堂成人免费av电影一区| 亚洲成av人片在线| 日精品一区二区| 久久精品免费观看| 国产做a爰片久久毛片| 国产成人精品一区二| 成人爱爱电影网址| 色综合天天综合网天天狠天天| 91亚洲精品久久久蜜桃| 欧美三级电影一区| 欧美一区二区私人影院日本| 欧美精品一区二区蜜臀亚洲| www精品美女久久久tv| 国产午夜精品福利| 亚洲欧洲精品成人久久奇米网| 亚洲综合自拍偷拍| 日韩主播视频在线| 久久9热精品视频| 风流少妇一区二区| 色综合天天狠狠| 欧美精品高清视频| 久久这里都是精品| 中文字幕亚洲欧美在线不卡| 亚洲第一二三四区| 老司机精品视频在线| 粉嫩aⅴ一区二区三区四区 | 99国产精品久久久久久久久久| 不卡影院免费观看| 在线一区二区观看| 欧美精品粉嫩高潮一区二区| 欧美一级理论片| 欧美极品美女视频| 亚洲国产成人av好男人在线观看| 亚洲国产美女搞黄色| 六月丁香婷婷色狠狠久久| 国产精品影视网| 欧美亚洲丝袜传媒另类| 91精品婷婷国产综合久久性色 | 麻豆精品国产传媒mv男同| 久久黄色级2电影| 成人午夜在线免费| 欧美手机在线视频| 国产婷婷一区二区| 亚洲久本草在线中文字幕| 国产精品久久久久aaaa| 亚洲激情六月丁香| 日本亚洲天堂网| 国产精品一区二区黑丝| 不卡av免费在线观看| 欧美性三三影院| 久久免费电影网| 亚洲激情第一区| 天堂在线亚洲视频| 91丨九色丨国产丨porny| 欧美日韩亚洲综合| 国产片一区二区| 亚洲成人动漫一区| 日本成人在线一区| 色综合久久久久网| 精品国产乱码久久久久久老虎| 国产精品护士白丝一区av| 性做久久久久久免费观看欧美| 国产精品1区2区3区在线观看| 欧美巨大另类极品videosbest | 精品国产乱子伦一区| 日韩美女久久久| 裸体一区二区三区| 国产一区二区网址| 337p亚洲精品色噜噜噜| 中文字幕日本不卡| 久久福利视频一区二区| 日本久久电影网| 136国产福利精品导航| 欧美a一区二区| 在线观看欧美日本| 久久久久国产精品麻豆| 亚州成人在线电影| 欧美日韩免费观看一区二区三区 | 欧美精品久久一区二区三区| 亚洲一区免费视频| 成人黄色777网| 久久亚洲欧美国产精品乐播 | 91在线看国产| 国产视频一区二区在线观看| 日本怡春院一区二区| 欧美在线观看一区| 综合久久久久久| 91蜜桃视频在线| 国产精品欧美综合在线| 久久国产成人午夜av影院| 欧美夫妻性生活| 国产精品第一页第二页第三页| 免费看精品久久片| 欧美视频一区二区在线观看| 亚洲色图.com| 不卡高清视频专区| 欧美v日韩v国产v| 国产一区 二区| 久久久久国产精品麻豆ai换脸| 免费人成在线不卡| 欧美精品一二三| 亚洲在线成人精品| 91久久一区二区| 一级女性全黄久久生活片免费| 99视频一区二区| 中文字幕一区二区三区色视频| 91小视频免费看| 亚洲美女偷拍久久| 97国产精品videossex| 亚洲色图色小说| 99riav一区二区三区| 亚洲欧美色综合| 欧美午夜在线一二页| 亚洲成人自拍一区| 欧美精品一区二区三区蜜桃视频 | 懂色av一区二区在线播放| 日韩一区二区免费在线电影 | 亚洲精品一区二区精华| 国产高清在线精品| 国产婷婷一区二区| 欧美亚洲图片小说| 美国三级日本三级久久99| 精品国产乱码久久久久久闺蜜 |