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

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

?? qtoolbar.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
    } else if ( e->type() == QEvent::ChildRemoved ) {	QObject * child = ((QChildEvent*)e)->child();	if ( child == d->arrow )	    d->arrow = 0;	if ( child == d->menu )	    d->menu = 0;	if ( child == d->back )	    d->back = 0;    }    return r;}/*! \reimp */bool QToolBar::eventFilter( QObject * obj, QEvent * e ){    //Does nothing, present for binary compatibility    return QWidget::eventFilter( obj, e );}/*!  Sets the label of this tool bar to \a label.  The label is notcurrently used; it will be used in a forthcoming tool barconfiguration dialog.\sa label()*/void QToolBar::setLabel( const QString & label ){    l = label;}/*!  Returns the label of this tool bar.  \sa setLabel()*/QString QToolBar::label() const{    return l;}/*!  Clears the toolbar, deleting all childwidgets. */void QToolBar::clear(){    if ( !children() )	return;    QObjectListIt it( *children() );    QObject * obj;    while( (obj=it.current()) != 0 ) {	++it;	if ( obj->isWidgetType() )	    delete obj;    }    d->menu = 0;    d->arrow = 0;    d->back = 0;    if ( isVisible() )	updateArrowStuff();}/*!  \internal*/void QToolBar::startMoving( QToolBar *tb ){    if ( tb == this ) {	d->moving = TRUE;	bool du = !isUpdatesEnabled();	if ( du )	    setUpdatesEnabled( TRUE );	repaint( FALSE );	if ( du )	    setUpdatesEnabled( FALSE);    }}/*!  \internal*/void QToolBar::endMoving( QToolBar *tb ){    if ( tb == this && d->moving ) {	bool du = !isUpdatesEnabled();	if ( du )	    setUpdatesEnabled( TRUE );	d->moving = FALSE;	repaint( TRUE );	if ( du )	    setUpdatesEnabled( FALSE);    }}/*!  Sets the toolbar to be horizontally stretchable if \a b is TRUE, or  non-stretchable otherwise.  A stretchable toolbar fills the available width in a toolbar dock. A  non-stretchable toolbar usually gets just the space it needs.  The default is FALSE.  \sa QMainWindow::setRightJustification(), isHorizontalStretchable(),  setVerticalStretchable(), isVerticalStretchable()*/void QToolBar::setHorizontalStretchable( bool b ){    if ( d->stretchable[ 0 ] != b ) {	d->stretchable[ 0 ] = b;	if ( mw )	    mw->triggerLayout( FALSE );    }}/*!  Sets the toolbar to be vertically stretchable if \a b is TRUE, or  non-stretchable otherwise.  A stretchable toolbar fills the available height in a toolbar dock. A  non-stretchable toolbar usually gets just the space it needs.  The default is FALSE.  \sa QMainWindow::setRightJustification(), isVerticalStretchable(),  setHorizontalStretchable(), isHorizontalStretchable()*/void QToolBar::setVerticalStretchable( bool b ){    if ( d->stretchable[ 1 ] != b ) {	d->stretchable[ 1 ] = b;	if ( mw )	    mw->triggerLayout( FALSE );    }}/*!  Returns whether the toolbar is stretchable horizontally.  A stretchable toolbar fills all available width in a toolbar dock. A  non-stretchable toolbar usually gets just the space it needs.  \sa setHorizontalStretchable(), setVerticalStretchable(), isVerticalStretchable()*/bool QToolBar::isHorizontalStretchable() const{    return d->stretchable[ 0 ];}/*!  Returns whether the toolbar is stretchable vertically.  A stretchable toolbar fills all available height in a toolbar dock. A  non-stretchable toolbar usually gets just the space it needs.  \sa setHorizontalStretchable(), setVerticalStretchable(), isHorizontalStretchable()*/bool QToolBar::isVerticalStretchable() const{    return d->stretchable[ 1 ];}/*!  \fn void QToolBar::orientationChanged( Orientation newOrientation )  This signal is emitted when the toolbar changed its orientation to  \a newOrientation.*//*!  \reimp*/QSize QToolBar::minimumSize() const{    if ( orientation() == Horizontal )	return QSize( 0, QWidget::minimumSize().height() );    return QSize( QWidget::minimumSize().width(), 0 );}/*!  \reimp*/QSize QToolBar::minimumSizeHint() const{    if ( orientation() == Horizontal )	return QSize( 0, QWidget::minimumSizeHint().height() );    return QSize( QWidget::minimumSizeHint().width(), 0 );}/*!  \reimp*/void QToolBar::resizeEvent( QResizeEvent *e ){    QWidget::resizeEvent( e );    if ( isVisible() )	updateArrowStuff();}void QToolBar::updateArrowStuff(){#ifndef QT_NO_POPUPMENU    if ( !isVisible() )	return;    if ( orientation() == Horizontal ) {	int shw = sizeHint().width();	if ( d->arrow && d->back && d->arrow->isVisible() && d->back->isVisible() )	    shw -= QMAX( d->arrow->width(), d->back->width() );	if ( width() < shw ) {	    setUpdatesEnabled( TRUE );	    setupArrowMenu();	    if ( !d->back ) {		d->back = new QArrowWidget( orientation(), this );	    }	    if ( !d->arrow ) {		d->arrow = new QToolButton( RightArrow, this );		d->arrow->setAutoRaise( TRUE );		d->arrow->setAutoRepeat( FALSE );		d->arrow->setPopupDelay( 0 );	    }	    if ( d->menu && d->menu->count() > 0 ) {		d->back->show();		d->back->raise();		d->arrow->show();		d->arrow->raise();		d->arrow->setPopup( d->menu );	    } else if ( d->menu ) {		d->back->hide();		d->arrow->hide();	    }	    if ( d->back->geometry() != QRect( width() - 20, 1, 20, height() - 2 ) )		d->back->setGeometry( width() - 20, 1, 20, height() - 2 );	    if ( d->arrow->geometry() != QRect( width() - 14, 3, 13, height() - 6 ) )		d->arrow->setGeometry( width() - 14, 3, 13, height() - 6 );	    paintToolBar();	    setUpdatesEnabled( FALSE );	} else {	    setUpdatesEnabled( TRUE );	    if ( d->arrow || d->back ) {		if ( d->back && d->back->isVisible() ) {		    d->back->hide();		    if ( layout() )			layout()->activate();		}		if ( d->arrow && d->arrow->isVisible() ) {		    d->arrow->hide();		    if ( layout() )			layout()->activate();		}	    }	    update();	}    } else {	int shh = sizeHint().height();	if ( d->arrow && d->back && d->arrow->isVisible() && d->back->isVisible() )	    shh -= QMAX( d->arrow->height(), d->back->height() );	if ( height() < shh ) {	    setUpdatesEnabled( TRUE );	    setupArrowMenu();	    if ( !d->back ) {		d->back = new QArrowWidget( orientation(), this );	    }	    if ( !d->arrow ) {		d->arrow = new QToolButton( DownArrow, this );		d->arrow->setAutoRepeat( FALSE );		d->arrow->setAutoRaise( TRUE );		d->arrow->setPopupDelay( 0 );	    }	    if ( d->menu && d->menu->count() > 0 ) {		d->back->show();		d->back->raise();		d->arrow->show();		d->arrow->raise();		d->arrow->setPopup( d->menu );	    } else if ( d->menu ) {		d->back->hide();		d->arrow->hide();	    }	    if ( d->back->geometry() != QRect( 1, height() - 20, width() - 2, 20 ) )		d->back->setGeometry( 1, height() - 20, width() - 2, 20 );	    if ( d->arrow->geometry() != QRect( 3, height() - 14, width() - 6, 13 ) )		d->arrow->setGeometry( 3, height() - 14, width() - 6, 13 );	    paintToolBar();	    setUpdatesEnabled( FALSE );	} else {	    setUpdatesEnabled( TRUE );	    if ( d->arrow || d->back ) {		if ( d->back && d->back->isVisible() ) {		    d->back->hide();		    if ( layout() )			layout()->activate();		}		if ( d->arrow && d->arrow->isVisible() ) {		    d->arrow->hide();		    if ( layout() )			layout()->activate();		}	    }	    update();	}    }#endif}void QToolBar::setupArrowMenu(){#ifndef QT_NO_POPUPMENU    if ( !isVisible() )	return;    if ( !d->menu ) {	d->menu = new QPopupMenu( this );	connect( d->menu, SIGNAL( activated(int) ),		 this, SLOT( popupSelected(int) ) );	connect( d->menu, SIGNAL( aboutToShow() ),		 this, SLOT( setupArrowMenu() ) );    }    QObjectList *childs = queryList( "QWidget" );    if ( childs ) {	d->menu->clear();	d->menu->setCheckable( TRUE );	d->hiddenItems.clear();	bool justHadSep = TRUE;	QObject *ob = 0;	for ( ob = childs->first(); ob; ob = childs->next() ) {	    if ( ob->isWidgetType() && ( (QWidget*)ob )->isVisible() && ob->parent() == this &&		 ob != d->arrow && ob != d->menu && ob->inherits( "QButton" ) ) {		QWidget *w = (QWidget*)ob;		bool mv = FALSE;		if ( orientation() == Horizontal )		    mv = ( w->x() + w->width() > width() - 20);		else		    mv = ( w->y() + w->height() > height() - 20);		if ( mv ) {		    if ( w->inherits( "QToolButton" ) ) {			QToolButton *b = (QToolButton*)w;			QString s = b->textLabel();			if ( s.isEmpty() )			    s = "";			int id;#ifndef QT_NO_POPUPMENU			if ( b->popup() && b->popupDelay() == 0 )			    id = d->menu->insertItem( b->iconSet(), s, b->popup() );			else#endif			    id = d->menu->insertItem( b->iconSet(), s );			d->hiddenItems.insert( id, b );			if ( b->isToggleButton() )			    d->menu->setItemChecked( id, b->isOn() );			if ( !b->isEnabled() )			    d->menu->setItemEnabled( id, FALSE );			justHadSep = FALSE;		    } else if ( w->inherits( "QButton" ) ) {			QButton *b = (QButton*)w;			QString s = b->text();			if ( s.isEmpty() )			    s = "";			int id = -1;			if ( b->pixmap() )			    id = d->menu->insertItem( *b->pixmap(), s );			else			    id = d->menu->insertItem( s );			d->hiddenItems.insert( id, b );			if ( b->isToggleButton() )			    d->menu->setItemChecked( id, b->isOn() );			if ( !b->isEnabled() )			    d->menu->setItemEnabled( id, FALSE );			justHadSep = FALSE;		    }		}	    } else if ( ob->inherits( "QToolBarSeparator" ) ) {		if ( !justHadSep )		    d->menu->insertSeparator();		justHadSep = TRUE;	    }	}    }    delete childs;#endif}void QToolBar::popupSelected( int id ){    QButton *b = d->hiddenItems.find( id );    d->button = b;    if ( d->button )	QTimer::singleShot( 0, this, SLOT( emulateButtonClicked() ) );}void QToolBar::emulateButtonClicked(){    if ( !d->button )	return;#ifndef QT_NO_PUSHBUTTON    if ( d->button->inherits( "QPushButton" ) &&	 ( (QPushButton*)d->button )->popup() ) {	( (QPushButton*)d->button )->popup()->exec( QCursor::pos() );    } else#endif#ifndef QT_NO_POPUPMENU    if ( d->button->inherits( "QToolButton" ) &&	   ( (QToolButton*)d->button )->popup() ) {	( (QToolButton*)d->button )->popup()->exec( QCursor::pos() );    } else#endif    if ( d->button->isToggleButton() ) {	d->button->setOn( !d->button->isOn() );	emit d->button->pressed();	emit d->button->released();	emit d->button->clicked();	if ( d->button->inherits( "QWhatsThisButton" ) )	    d->button->setOn( FALSE );    } else {	emit d->button->pressed();	emit d->button->released();	emit d->button->clicked();    }    if ( d ) { // we might got deleted, so check to be sure	d->button = 0;	QTimer::singleShot( 0, this, SLOT( updateArrowStuff() ) );    }}void QToolBar::paintToolBar(){    if ( mw && !mw->toolBarsMovable() )	return;    QPainter p( this );    int w = width();    int h = height();    if ( orientation() == Horizontal && w < sizeHint().width() )	w++;    else if ( orientation() == Vertical && h < sizeHint().height() )	h++;    style().drawPanel( &p, 0, 0, w, h, 		       colorGroup(), FALSE, 1, 0 );    style().drawToolBarHandle( &p, QRect( 0, 0, width(), height() ), 			       orientation(), d->moving, colorGroup() );}/* from chaunsee:1.  Toolbars should contain only high-frequency functions.  Avoid puttingthings like About and Exit on a toolbar unless they are frequent functions.2.  All toolbar buttons must have some keyboard access method (it can be amenu or shortcut key or a function in a dialog box that can be accessedthrough the keyboard).3.  Make toolbar functions as efficient as possible (the common example is toPrint in Microsoft applications, it doesn't bring up the Print dialog box, itprints immediately to the default printer).4.  Avoid turning toolbars into graphical menu bars.  To me, a toolbar shouldbe efficient. Once you make almost all the items in a toolbar into graphicalpull-down menus, you start to lose efficiency.5.  Make sure that adjacent icons are distinctive. There are some toolbarswhere you see a group of 4-5 icons that represent related functions, but theyare so similar that you can't differentiate among them.  These toolbars areoften a poor attempt at a "common visual language".6.  Use any de facto standard icons of your platform (for windows use thecut, copy, and paste icons provided in dev kits rather than designing yourown).7.  Avoid putting a highly destructive toolbar button (delete database) by asafe, high-frequency button (Find) -- this will yield 1-0ff errors).8.  Tooltips in many Microsoft products simply reiterate the menu text evenwhen that is not explanatory.  Consider making your tooltips slightly moreverbose and explanatory than the corresponding menu item.9.  Keep the toolbar as stable as possible when you click on differentobjects. Consider disabling toolbar buttons if they are used in most, but notall contexts.10.  If you have multiple toolbars (like the Microsoft MMC snap-ins have),put the most stable toolbar to at the left with less stable ones to theright. This arrangement (stable to less stable) makes the toolbar somewhatmore predictable.11.  Keep a single toolbar to fewer than 20 items divided into 4-7 groups ofitems.*/#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品乱人伦| 一二三区精品福利视频| 一本久久a久久精品亚洲| 亚洲成人你懂的| 亚洲国产精品黑人久久久| 欧美精选在线播放| 91免费版pro下载短视频| 精品一区二区三区在线观看国产| 亚洲色图丝袜美腿| 欧美国产欧美综合| 精品奇米国产一区二区三区| 欧美日韩一区二区电影| 91麻豆6部合集magnet| 国产精品99久久久久久似苏梦涵 | 亚洲少妇30p| 26uuu国产日韩综合| 777xxx欧美| 欧美三级乱人伦电影| 91免费版在线看| 99精品视频在线免费观看| 国产精品一二三区在线| 黄色精品一二区| 开心九九激情九九欧美日韩精美视频电影 | 国产精品系列在线| 欧美sm美女调教| 日韩欧美中文一区二区| 欧美蜜桃一区二区三区| 91福利视频在线| 色婷婷综合久久久久中文 | 韩国av一区二区三区四区| 天天综合日日夜夜精品| 亚洲韩国精品一区| 亚洲国产精品久久艾草纯爱| 一个色在线综合| 亚洲一区av在线| 中文字幕视频一区| 国产精品美日韩| 国产精品成人免费| 亚洲欧美二区三区| 一区二区三区精品视频在线| 亚洲免费观看在线视频| 亚洲欧美日韩在线| 一区二区三区四区视频精品免费| 亚洲毛片av在线| 亚洲不卡在线观看| 青青国产91久久久久久| 蜜桃一区二区三区在线| 国产呦精品一区二区三区网站| 国产资源在线一区| 成人v精品蜜桃久久一区| 91一区二区在线| 欧美日韩在线观看一区二区| 欧美精品乱人伦久久久久久| 日韩女优毛片在线| 久久精品无码一区二区三区| 欧美高清在线视频| 亚洲在线一区二区三区| 日本91福利区| 国产成人av电影免费在线观看| 大尺度一区二区| 在线精品视频免费观看| 日韩一区和二区| 国产亚洲综合性久久久影院| 最新久久zyz资源站| 亚洲一本大道在线| 狠狠色狠狠色合久久伊人| 不卡的av中国片| 欧美视频在线观看一区二区| 日韩精品一区国产麻豆| 一区在线中文字幕| 亚洲国产日产av| 国产一区二三区| 日本久久电影网| 欧美成人高清电影在线| 国产精品福利一区二区| 无吗不卡中文字幕| 国产成人aaa| 欧美色手机在线观看| 欧美电影免费观看高清完整版在线 | 日本女优在线视频一区二区| 国产综合色精品一区二区三区| www.欧美.com| 日韩欧美成人激情| 亚洲三级久久久| 黄一区二区三区| 欧美手机在线视频| 国产精品私房写真福利视频| 丝瓜av网站精品一区二区| 成人黄色小视频| 日韩欧美中文字幕一区| 一区二区在线观看视频在线观看| 精品亚洲免费视频| 欧美三级电影网站| 国产精品久久久久精k8| 日韩视频在线你懂得| 亚洲国产成人91porn| 91极品美女在线| 久久久亚洲国产美女国产盗摄| 亚洲一区二区成人在线观看| 99久久国产综合精品麻豆| 久久综合九色综合97婷婷女人 | 日韩成人精品在线| av成人免费在线观看| 欧美成人国产一区二区| 午夜精品久久久久久久99水蜜桃| 成人av手机在线观看| 久久久久久久久久久久久久久99| 午夜av区久久| 欧美亚洲国产bt| 中文字幕在线播放不卡一区| 久久99国产精品久久99| 在线电影国产精品| 亚洲第一成人在线| 91女厕偷拍女厕偷拍高清| 中文av一区二区| 国产成人精品aa毛片| 精品日韩一区二区三区| 日韩av一区二| 91精品国产色综合久久不卡电影| 一区二区三区91| 一本色道久久综合亚洲精品按摩| 国产精品国产三级国产普通话三级 | 国产午夜亚洲精品理论片色戒 | 欧美激情综合在线| 国产老肥熟一区二区三区| 日韩一区国产二区欧美三区| 偷拍与自拍一区| 在线电影欧美成精品| 视频在线观看一区| 欧美精品少妇一区二区三区| 亚洲高清视频中文字幕| 欧美男生操女生| 奇米精品一区二区三区在线观看| 欧美裸体bbwbbwbbw| 日韩成人dvd| 精品区一区二区| 国产一区二区三区久久悠悠色av | 中文字幕一区二区不卡| av一区二区三区在线| 国产精品理伦片| 日本丶国产丶欧美色综合| 一区二区三区欧美日韩| 欧美日韩视频在线一区二区| 日韩高清不卡在线| 精品国产青草久久久久福利| 国产精品综合一区二区三区| 2020国产成人综合网| 国产aⅴ综合色| 亚洲人成影院在线观看| 欧美在线视频日韩| 免费三级欧美电影| 久久精品一区二区三区av | 中文字幕在线视频一区| 99精品视频在线播放观看| 一区二区三区精品视频| 91精品国产91久久久久久一区二区| 九九精品视频在线看| 中文字幕免费观看一区| 色婷婷av一区二区三区大白胸| 亚洲第一会所有码转帖| 日韩三级精品电影久久久 | 欧美性xxxxxx少妇| 免费久久精品视频| 中文字幕第一区| 91九色02白丝porn| 精品一区二区久久久| 中文字幕一区二区三区蜜月| 欧美三级欧美一级| 国产福利一区在线观看| 亚洲激情第一区| 精品久久人人做人人爽| 99久久99久久精品免费观看 | 亚洲日本青草视频在线怡红院| 91国偷自产一区二区开放时间| 热久久一区二区| 亚洲天堂精品视频| 欧美一级艳片视频免费观看| 风间由美一区二区av101| 亚洲女人****多毛耸耸8| 欧美电影在哪看比较好| 成人av午夜影院| 日本成人超碰在线观看| 中文字幕在线播放不卡一区| 91精品国产日韩91久久久久久| 高清不卡一区二区在线| 日韩电影在线看| 国产精品高潮久久久久无| 日韩一级完整毛片| 一本大道综合伊人精品热热 | 午夜精品久久久久久久99水蜜桃| 国产欧美va欧美不卡在线| 91.麻豆视频| 色婷婷激情一区二区三区| 国产精品一区二区视频| 日韩成人一级片| 亚洲精品一二三| 国产精品无圣光一区二区| 精品美女一区二区| 欧美色图激情小说| 91丨九色丨蝌蚪富婆spa|