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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? qtoolbutton.cpp

?? qtopia-phone-2.2.0下公共的控件實(shí)現(xiàn)源代碼。
?? CPP
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/****************************************************************************** $Id: qt/src/widgets/qtoolbutton.cpp   2.3.12   edited 2005-10-27 $**** Implementation of QToolButton class**** Created : 980320**** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.**** This file is part of the widgets module of the Qt GUI Toolkit.**** This file may be distributed under the terms of the Q Public License** as defined by Trolltech AS of Norway and appearing in the file** LICENSE.QPL included in the packaging of this file.**** This file may be distributed and/or modified under the terms of the** GNU General Public License version 2 as published by the Free Software** Foundation and appearing in the file LICENSE.GPL included in the** packaging of this file.**** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition** licenses may use this file in accordance with the Qt Commercial License** Agreement provided with the Software.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.**** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for**   information about Qt Commercial License Agreements.** See http://www.trolltech.com/qpl/ for QPL licensing information.** See http://www.trolltech.com/gpl/ for GPL licensing information.**** Contact info@trolltech.com if any conditions of this licensing are** not clear to you.************************************************************************/#include "qtoolbutton.h"#ifndef QT_NO_TOOLBUTTON#include "qdrawutil.h"#include "qpainter.h"#include "qpixmap.h"#include "qwmatrix.h"#include "qapplication.h"#include "qtooltip.h"#include "qtoolbar.h"#include "qimage.h"#include "qiconset.h"#include "qtimer.h"#include "qpopupmenu.h"#include "qguardedptr.h"#ifdef QT_KEYPAD_MODEextern bool qt_modalEditingEnabled;#endifstatic QToolButton * threeDeeButton = 0;class QToolButtonPrivate{    // ### add tool tip magic herepublic:#ifndef QT_NO_POPUPMENU    QGuardedPtr<QPopupMenu> popup;    QTimer* popupTimer;    int delay;#endif    bool autoraise, repeat;    Qt::ArrowType arrow;};// NOT REVISED/*!  \class QToolButton qtoolbutton.h  \brief The QToolButton class provides a quick-access button to  specific commands or options, usually used inside a QToolBar.  \ingroup basic  A tool button is a special button that provides quick-access to  specific commands or options. As opposed to a normal command button,  a tool button usually doesn't show a text label, but an icon.  Its  classic usage is to select tools, for example the "pen"-tool in a  drawing program. This would be implemented with a QToolButton as  toggle button (see setToggleButton() ).  QToolButton supports auto-raising. In auto-raise mode, the button  draws a 3D frame only when the mouse points at it.  The feature is  automatically turned on when a button is used inside a QToolBar.  Change it with setAutoRaise().  A tool button's icon is set as QIconSet. This makes it possible to  specify different pixmaps for the disabled and active state. The  disabled pixmap is used when the button's functionality is not  available. The active pixmap is displayed when the button is  auto-raised because the user is pointing at it.  The button's look and dimension is adjustable with  setUsesBigPixmap() and setUsesTextLabel(). When used inside a  QToolBar, the button automatically adjusts to QMainWindow's settings  (see QMainWindow::setUsesTextLabel() and  QMainWindow::setUsesBigPixmaps()).  A tool button can offer additional choices in a popup menu.  The  feature is sometimes used with the "Back" button in a web browsers:  After pressing the button down for a while, a menu pops up showing  all possible pages to browse back.  With QToolButton, you can set a  popup menu using setPopup(). The default delay is 600ms, you may  adjust it with setPopupDelay().  \sa QPushButton QToolBar QMainWindow  <a href="guibooks.html#fowler">GUI Design Handbook: Push Button</a>*//*!  Constructs an empty tool button.*/QToolButton::QToolButton( QWidget * parent, const char *name )    : QButton( parent, name ){    init();#ifndef QT_NO_TOOLBAR    if ( parent && parent->inherits( "QToolBar" ) ) {	setAutoRaise( TRUE );	QToolBar* tb = (QToolBar*)parent;	if ( tb->mainWindow() ) {	    connect( tb->mainWindow(), SIGNAL(pixmapSizeChanged(bool)),	             this, SLOT(setUsesBigPixmap(bool)) );	    setUsesBigPixmap( tb->mainWindow()->usesBigPixmaps() );	    connect( tb->mainWindow(), SIGNAL(usesTextLabelChanged(bool)),	             this, SLOT(setUsesTextLabel(bool)) );	    setUsesTextLabel( tb->mainWindow()->usesTextLabel() );	} else {	    setUsesBigPixmap( FALSE );	}    } else#endif    {	setUsesBigPixmap( FALSE );    }}/*!  Constructs a tool button as arrow button. The ArrowType \a type  defines the arrow direction. Possible values are LeftArrow,  RightArrow, UpArrow and DownArrow.  An arrow button has auto repeat turned on.  The \a parent and \a name arguments are sent to the QWidget constructor.*/QToolButton::QToolButton( ArrowType type, QWidget *parent, const char *name )    : QButton( parent, name ){    init();    setUsesBigPixmap( FALSE );    setAutoRepeat( TRUE );    d->arrow = type;    hasArrow = TRUE;}/*!  Set-up code common to all the constructors */void QToolButton::init(){    d = new QToolButtonPrivate;#ifndef QT_NO_POPUPMENU    d->delay = 600;    d->popup = 0;    d->popupTimer = 0;#endif    d->autoraise = FALSE;    d->arrow = LeftArrow;    bpID = bp.serialNumber();    spID = sp.serialNumber();    utl = FALSE;    ubp = TRUE;    hasArrow = FALSE;    s = 0;    son = 0;#ifdef QT_KEYPAD_MODE    if( !qt_modalEditingEnabled )#endif    setFocusPolicy( NoFocus );    setBackgroundMode( PaletteButton);    setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum ) );}#ifndef QT_NO_TOOLBAR/*!  Constructs a tool button that is a child of \a parent (which must be  a QToolBar) and named \a name.  The tool button will display \a pm, with text label or tool tip \a  textLabel and status-bar message \a grouptext, connected to \a slot  in object \a receiver, and returns the button.*/QToolButton::QToolButton( const QPixmap &pm, const QString &textLabel,			  const QString &grouptext,			  QObject * receiver, const char *slot,			  QToolBar * parent, const char *name )    : QButton( parent, name ){    init();    setAutoRaise( TRUE );    setPixmap( pm );    setTextLabel( textLabel );    if ( receiver && slot )	connect( this, SIGNAL(clicked()), receiver, slot );    if ( parent->mainWindow() ) {	connect( parent->mainWindow(), SIGNAL(pixmapSizeChanged(bool)),		 this, SLOT(setUsesBigPixmap(bool)) );	setUsesBigPixmap( parent->mainWindow()->usesBigPixmaps() );	connect( parent->mainWindow(), SIGNAL(usesTextLabelChanged(bool)),		 this, SLOT(setUsesTextLabel(bool)) );	setUsesTextLabel( parent->mainWindow()->usesTextLabel() );    } else {	setUsesBigPixmap( FALSE );    }#ifndef QT_NO_TOOLTIP    if ( !textLabel.isEmpty() ) {	if ( !grouptext.isEmpty() )	    QToolTip::add( this, textLabel,			   parent->mainWindow()->toolTipGroup(), grouptext );	else	    QToolTip::add( this, textLabel );    }#endif	}/*!  Constructs a tool button that is a child of \a parent (which must be  a QToolBar) and named \a name.  The tool button will display \a iconSet, with text label or tool tip \a  textLabel and status-bar message \a grouptext, connected to \a slot  in object \a receiver, and returns the button.*/QToolButton::QToolButton( const QIconSet& iconSet, const QString &textLabel,			  const QString& grouptext,			  QObject * receiver, const char *slot,			  QToolBar * parent, const char *name )    : QButton( parent, name ){    init();    setAutoRaise( TRUE );    setIconSet( iconSet );    setTextLabel( textLabel );    if ( receiver && slot )	connect( this, SIGNAL(clicked()), receiver, slot );    if ( parent->mainWindow() ) {	connect( parent->mainWindow(), SIGNAL(pixmapSizeChanged(bool)),		 this, SLOT(setUsesBigPixmap(bool)) );	setUsesBigPixmap( parent->mainWindow()->usesBigPixmaps() );	connect( parent->mainWindow(), SIGNAL(usesTextLabelChanged(bool)),		 this, SLOT(setUsesTextLabel(bool)) );	setUsesTextLabel( parent->mainWindow()->usesTextLabel() );    } else {	setUsesBigPixmap( FALSE );    }#ifndef QT_NO_TOOLTIP    if ( !textLabel.isEmpty() ) {	if ( !grouptext.isEmpty() )	    QToolTip::add( this, textLabel,			   parent->mainWindow()->toolTipGroup(), grouptext );	else	    QToolTip::add( this, textLabel );    }#endif}#endif/*! Destroys the object and frees any allocated resources. */QToolButton::~QToolButton(){#ifndef QT_NO_POPUPMENU    d->popupTimer = 0;    d->popup = 0;#endif    delete d;    delete s;    delete son;    threeDeeButton = 0;}/*!  Makes the tool button a toggle button if \e enable is TRUE, or a normal  tool button if \e enable is FALSE.  Toggle buttons have an on/off state similar to \link QCheckBox check  boxes. \endlink A tool button is initially not a toggle button.  \sa setOn(), toggle(), isToggleButton() toggled()*/void QToolButton::setToggleButton( bool enable ){    QButton::setToggleButton( enable );}/*!  \reimp*/QSize QToolButton::sizeHint() const{    constPolish();    int w = 0;    int h = 0;    if ( !text().isNull()) {	w = fontMetrics().width( text() );	h = fontMetrics().height(); // boundingRect()?    } else if ( usesBigPixmap() ) {	QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Large, QIconSet::Normal);	w = pm.width();	h = pm.height();	if ( w < 32 )	    w = 32;	if ( h < 32 )	    h = 32;    } else {	w = h = 16;	QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Small, QIconSet::Normal);	w = pm.width();	h = pm.height();#ifndef _WS_QWS_ // shouldn't be on any platform...	if ( w < 16 )	    w = 16;	if ( h < 16 )	    h = 16;#endif    }    if ( usesTextLabel() ) {	h += 4 + fontMetrics().height();	int tw = fontMetrics().width( textLabel() ) + fontMetrics().width("  ");	if ( tw > w )	    w = tw;    }    return QSize( w + 7, h + 6 ).expandedTo( QApplication::globalStrut() );}/*!\reimp*/QSizePolicy QToolButton::sizePolicy() const{    //### removeme 3.0    return QWidget::sizePolicy();}/* \fn bool QToolButton::usesBigPixmap() const  Returns TRUE or FALSE.*//* \fn bool QToolButton::usesTextLabel() const  Returns TRUE or FALSE.*//*! \fn QString QToolButton::textLabel() const  Returns the text label in use by this tool button, or 0.  \sa setTextLabel() usesTextLabel() setUsesTextLabel() setText()*//*!  Sets this button to use the big pixmaps provided by its QIconSet  if \a enable is TRUE, and to use the small ones else.  QToolButton automatically connects this slot to the relevant signal  in the QMainWindow in which it resides.  You're strongly urged to  use QMainWindow::setUsesBigPixmaps() instead.  \warning If you set some buttons (in a QMainWindow) to have big and  others small pixmaps, QMainWindow may have trouble getting the  geometry correct.*/void QToolButton::setUsesBigPixmap( bool enable ){    if ( (bool)ubp == enable )	return;    ubp = enable;    if ( isVisible() ) {	update();	updateGeometry();    }}/*!  \fn bool QToolButton::usesBigPixmap() const  Returns TRUE if this tool button uses the big (32-pixel) pixmaps,  and FALSE if it does not.  \sa setUsesBigPixmap(), setPixmap(),  usesTextLabel*//*!  Sets this button to draw a text label below the icon if \a enable  is TRUE, and to not draw it if \a enable is FALSE.  QToolButton automatically connects this slot to the relevant signal  in the QMainWindow in which is resides.*/void QToolButton::setUsesTextLabel( bool enable ){    if ( (bool)utl == enable )	return;    utl = enable;    if ( isVisible() ) {	update();	updateGeometry();    }}/*! \fn bool QToolButton::usesTextLabel() const

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品乱码亚洲一区二区不卡| 欧美综合欧美视频| 亚洲黄色小视频| 精品国产百合女同互慰| 在线视频一区二区三区| 国产剧情一区在线| 亚洲成a人v欧美综合天堂下载 | 国产精品综合一区二区三区| 亚洲欧洲另类国产综合| 久久亚洲精精品中文字幕早川悠里 | 色婷婷综合久久久| 国产一区在线视频| 日产精品久久久久久久性色| 亚洲久本草在线中文字幕| 亚洲精品一区二区三区99| 欧美美女喷水视频| 色婷婷香蕉在线一区二区| 国产成人免费视频网站| 蜜臀av一级做a爰片久久| 国产精品视频一二三区| 6080国产精品一区二区| 色香蕉久久蜜桃| 成人精品视频一区二区三区| 国产一区二区三区香蕉| 免费人成精品欧美精品| 午夜欧美视频在线观看 | 97久久人人超碰| 国产91精品一区二区| 国产在线精品一区二区三区不卡| 奇米影视一区二区三区| 亚瑟在线精品视频| 香港成人在线视频| 亚洲一区二区三区四区不卡| 一区在线观看免费| 久久青草国产手机看片福利盒子| 日韩小视频在线观看专区| 欧美一区二区三区电影| 欧美日韩精品一区二区| 欧美高清视频一二三区| 99久久国产综合精品色伊| 99久久久精品免费观看国产蜜| 成人精品在线视频观看| 91麻豆国产香蕉久久精品| 99久久99久久久精品齐齐| 色综合婷婷久久| 欧洲av一区二区嗯嗯嗯啊| 91高清视频在线| 欧美日韩二区三区| 欧美高清dvd| 欧美v亚洲v综合ⅴ国产v| 精品福利av导航| 国产日韩欧美精品电影三级在线| 欧美国产97人人爽人人喊| 国产精品久久久久久久久搜平片| 国产精品欧美一级免费| 亚洲区小说区图片区qvod| 亚洲国产精品人人做人人爽| 成人综合婷婷国产精品久久免费| 久久精品国产久精国产爱| 国产一区二区久久| eeuss国产一区二区三区| 一本一本大道香蕉久在线精品 | 欧美日产国产精品| 69av一区二区三区| 欧美tickling网站挠脚心| 久久精品亚洲精品国产欧美kt∨| 国产精品福利一区二区三区| 亚洲自拍欧美精品| 久久国产夜色精品鲁鲁99| 国产99久久久国产精品潘金网站| 色偷偷成人一区二区三区91| 在线观看亚洲一区| 欧美成人a在线| 中文字幕一区二区三区在线播放| 亚洲午夜久久久久久久久久久| 日本美女一区二区| 成人综合婷婷国产精品久久蜜臀 | 91精品国产91热久久久做人人| 精品国产乱码久久久久久图片| 亚洲欧洲国产专区| 日韩va欧美va亚洲va久久| 久久99久久久久| 91精彩视频在线观看| 欧美成人一级视频| 亚洲美女在线一区| 久久99热这里只有精品| 菠萝蜜视频在线观看一区| 欧美日韩成人综合在线一区二区| 久久老女人爱爱| 亚洲一区二区免费视频| 高清beeg欧美| 91精品久久久久久久99蜜桃 | 国产精品国产a级| 丝袜亚洲另类欧美综合| 大美女一区二区三区| 91.com视频| 最新久久zyz资源站| 青娱乐精品视频| 91免费国产视频网站| 26uuu色噜噜精品一区| 激情六月婷婷久久| 欧洲在线/亚洲| 久久在线免费观看| 一片黄亚洲嫩模| 成人国产在线观看| 日韩一区二区三区观看| 一区二区三区在线免费观看| 成人综合激情网| 精品理论电影在线观看| 天天爽夜夜爽夜夜爽精品视频| www.视频一区| 国产亚洲精品福利| 狠狠色伊人亚洲综合成人| 欧美日韩在线亚洲一区蜜芽| 国产精品天天看| 国内精品视频一区二区三区八戒| 3atv一区二区三区| 亚洲国产乱码最新视频| 色婷婷综合在线| 1024成人网色www| 成人激情动漫在线观看| 久久久午夜精品| 蜜乳av一区二区| 日韩小视频在线观看专区| 日韩黄色片在线观看| 欧美另类变人与禽xxxxx| 中文字幕永久在线不卡| 国产毛片精品一区| 久久婷婷综合激情| 九色综合狠狠综合久久| 日韩一级片在线播放| 丝袜国产日韩另类美女| 欧美少妇xxx| 午夜欧美视频在线观看 | 亚洲国产精品国自产拍av| 国产美女精品人人做人人爽| 久久精品免视看| 国产成人综合在线播放| 中文字幕国产一区| www.欧美亚洲| 一区二区视频免费在线观看| 91福利在线免费观看| 亚洲高清免费在线| 欧美精品亚洲二区| 五月激情综合网| 日韩欧美国产一区二区在线播放 | 亚洲在线中文字幕| 欧美午夜理伦三级在线观看| 亚洲日本一区二区| 欧美三级在线播放| 五月天激情综合| 亚洲精品在线网站| 国产成人在线观看| 国产精品福利影院| 欧美在线免费视屏| 男女激情视频一区| 2023国产精品自拍| 99久久国产综合精品色伊| 亚洲成人一区二区| 精品剧情v国产在线观看在线| 国产黄色成人av| 亚洲精品精品亚洲| 777欧美精品| 国产高清亚洲一区| 一区二区三区中文免费| 日韩一级片网站| av一区二区三区| 婷婷成人综合网| 久久久久久久久伊人| 色呦呦国产精品| 秋霞影院一区二区| 中文字幕一区二区三区乱码在线| 91捆绑美女网站| 日韩va欧美va亚洲va久久| 久久精品亚洲精品国产欧美kt∨ | 国产精品久久毛片av大全日韩| 色乱码一区二区三区88| 久久成人免费网站| 综合久久久久久| 日韩三级视频在线看| 99亚偷拍自图区亚洲| 秋霞影院一区二区| 亚洲欧美一区二区不卡| 欧美亚洲免费在线一区| 国产精品综合二区| 亚洲mv在线观看| 欧美亚洲一区二区在线| 免费在线欧美视频| 亚洲精品日韩综合观看成人91| 91精品国产福利在线观看| www.亚洲人| 精品亚洲欧美一区| 亚洲午夜视频在线| 国产精品久久久久久亚洲毛片| 欧美一级日韩一级| 欧美性一级生活| 成人手机电影网| 久久99蜜桃精品| 日韩高清不卡一区二区| 宅男在线国产精品|