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

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

?? qcommonstyle.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/****************************************************************************** $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);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
2023国产一二三区日本精品2022| 日韩二区三区四区| 精品国产91洋老外米糕| 欧美唯美清纯偷拍| 95精品视频在线| 天天色综合天天| 成人欧美一区二区三区在线播放| 久久一夜天堂av一区二区三区| 91精品国产一区二区三区蜜臀 | 精品区一区二区| 欧美日韩在线亚洲一区蜜芽| 色欧美乱欧美15图片| 不卡av电影在线播放| 日韩不卡一区二区| 亚洲高清不卡在线| 亚洲一区二区三区不卡国产欧美| 日韩美女精品在线| 中文字幕亚洲电影| 自拍av一区二区三区| 中文字幕av一区二区三区免费看| 国产女人18水真多18精品一级做| 国产午夜精品久久久久久久 | 欧洲一区二区三区免费视频| 99久免费精品视频在线观看 | 精品国产乱码久久久久久闺蜜| 制服.丝袜.亚洲.中文.综合| 777xxx欧美| 欧美大黄免费观看| 波多野结衣中文字幕一区| 久久国产夜色精品鲁鲁99| 日韩av在线发布| 久久精品国产免费| 国产资源在线一区| 色欧美88888久久久久久影院| 91蜜桃婷婷狠狠久久综合9色| 欧美在线一二三| 欧美一区二区三区免费观看视频 | 精品国免费一区二区三区| 久久一夜天堂av一区二区三区| 中文字幕精品一区二区三区精品| 亚洲欧洲综合另类在线| 日本在线观看不卡视频| 国产成人精品亚洲777人妖 | 久久久精品国产免费观看同学| 国产精品全国免费观看高清| 亚洲无人区一区| 国产在线精品视频| 91久久精品网| 欧美大尺度电影在线| 亚洲丝袜自拍清纯另类| 日韩激情在线观看| 国产99久久久国产精品潘金网站| 欧美三级三级三级爽爽爽| www亚洲一区| 亚洲一卡二卡三卡四卡无卡久久| 久久精品久久99精品久久| 99久久婷婷国产| 欧美一级夜夜爽| 麻豆国产一区二区| 色婷婷亚洲婷婷| 欧美成人艳星乳罩| 亚洲国产wwwccc36天堂| 九九在线精品视频| 不卡高清视频专区| 日韩一区和二区| 亚洲免费在线播放| 久久99精品久久久久久久久久久久| 91免费国产在线观看| 精品国产123| 午夜精品久久久久久久久久久 | 色狠狠桃花综合| 国产日韩欧美在线一区| 亚洲综合一区二区三区| 国产成人欧美日韩在线电影| 日韩一区二区视频在线观看| 玉足女爽爽91| 成人白浆超碰人人人人| 日韩一区二区影院| 亚洲成人一区在线| 91精品办公室少妇高潮对白| 日本一区二区免费在线| 久久av资源网| 欧美一区二区三区的| 亚洲激情男女视频| 亚洲视频 欧洲视频| 国产精品66部| 久久综合久久综合久久| 奇米综合一区二区三区精品视频| 色88888久久久久久影院野外| 国产女主播在线一区二区| 久久综合综合久久综合| 91麻豆精品国产91久久久久| 亚洲成人一区二区| 91福利视频网站| 日韩一区在线看| www.视频一区| 国产欧美日韩在线看| 国产美女精品一区二区三区| 精品嫩草影院久久| 日韩专区欧美专区| 在线一区二区三区四区五区| 亚洲精品视频在线看| av在线一区二区| 国产精品视频一区二区三区不卡| 国产成人免费视频精品含羞草妖精| 久久女同互慰一区二区三区| 日本aⅴ精品一区二区三区 | eeuss影院一区二区三区 | 日本美女一区二区三区视频| 欧美色综合网站| 天堂蜜桃一区二区三区| 欧美久久久影院| 日本sm残虐另类| 婷婷中文字幕综合| 一区二区成人在线视频| 一区二区三区在线视频免费| 亚洲久草在线视频| 中文字幕欧美国产| 日韩精品一区二区在线| 亚洲免费在线视频| 欧美精品tushy高清| 一本久久综合亚洲鲁鲁五月天| 亚洲一区二区美女| 国产精品久久久久久久久免费丝袜| 欧美不卡在线视频| 亚洲国产高清不卡| 欧美大片一区二区三区| 国模少妇一区二区三区| 成人丝袜视频网| 99久久综合国产精品| 亚洲视频免费观看| 久久久精品国产免费观看同学| 欧美一区二区三区视频在线 | 国产精品一区二区不卡| 国产不卡高清在线观看视频| 欧美日韩国产高清一区| 欧美一区二区网站| 精品福利在线导航| 日本久久精品电影| 色吧成人激情小说| 91久久免费观看| 成人丝袜18视频在线观看| 国产精品一品视频| 国产色产综合产在线视频| 亚洲三级免费电影| 成人av在线看| 国产精品国产三级国产aⅴ入口| 中文字幕中文字幕在线一区| 伊人色综合久久天天人手人婷| 国产99久久久精品| 成人av网站在线观看| 欧美电影在哪看比较好| 51精品视频一区二区三区| 国产精品私房写真福利视频| 欧洲一区二区三区免费视频| 欧美日韩国产综合一区二区| 国产在线精品一区二区夜色| 亚洲欧美经典视频| 黄色精品一二区| 色婷婷国产精品久久包臀| 青草av.久久免费一区| 国产成人av影院| 一本色道久久综合狠狠躁的推荐| 国产欧美日韩另类视频免费观看| 亚洲人成网站在线| 精品一区二区免费在线观看| 亚洲精品在线电影| 国产综合色视频| 处破女av一区二区| 亚洲一区二区不卡免费| 国产成人av福利| 日韩欧美激情一区| 欧美视频在线播放| 精品国产乱码久久久久久牛牛| 亚洲国产精品一区二区www| 免费观看91视频大全| 欧美日韩一区二区三区在线看| 日韩电影在线看| 日韩精品中文字幕在线一区| 国产美女主播视频一区| 亚洲免费伊人电影| 欧美一区二区国产| 成人精品国产一区二区4080| 亚洲精品ww久久久久久p站| 日韩一区二区在线观看| 成人av免费在线观看| 午夜伊人狠狠久久| 国产精品午夜免费| 91精品国产综合久久精品性色| 捆绑变态av一区二区三区| 中文字幕国产一区| 91精品福利在线一区二区三区 | 2020日本不卡一区二区视频| 波多野结衣在线一区| 亚洲超碰精品一区二区| 日本一区二区三区免费乱视频| 在线观看一区不卡| 成人国产免费视频| 日韩理论片中文av| 国产a视频精品免费观看|