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

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

?? qtoolbutton.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
  Returns TRUE if this tool button puts a text label below the button  pixmap, and FALSE if it does not. \sa setUsesTextLabel()  setTextLabel() usesBigPixmap()*//*!  Sets this tool button to be on if \a enable is TRUE, and off it  \a enable is FALSE.  This function has no effect on \link isToggleButton() non-toggling  buttons. \endlink  \sa isToggleButton() toggle()*/void QToolButton::setOn( bool enable ){    if ( !isToggleButton() )	return;    QButton::setOn( enable );}/*!  Toggles the state of this tool button.  This function has no effect on \link isToggleButton() non-toggling  buttons. \endlink  \sa isToggleButton() toggled()*/void QToolButton::toggle(){    if ( !isToggleButton() )	return;    QButton::setOn( !isOn() );}/*! \reimp */void QToolButton::drawButton( QPainter * p ){    style().drawToolButton( this, p );    drawButtonLabel( p );    if ( hasFocus() && !focusProxy() ) {#ifdef QT_KEYPAD_MODE	if( qt_modalEditingEnabled ) {	    p->setPen(colorGroup().highlight());	    p->drawRect( 2, 2, width()-4, height()-4 );	    p->drawRect( 3, 3, width()-6, height()-6 );	    return;	}#endif	if ( style() == WindowsStyle ) {	    p->drawWinFocusRect( 3, 3, width()-6, height()-6,				 colorGroup().background() );	} else {	    p->setPen( black );	    p->drawRect( 3, 3, width()-6, height()-6 );	}    }}/*!\reimp */void QToolButton::drawButtonLabel( QPainter * p ){    int sx = 0;    int sy = 0;    int x, y, w, h;    style().toolButtonRect(0, 0, width(), height() ).rect( &x, &y, &w, &h );    if (isDown() || (isOn()&&!son) ) {	style().getButtonShift(sx, sy);	x+=sx;	y+=sy;    }    if ( hasArrow ) {	style().drawArrow( p, d->arrow, isDown(), x, y, w, h, colorGroup(), isEnabled() );	return;    }    if ( !text().isNull() ) {	style().drawItem( p, x, y, w, h,			  AlignCenter + ShowPrefix,			  colorGroup(), isEnabled(),			  0, text() );    } else {	QPixmap pm;	if ( usesBigPixmap() ) {	    if ( !isEnabled() )		pm = iconSet( isOn() ).pixmap( QIconSet::Large, QIconSet::Disabled );	    else if ( uses3D() )		pm = iconSet( isOn() ).pixmap( QIconSet::Large, QIconSet::Active );	    else		pm = iconSet( isOn() ).pixmap( QIconSet::Large, QIconSet::Normal );	} else {	    if ( !isEnabled() )		pm = iconSet( isOn() ).pixmap( QIconSet::Small, QIconSet::Disabled );	    else if ( uses3D() )		pm = iconSet( isOn() ).pixmap( QIconSet::Small, QIconSet::Active );	    else		pm = iconSet( isOn() ).pixmap( QIconSet::Small, QIconSet::Normal );	}	if ( usesTextLabel() ) {	    int fh = fontMetrics().height();	    style().drawItem( p, x, y, w, h - fh,			      AlignCenter, colorGroup(), TRUE, &pm, QString::null );	    p->setFont( font() );	    style().drawItem( p, x, h - fh, w, fh,			      AlignCenter + ShowPrefix,			      colorGroup(), isEnabled(),			      0, textLabel() ); 	} else {	    style().drawItem( p, x, y, w, h,			      AlignCenter, colorGroup(), TRUE, &pm, QString::null );	}    }}/*!\reimp */void QToolButton::enterEvent( QEvent * e ){    if ( autoRaise() ) {	threeDeeButton = this;	if ( isEnabled() )	    repaint(FALSE);    }    QButton::enterEvent( e );}/*!\reimp */void QToolButton::leaveEvent( QEvent * e ){    if ( autoRaise() ) {	QToolButton * o = threeDeeButton;	threeDeeButton = 0;	if ( o && o->isEnabled() )	    o->repaint(FALSE);    }    QButton::leaveEvent( e );}/*!\reimp */void QToolButton::moveEvent( QMoveEvent * ){    //   Reimplemented to handle pseudo transparency in case the toolbars    //   has a fancy pixmap background.    if ( parentWidget() && parentWidget()->backgroundPixmap() &&	 autoRaise() && !uses3D() )	repaint( FALSE );}/*!  Returns TRUE if this button should be drawn using raised edges.  \sa drawButton() */bool QToolButton::uses3D() const{    return !autoRaise() || ( threeDeeButton == this && isEnabled() );}/*!  Sets the label of this button to \a newLabel, and automatically  sets it as tool tip too.*/void QToolButton::setTextLabel( const QString &newLabel ){    setTextLabel( newLabel, TRUE );}/*!  Sets the label of this button to \a newLabel, and automatically  sets it as tool tip too if \a tipToo is TRUE.*/void QToolButton::setTextLabel( const QString &newLabel , bool tipToo ){    if ( tl == newLabel )	return;#ifndef QT_NO_TOOLTIP    if ( tipToo ) {        QToolTip::remove( this );        QToolTip::add( this, newLabel );    }#endif    tl = newLabel;    if ( usesTextLabel() && isVisible() ) {	update();	updateGeometry();    }}/*!  Sets the icon that is used when the button  is in on-state.  \sa setIconSet()*/void QToolButton::setOnIconSet( const QIconSet& set ){    setIconSet( set, TRUE );}/*!  Sets the icon that is used when the button  is in off-state.  \sa setIconSet()*/void QToolButton::setOffIconSet( const QIconSet& set ){    setIconSet( set, FALSE );}/*!  Returns the icon set which is used if the toolbutton  is in on-state.  \sa iconSet()*/QIconSet QToolButton::onIconSet() const{    return iconSet( TRUE );}/*!  Returns the icon set which is used if the toolbutton  is in off-state.  \sa iconSet()*/QIconSet QToolButton::offIconSet( ) const{    return iconSet( FALSE );}/*!  Sets this tool button to display the icons in \a set.  (setPixmap() is effectively a wrapper for this function.)  For toggle buttons it is possible to set an extra icon set with \a  on equals TRUE, which will be used exclusively for the on-state.  QToolButton makes a copy of \a set, so you must delete \a set  yourself.  \sa iconSet() QIconSet, setToggleButton(), isOn()*/void QToolButton::setIconSet( const QIconSet & set, bool on ){    if ( !on ) {	if ( s )	    delete s;	s = new QIconSet( set );    } else {	if ( son )	    delete son;	son = new QIconSet( set );    }    if ( isVisible() )	update();}/*!  Returns a copy of the icon set in use.  If no icon set has been  set, iconSet() creates one from the pixmap().  If the button doesn't have a pixmap either, iconSet()'s return value  is meaningless.  If \a on equals TRUE, the special icon set for the on-state of the  button is returned.  \sa setIconSet() QIconSet*/QIconSet QToolButton::iconSet( bool on ) const{    QToolButton * that = (QToolButton *)this;    if ( on && that->son )	return *that->son;    if ( pixmap() && (!that->s || (that->s->pixmap().serialNumber() !=	pixmap()->serialNumber())) ) {	if ( that->s )	    delete that->s;	that->s = new QIconSet( *pixmap() );    }    if ( that->s )	return *that->s;    QPixmap tmp1;    QIconSet tmp2( tmp1, QIconSet::Small );    return tmp2;}#ifndef QT_NO_POPUPMENU/*!  Associates the popup menu \a popup with this toolbutton.  The popup will be shown each time the toolbutton has been pressed  down for a certain amount of time. A typical application example is  the "back" button in a web browser's toolbar. If the user clicks it,  the browser simply browses back to the previous page. If the user  holds the button down for a while, they receive a menu containing  the current history list.  Ownership of the popup menu is not transferred.  \sa popup() */void QToolButton::setPopup( QPopupMenu* popup ){    if ( popup && !d->popupTimer ) {	connect( this, SIGNAL( pressed() ), this, SLOT( popupPressed() ) );	d->popupTimer = new QTimer( this );	connect( d->popupTimer, SIGNAL( timeout() ), this, SLOT( popupTimerDone() ) );    }    d->popup = popup;}/*!  Returns the associated popup menu or 0 if no popup menu has been  defined.  \sa setPopup() */QPopupMenu* QToolButton::popup() const{    return d->popup;}void QToolButton::popupPressed(){    if ( d->popupTimer )	d->popupTimer->start( d->delay, TRUE );}void QToolButton::popupTimerDone(){    if ( isDown() && d->popup ) {	d->repeat = autoRepeat();	setAutoRepeat( FALSE );	bool horizontal = TRUE;	bool topLeft = TRUE;#ifndef QT_NO_TOOLBAR	if ( parentWidget() && parentWidget()->inherits("QToolBar") ) {	    if ( ( (QToolBar*) parentWidget() )->orientation() == Vertical )		horizontal = FALSE;	}#endif	if ( horizontal ) {	    if ( topLeft ) {		if ( mapToGlobal( QPoint( 0, rect().bottom() ) ).y() + d->popup->sizeHint().height() <= qApp->desktop()->height() )		    d->popup->exec( mapToGlobal( rect().bottomLeft() ) );		else		    d->popup->exec( mapToGlobal( rect().topLeft() - QPoint( 0, d->popup->sizeHint().height() ) ) );	    } else {		QSize sz( d->popup->sizeHint() );		QPoint p = mapToGlobal( rect().topLeft() );		p.ry() -= sz.height();		d->popup->exec( p );	    }	}	else {	    if ( topLeft ) {		if ( mapToGlobal( QPoint( rect().right(), 0 ) ).x() + d->popup->sizeHint().width() <= qApp->desktop()->width() )		    d->popup->exec( mapToGlobal( rect().topRight() ) );		else		    d->popup->exec( mapToGlobal( rect().topLeft() - QPoint( d->popup->sizeHint().width(), 0 ) ) );	    } else {		QSize sz( d->popup->sizeHint() );		QPoint p = mapToGlobal( rect().topLeft() );		p.rx() -= sz.width();		d->popup->exec( p );	    }	}	setDown( FALSE );	if ( d->repeat )	    setAutoRepeat( TRUE );    }}/*!  Sets the time delay between pressing the button and the appearance of  the associated popupmenu in milliseconds. Usually this is around 1/2 of  a second.  \sa popupDelay(), setPopup()*/void QToolButton::setPopupDelay( int delay ){    d->delay = delay;}/*!  Returns the delay between pressing the button and the appearance of  the associated popupmenu in milliseconds.  \sa setPopupDelay(), setPopup()*/int QToolButton::popupDelay() const{    return d->delay;}#endif/*!  Enables or disables auto-raising according to \a enable.  \sa autoRaise */void QToolButton::setAutoRaise( bool enable ){    d->autoraise = enable;}/*!  Returns whether auto-raising is enabled or not.  \sa setAutoRaise */bool QToolButton::autoRaise() const{    return d->autoraise;}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久蜜臀中文字幕| 麻豆成人久久精品二区三区红 | 夜夜爽夜夜爽精品视频| 久久综合999| 久久久久久一二三区| 精品国产91洋老外米糕| 日韩一级免费观看| 日韩三区在线观看| 欧美www视频| 久久精品人人爽人人爽| 久久久久亚洲综合| 日本一区二区三区免费乱视频| 国产人久久人人人人爽| 国产精品久久久久一区二区三区共| 久久久久99精品国产片| 欧美经典一区二区三区| 国产精品久久三区| 亚洲裸体xxx| 亚洲地区一二三色| 热久久一区二区| 极品少妇一区二区| www.激情成人| 欧美专区在线观看一区| 欧美丰满美乳xxx高潮www| 偷拍一区二区三区四区| 青娱乐精品视频在线| 国产福利精品导航| 色婷婷久久久综合中文字幕| 欧美日韩中文字幕一区二区| 日韩免费视频一区| 欧美国产精品中文字幕| 亚洲一区二区欧美日韩| 免费成人在线视频观看| 欧美国产一区视频在线观看| 亚洲乱码国产乱码精品精小说| 一区二区三区毛片| 国产一区福利在线| 色婷婷综合在线| 欧美一级高清大全免费观看| 欧美高清在线视频| 五月婷婷综合激情| 丁香啪啪综合成人亚洲小说| 欧美麻豆精品久久久久久| xfplay精品久久| 一区二区三区四区激情| 欧美日韩第一区日日骚| 国产精品网曝门| 日日夜夜免费精品| jvid福利写真一区二区三区| 欧美久久一二区| 国产日韩亚洲欧美综合| 亚洲aaa精品| 丰满放荡岳乱妇91ww| 欧美精品丝袜中出| 亚洲免费观看高清完整版在线观看熊 | 中文字幕一区二区三区色视频| 亚洲123区在线观看| 国产精品视频九色porn| 精品一区二区三区免费毛片爱 | 亚洲一二三区视频在线观看| 国产91综合网| 欧美大片一区二区三区| 亚洲成人动漫一区| 在线观看精品一区| 中文字幕中文字幕中文字幕亚洲无线| 精品伦理精品一区| 日韩电影免费在线看| 欧美日精品一区视频| 一区二区三区精品视频| av资源网一区| 国产日韩精品一区二区三区在线| 毛片一区二区三区| 日韩欧美国产三级| 日韩av一级片| 51午夜精品国产| 欧美一级高清片| 日本欧美一区二区| 欧美精品xxxxbbbb| 首页国产欧美久久| 欧美亚洲综合在线| 亚洲福利视频三区| 欧美午夜寂寞影院| 亚洲福利视频导航| 欧美精品欧美精品系列| 偷偷要91色婷婷| 欧美高清激情brazzers| 免费成人你懂的| 精品国产一区二区精华| 国产乱子伦一区二区三区国色天香 | 亚洲日本中文字幕区| 99久久免费精品高清特色大片| 国产精品亲子伦对白| 色综合久久66| 五月天丁香久久| 日韩精品国产精品| 精品国产一区二区三区久久影院 | 国产精品免费av| av网站一区二区三区| 亚洲人精品一区| 欧美三电影在线| 国产一区二区在线观看免费| 久久久精品综合| 色狠狠一区二区三区香蕉| 亚洲自拍与偷拍| 欧美一区二区三区四区久久| 韩国女主播一区| 中文字幕日本乱码精品影院| 91丨porny丨首页| 日韩—二三区免费观看av| 精品国产一区二区国模嫣然| www.日韩在线| 亚洲国产一区二区在线播放| 日韩精品一区二区在线| 99久久免费视频.com| 亚洲高清视频在线| 欧美videossexotv100| 成人免费视频播放| 亚洲v中文字幕| 久久嫩草精品久久久精品一| 色老头久久综合| 国产一区二区网址| 亚洲午夜国产一区99re久久| 国产一区二区调教| 天天综合日日夜夜精品| 欧美—级在线免费片| 欧美欧美午夜aⅴ在线观看| 国产精品亚洲人在线观看| 香蕉成人啪国产精品视频综合网| 久久麻豆一区二区| 欧美精品久久99| 在线中文字幕不卡| 国产.欧美.日韩| 麻豆国产精品一区二区三区| 亚洲一区成人在线| 国产精品丝袜在线| 精品福利二区三区| 欧美精品视频www在线观看| 色欲综合视频天天天| 高清不卡一二三区| 九九热在线视频观看这里只有精品 | 国产亚洲一二三区| 欧美一级夜夜爽| 欧美日产国产精品| 欧美网站大全在线观看| 99re视频精品| av不卡免费电影| 不卡一区二区三区四区| 国产99久久久久久免费看农村| 美国一区二区三区在线播放| 日韩成人免费电影| 午夜电影网一区| 制服丝袜亚洲精品中文字幕| 亚洲人成精品久久久久| 国产精品三级在线观看| 中文成人av在线| 国产亚洲成年网址在线观看| 久久精品视频免费观看| 国产片一区二区三区| 亚洲国产精品成人综合色在线婷婷| 亚洲精品一区二区三区精华液| 精品国产一区二区精华| 26uuu欧美| 欧美国产日韩亚洲一区| 中文字幕一区二区不卡| 亚洲色图一区二区三区| 一区二区免费在线| 亚洲精品成人在线| 欧美日韩综合在线免费观看| 欧美精品1区2区3区| 日韩免费高清视频| 欧美精品一区二区三区蜜桃视频 | 国产精品中文字幕日韩精品| 国产精品18久久久久久久久 | 香蕉久久一区二区不卡无毒影院| 亚洲精品ww久久久久久p站| 亚洲成人动漫在线观看| 久久99热这里只有精品| 成人av午夜影院| 在线亚洲欧美专区二区| 91精品国产欧美日韩| 国产亚洲综合色| 国产精品久久毛片a| 亚洲成人av中文| 国产伦理精品不卡| 欧美亚洲愉拍一区二区| 69堂国产成人免费视频| 久久精品视频在线看| 一区二区三区日本| 精品亚洲成a人在线观看| 91污在线观看| 日韩欧美精品在线视频| 欧美激情一二三区| 日韩中文字幕麻豆| 丁香亚洲综合激情啪啪综合| 91福利在线免费观看| 久久色在线视频| 一二三四区精品视频| 国产91富婆露脸刺激对白| 欧美乱熟臀69xxxxxx| 日韩一区在线看|