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

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

?? qcommonstyle.cpp

?? qtopia-phone-2.2.0下公共的控件實(shí)現(xiàn)源代碼。
?? CPP
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/****************************************************************************** $Id: qt/src/widgets/qcommonstyle.cpp   2.3.12   edited 2005-10-27 $**** Implementation of the QCommonStyle class**** Created : 981231**** Copyright (C) 1998-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 "qcommonstyle.h"#if !defined(QT_NO_STYLE_WINDOWS) || !defined(QT_NO_STYLE_MOTIF)#include "qapplication.h"#include "qpainter.h"#include "qdrawutil.h" // for now#include "qpixmap.h" // for now#include "qpalette.h" // for now#include "qwidget.h"#include "qlabel.h"#include "qimage.h"#include "qpushbutton.h"#include "qwidget.h"#include "qrangecontrol.h"#include "qtabbar.h"#include "qscrollbar.h"#include "qtoolbutton.h"#include <limits.h>#define INCLUDE_MENUITEM_DEF#include "qmenudata.h" // for now// #undef INCLUDE_MENUITEM_DEF#include "qmotifplusstyle.h" // fo rnowtypedef void (QStyle::*QDrawMenuBarItemImpl) (QPainter *, int, int, int, int, QMenuItem *,					      QColorGroup &, bool, bool);static QDrawMenuBarItemImpl draw_menu_bar_impl = 0;QDrawMenuBarItemImpl qt_set_draw_menu_bar_impl(QDrawMenuBarItemImpl impl){    QDrawMenuBarItemImpl old_impl = draw_menu_bar_impl;    draw_menu_bar_impl = impl;    return old_impl;}// NOT REVISED/*!  \class QCommonStyle qcommonstyle.h  \brief Encapsulates common Look and Feel of a GUI.  \ingroup appearance  This abstract class implements some of the widget's look and feel  that is common to all GUI styles provided and shipped as part of Qt.*//*!  Constructs a QCommonStyle that provides the style \a s.  This determines  the default behavior of the virtual functions.*/QCommonStyle::QCommonStyle(GUIStyle s) : QStyle(s){} /*!  Destructs the style.*/QCommonStyle::~QCommonStyle(){}/*! \reimp */void QCommonStyle::drawComboButton( QPainter *p, int x, int y, int w, int h,				  const QColorGroup &g, bool sunken,			      bool /* editable */,			      bool /*enabled */,			      const QBrush *fill ){    drawButton(p, x, y, w, h, g, sunken, fill);}/*! \reimp */QRect QCommonStyle::comboButtonRect( int x, int y, int w, int h){    return buttonRect(x, y, w-21, h);}/*! \reimp */QRect QCommonStyle::comboButtonFocusRect( int x, int y, int w, int h){    return buttonRect(x+2, y+2, w-4-21, h-4);}/*! \reimp*/void QCommonStyle::drawComboButtonMask( QPainter *p, int x, int y, int w, int h){    drawButtonMask(p, x, y, w, h);}/*!\reimp */void QCommonStyle::drawPushButtonLabel( QPushButton* btn, QPainter *p){#ifndef QT_NO_PUSHBUTTON    QRect r = pushButtonContentsRect( btn );    if ( btn->isDown() || btn->isOn() ){	int sx = 0;	int sy = 0;	getButtonShift(sx, sy);	r.moveBy( sx, sy );    }    int x, y, w, h;    r.rect( &x, &y, &w, &h );    if ( btn->isMenuButton() ) {	int dx = menuButtonIndicatorWidth( btn->height() ); 	drawArrow( p, DownArrow, FALSE, 	 	   x+w-dx, y+2, dx-4, h-4, 		   btn->colorGroup(), 		   btn->isEnabled() );	w -= dx;    }    if ( btn->iconSet() && !btn->iconSet()->isNull() ) {	QIconSet::Mode mode = btn->isEnabled()			      ? QIconSet::Normal : QIconSet::Disabled;	if ( mode == QIconSet::Normal && btn->hasFocus() )	    mode = QIconSet::Active;	QPixmap pixmap = btn->iconSet()->pixmap( QIconSet::Small, mode );	int pixw = pixmap.width();	int pixh = pixmap.height();	p->drawPixmap( x+2, y+h/2-pixh/2, pixmap );	x += pixw + 4;	w -= pixw + 4;    }    drawItem( p, x, y, w, h,	      AlignCenter | ShowPrefix,	      btn->colorGroup(), btn->isEnabled(),	      btn->pixmap(), btn->text(), -1, &btn->colorGroup().buttonText() );#endif}/*!\reimp */void QCommonStyle::getButtonShift( int &x, int &y){    x = 0;    y = 0;}/*!\reimp */int QCommonStyle::defaultFrameWidth() const{    return 2;}/*!\reimp */void QCommonStyle::tabbarMetrics( const QTabBar* t, int& hframe, int& vframe, int& overlap){#ifndef QT_NO_TABBAR    overlap = 3;    hframe = 24;    vframe = 0;    if ( t->shape() == QTabBar::RoundedAbove || t->shape() == QTabBar::RoundedBelow )	vframe += 10;#endif}/*!\reimp */void QCommonStyle::drawTab( QPainter* p,  const  QTabBar* tb, QTab* t , bool selected ){#ifndef QT_NO_TABBAR    if ( tb->shape() == QTabBar::TriangularAbove || tb->shape() == QTabBar::TriangularBelow ) {	// triangular, above or below	int y;	int x;	QPointArray a( 10 );	a.setPoint( 0, 0, -1 );	a.setPoint( 1, 0, 0 );	y = t->r.height()-2;	x = y/3;	a.setPoint( 2, x++, y-1 );	a.setPoint( 3, x++, y );	a.setPoint( 3, x++, y++ );	a.setPoint( 4, x, y );	int i;	int right = t->r.width() - 1;	for ( i = 0; i < 5; i++ )	    a.setPoint( 9-i, right - a.point( i ).x(), a.point( i ).y() );	if ( tb->shape() == QTabBar::TriangularAbove )	    for ( i = 0; i < 10; i++ )		a.setPoint( i, a.point(i).x(),			    t->r.height() - 1 - a.point( i ).y() );	a.translate( t->r.left(), t->r.top() );	if ( selected )	    p->setBrush( tb->colorGroup().base() );	else	    p->setBrush( tb->colorGroup().background() );	p->setPen( tb->colorGroup().foreground() );	p->drawPolygon( a );	p->setBrush( NoBrush );    }#endif}/*!\reimp */void QCommonStyle::drawTabMask( QPainter* p,  const  QTabBar* /* tb*/ , QTab* t, bool /* selected */ ){#ifndef QT_NO_TABBAR    p->drawRect( t->r );#endif}/*!\reimp */QStyle::ScrollControl QCommonStyle::scrollBarPointOver( const QScrollBar* sb, int sliderStart, const QPoint& p ){#ifndef QT_NO_SCROLLBAR    if ( !sb->rect().contains( p ) )	return NoScroll;    int sliderMin, sliderMax, sliderLength, buttonDim, pos;    scrollBarMetrics( sb, sliderMin, sliderMax, sliderLength, buttonDim );    pos = (sb->orientation() == QScrollBar::Horizontal)? p.x() : p.y();    if ( pos < sliderMin )	return SubLine;    if ( pos < sliderStart )	return SubPage;    if ( pos < sliderStart + sliderLength )	return Slider;    if ( pos < sliderMax + sliderLength )	return AddPage;    return AddLine;#else    return NoScroll;#endif}/*!\reimp */voidQCommonStyle::drawSliderMask( QPainter *p,			int x, int y, int w, int h,			Orientation, bool, bool ){    p->fillRect(x, y, w, h, color1);}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美va日韩va| 中文一区一区三区高中清不卡| 日韩三级.com| 亚洲人xxxx| 国产二区国产一区在线观看| 欧美男女性生活在线直播观看| 午夜伊人狠狠久久| 欧美激情中文字幕| 奇米色一区二区三区四区| 国产黄人亚洲片| 精品国产伦一区二区三区观看体验| 一区二区三区中文字幕精品精品 | 精品一区二区免费视频| 欧美日韩一区二区三区视频| 亚洲天堂a在线| 91在线视频免费观看| 日韩欧美亚洲另类制服综合在线 | 日韩午夜在线观看| 日本在线不卡一区| 丰满放荡岳乱妇91ww| 国产人伦精品一区二区| 国产成人在线观看免费网站| 欧美精品一区二区三区在线播放| 视频一区二区欧美| 日韩精品在线看片z| 国产精品99久久久久久久vr| 日韩久久精品一区| 欧美日本一区二区| 99re视频这里只有精品| 欧美电影免费观看高清完整版| 国产亚洲综合性久久久影院| 亚洲一区二区三区四区在线| 成人丝袜视频网| 一区二区三区在线观看网站| 成人av网站在线| 天堂av在线一区| 欧美va天堂va视频va在线| 国产高清视频一区| 五月婷婷欧美视频| 欧美另类z0zxhd电影| 美女在线视频一区| 亚洲欧美日韩精品久久久久| 成人丝袜视频网| 精品粉嫩超白一线天av| 国产福利视频一区二区三区| 国产精品久久久久久久午夜片| 欧美日韩一级视频| 国产不卡免费视频| 日韩精品一级中文字幕精品视频免费观看| 欧美一级片在线| 成人午夜在线视频| 经典一区二区三区| 日韩精品电影一区亚洲| 亚洲欧美日韩国产成人精品影院| 精品欧美久久久| 久久精品国产亚洲高清剧情介绍 | 久久久亚洲综合| 日韩欧美综合在线| 欧美一区二区福利视频| 欧美日韩欧美一区二区| eeuss国产一区二区三区| 懂色av一区二区夜夜嗨| 99精品欧美一区二区三区综合在线| 成人国产电影网| 欧美午夜在线观看| 欧美一区二区三区日韩视频| 亚洲国产欧美日韩另类综合| 国产精品高清亚洲| 亚洲日本va午夜在线电影| 亚洲黄网站在线观看| 另类调教123区| 成人h精品动漫一区二区三区| 一本色道久久综合亚洲精品按摩| 日本韩国精品一区二区在线观看| 欧美三级乱人伦电影| 日韩美女视频一区二区在线观看| 久久精品视频在线看| 一区二区三区美女| 国产精品一区免费在线观看| 欧美在线视频你懂得| 国产丝袜美腿一区二区三区| 一区二区三区蜜桃| 日韩av电影免费观看高清完整版 | 欧美色网一区二区| 欧美综合视频在线观看| 久久综合九色综合97婷婷| 午夜影院在线观看欧美| 成人福利在线看| 欧美一区二区三区成人| 一区二区三区国产豹纹内裤在线| 久久91精品国产91久久小草| 色国产综合视频| 久久综合精品国产一区二区三区 | 国产又粗又猛又爽又黄91精品| 在线观看视频一区| 亚洲欧美成aⅴ人在线观看| 国产精品原创巨作av| 欧美成人福利视频| 免费欧美高清视频| 日韩一区和二区| 美国三级日本三级久久99 | 日韩一区二区影院| 日韩**一区毛片| 日韩一区二区三区三四区视频在线观看| 亚洲男人的天堂网| 欧美群妇大交群中文字幕| 欧美日韩一区二区三区免费看| 久久久www免费人成精品| 国产一区999| 亚洲天堂久久久久久久| 91视频一区二区三区| 亚洲精品日韩专区silk| 欧美综合视频在线观看| 日日骚欧美日韩| 2021国产精品久久精品| av一本久道久久综合久久鬼色| 亚洲美女少妇撒尿| 制服丝袜亚洲网站| 成人福利视频网站| 亚洲免费成人av| 久久只精品国产| 91影院在线观看| 蜜桃久久精品一区二区| 久久久久久久综合日本| 日韩电影在线看| 国产情人综合久久777777| 色婷婷国产精品久久包臀| 欧美aⅴ一区二区三区视频| 国产欧美日韩精品在线| 在线看日韩精品电影| 国产精品影视在线观看| 丝袜国产日韩另类美女| 亚洲欧美另类综合偷拍| 日韩精品一区二区三区在线观看 | 欧美福利视频导航| 成人小视频在线| 婷婷综合五月天| 欧美在线啊v一区| 成人免费视频免费观看| 日本怡春院一区二区| 国产精品一区免费在线观看| 日韩中文字幕不卡| 亚洲综合丝袜美腿| 亚洲免费av网站| 亚洲视频一区在线| 国产女主播一区| 国产日韩欧美精品在线| 精品欧美久久久| 26uuu亚洲综合色| 久久夜色精品国产噜噜av| 日韩欧美中文字幕公布| www一区二区| 国产亚洲精品超碰| 中文字幕不卡在线播放| 欧美国产视频在线| 久久精品一区二区三区不卡牛牛| 成人免费毛片a| 国内精品不卡在线| 国产成人精品影院| 91欧美激情一区二区三区成人| 99免费精品视频| 欧美色综合网站| 日韩欧美资源站| 中文字幕一区二区在线播放| 最好看的中文字幕久久| 亚洲一区二区三区自拍| 免费人成在线不卡| 国产v日产∨综合v精品视频| 91视频xxxx| 欧美一卡2卡三卡4卡5免费| 亚洲精品一区二区在线观看| 中文字幕欧美日本乱码一线二线| 亚洲精品五月天| 麻豆国产精品777777在线| 成人免费视频视频| 欧美一区二区精美| 亚洲欧洲精品天堂一级| 精品国产乱码久久久久久久久| 精品乱码亚洲一区二区不卡| 中文字幕中文在线不卡住| 久久99精品久久久久久久久久久久| 国产a级毛片一区| 日韩西西人体444www| 亚洲精品视频免费观看| 国产99久久久国产精品免费看| 欧美在线影院一区二区| 亚洲天堂精品视频| 国产成人精品亚洲午夜麻豆| 777亚洲妇女| 亚洲高清免费观看高清完整版在线观看| 国产精品中文字幕日韩精品| 在线成人av影院| 日韩电影在线一区| 欧美日韩在线免费视频| 亚洲精品一卡二卡| 色婷婷精品大在线视频| 国产精品欧美一级免费| 成人少妇影院yyyy| 日韩免费高清av| 国产一区二区91|