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

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

?? qmotifplusstyle.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
/****************************************************************************** $Id: qt/src/widgets/qmotifplusstyle.cpp   2.3.12   edited 2005-10-27 $**** Implementation of QMotifPlusStyle class**** Created : 2000.07.27**** Copyright (C) 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 "qmotifplusstyle.h"#ifndef QT_NO_STYLE_MOTIFPLUS#define INCLUDE_MENUITEM_DEF#include <qapplication.h>#include <qpainter.h>#include <qpalette.h>#include <qframe.h>#include <qpushbutton.h>#include <qmenubar.h>#include <qdrawutil.h>#include <qscrollbar.h>#include <qtabbar.h>#include <qguardedptr.h>#include <qlayout.h>typedef void (QStyle::*QDrawMenuBarItemImpl) (QPainter *, int, int, int, int, QMenuItem *,					      QColorGroup &, bool, bool);QDrawMenuBarItemImpl qt_set_draw_menu_bar_impl(QDrawMenuBarItemImpl impl);struct QMotifPlusStylePrivate{    QMotifPlusStylePrivate()	: hoverWidget(0), hovering(FALSE), sliderActive(FALSE),	  scrollbarElement(0), ref(1), hoverPalette(0)    { ; }    QGuardedPtr<QWidget> hoverWidget;    QPalette oldpalette, prelight_palette;    bool hovering, sliderActive;    int scrollbarElement, ref;    QPoint mousePos;    QPalette *hoverPalette;};static QMotifPlusStylePrivate *d = 0;/*!  \class QMotifPlusStyle qmotifplusstyle.h  \brief More sophisticated Motif-ish look and feel  \ingroup appearance This class implements a Motif-ish look and feel with more sophisticated bevelling as used by the GIMP Toolkit (GTK+) for Unix/X11. *//*!  Constructs a QMotifPlusStyle  If \a hoveringHighlight is FALSE (default value), then the style will not  highlight push buttons, checkboxes, radiobuttons, comboboxes, scrollbars  and sliders. */QMotifPlusStyle::QMotifPlusStyle(bool hoveringHighlight) : QMotifStyle(TRUE){    if (! d) {	d = new QMotifPlusStylePrivate;    } else {	d->ref++;    }    setScrollBarExtent(15, 15);    setButtonDefaultIndicatorWidth(5);    setSliderThickness(15);    setButtonMargin(2);    useHoveringHighlight = hoveringHighlight;}/*!  Destructs the style. */QMotifPlusStyle::~QMotifPlusStyle(){    if (d && d->ref == 0) {	delete d;	d = 0;    }}/*!  \reimp*/void QMotifPlusStyle::polish(QPalette &pal){    d->oldpalette = pal;    QColor bg = pal.color(QPalette::Active, QColorGroup::Background);    if (bg.red()   == 0xc0 &&	bg.green() == 0xc0 &&	bg.blue()  == 0xc0) {	// assume default palette... no -bg arg or color read from RESOURCE_MANAGER	QColor gtkdf(0x75, 0x75, 0x75);	QColor gtksf(0xff, 0xff, 0xff);	QColor gtkbg(0xd6, 0xd6, 0xd6);	QColor gtksl(0x00, 0x00, 0x9c);	pal.setColor(QPalette::Active, QColorGroup::Background, gtkbg);	pal.setColor(QPalette::Inactive, QColorGroup::Background, gtkbg);	pal.setColor(QPalette::Disabled, QColorGroup::Background, gtkbg);	pal.setColor(QPalette::Active, QColorGroup::Button, gtkbg);	pal.setColor(QPalette::Inactive, QColorGroup::Button, gtkbg);	pal.setColor(QPalette::Disabled, QColorGroup::Button, gtkbg);	pal.setColor(QPalette::Active, QColorGroup::Highlight, gtksl);	pal.setColor(QPalette::Inactive, QColorGroup::Highlight, gtksl);	pal.setColor(QPalette::Disabled, QColorGroup::Highlight, gtksl);	pal.setColor(QPalette::Active, QColorGroup::HighlightedText, gtksf);	pal.setColor(QPalette::Inactive, QColorGroup::HighlightedText, gtksf);	pal.setColor(QPalette::Disabled, QColorGroup::HighlightedText, gtkdf);    }    {	QColorGroup active(pal.color(QPalette::Active,				     QColorGroup::Foreground),           // foreground			   pal.color(QPalette::Active,				     QColorGroup::Button),               // button			   pal.color(QPalette::Active,				     QColorGroup::Background).light(),   // light			   pal.color(QPalette::Active,				     QColorGroup::Background).dark(142), // dark			   pal.color(QPalette::Active,				     QColorGroup::Background).dark(110), // mid			   pal.color(QPalette::Active,				     QColorGroup::Text),                 // text			   pal.color(QPalette::Active,				     QColorGroup::BrightText),           // bright text			   pal.color(QPalette::Active,				     QColorGroup::Base),                 // base			   pal.color(QPalette::Active,				     QColorGroup::Background)),          // background	    disabled(pal.color(QPalette::Disabled,			       QColorGroup::Foreground),                 // foreground		     pal.color(QPalette::Disabled,			       QColorGroup::Button),                     // button		     pal.color(QPalette::Disabled,			       QColorGroup::Background).light(),         // light		     pal.color(QPalette::Disabled,			       QColorGroup::Background).dark(156),       // dark		     pal.color(QPalette::Disabled,			       QColorGroup::Background).dark(110),       // mid		     pal.color(QPalette::Disabled,			       QColorGroup::Text),                       // text		     pal.color(QPalette::Disabled,			       QColorGroup::BrightText),                 // bright text		     pal.color(QPalette::Disabled,			       QColorGroup::Base),                       // base		     pal.color(QPalette::Disabled,			       QColorGroup::Background));                // background	active.setColor(QColorGroup::Highlight,			pal.color(QPalette::Active, QColorGroup::Highlight));	disabled.setColor(QColorGroup::Highlight,			  pal.color(QPalette::Disabled, QColorGroup::Highlight));	active.setColor(QColorGroup::HighlightedText,			pal.color(QPalette::Active, QColorGroup::HighlightedText));	disabled.setColor(QColorGroup::HighlightedText,			  pal.color(QPalette::Disabled, QColorGroup::HighlightedText));	pal.setActive(active);	pal.setInactive(active);	pal.setDisabled(disabled);    }    {	QColor prelight;	if ( (bg.red() + bg.green() + bg.blue()) / 3 > 128)	    prelight = pal.color(QPalette::Active,				 QColorGroup::Background).light(110);	else	    prelight = pal.color(QPalette::Active,				 QColorGroup::Background).light(120);	QColorGroup active2(pal.color(QPalette::Active,				      QColorGroup::Foreground), // foreground			    prelight,                           // button			    prelight.light(),                   // light			    prelight.dark(156),                 // dark			    prelight.dark(110),                 // mid			    pal.color(QPalette::Active,				      QColorGroup::Text),       // text			    pal.color(QPalette::Active,				      QColorGroup::BrightText), // bright text			    pal.color(QPalette::Active,				      QColorGroup::Base),       // base			    prelight);                          // background	d->prelight_palette = pal;	d->prelight_palette.setActive(active2);	d->prelight_palette.setInactive(active2);    }}/*!  \reimp*/void QMotifPlusStyle::polish(QWidget *widget){    if (widget->inherits("QFrame") &&	((QFrame *) widget)->frameStyle() == QFrame::Panel)	((QFrame *) widget)->setFrameStyle(QFrame::WinPanel);#ifndef QT_NO_MENUBAR    if (widget->inherits("QMenuBar") &&	((QMenuBar *) widget)->frameStyle() != QFrame::NoFrame)	((QMenuBar *) widget)->setFrameStyle(QFrame::StyledPanel | QFrame::Raised);#endif#ifndef QT_NO_TOOLBAR    if (widget->inherits("QToolBar"))	widget->layout()->setMargin(2);#endif    if (useHoveringHighlight) {	if (widget->inherits("QButton") ||	    widget->inherits("QComboBox"))	    widget->installEventFilter(this);	if (widget->inherits("QScrollBar") ||	    widget->inherits("QSlider")) {	    widget->setMouseTracking(TRUE);	    widget->installEventFilter(this);	}    }    QMotifStyle::polish(widget);}/*!  \reimp*/void QMotifPlusStyle::unPolish(QWidget *widget){    widget->removeEventFilter(this);    QMotifStyle::unPolish(widget);}/*!  \reimp*/void QMotifPlusStyle::polish(QApplication *){    qt_set_draw_menu_bar_impl((QDrawMenuBarItemImpl) &QMotifPlusStyle::drawMenuBarItem);}/*!  \reimp*/void QMotifPlusStyle::unPolish(QApplication *app){    app->setPalette(d->oldpalette);    qt_set_draw_menu_bar_impl(0);}/*!  \reimp*/void QMotifPlusStyle::polishPopupMenu(QPopupMenu *menu){    menu->setMouseTracking(TRUE);}/*!  \reimp*/void QMotifPlusStyle::drawPushButton(QPushButton *button, QPainter *p){    int x1, y1, x2, y2;    button->rect().coords(&x1, &y1, &x2, &y2);    if (button->isDefault())	drawButton(p, x1, y1, x2 - x1 + 1, y2 - y1 + 1,		   qApp->palette().active(), TRUE);    if (button->isDefault() || button->autoDefault()) {	x1 += buttonDefaultIndicatorWidth();	y1 += buttonDefaultIndicatorWidth();	x2 -= buttonDefaultIndicatorWidth();	y2 -= buttonDefaultIndicatorWidth();    }    QBrush fill;    if (button->isDown() || button->isOn())	fill = button->colorGroup().brush(QColorGroup::Mid);    else	fill = button->colorGroup().brush(QColorGroup::Button);    if ( !button->isFlat() || button->isOn() || button->isDown() )	drawButton(p, x1, y1, x2 - x1 + 1, y2 - y1 + 1,		   button->colorGroup(), button->isOn() || button->isDown(), &fill);}/*!  \reimp*/void QMotifPlusStyle::drawButton(QPainter *p, int x, int y, int w, int h,				 const QColorGroup &g, bool sunken, const QBrush *fill){    QPen oldpen = p->pen();    QPointArray a(4);    if (sunken) p->setPen(g.dark());    else p->setPen(g.light());    a.setPoint(0, x, y + h - 1);    a.setPoint(1, x, y);    a.setPoint(2, x, y);    a.setPoint(3, x + w - 1, y);    p->drawLineSegments(a);    if (sunken) p->setPen(black);    else p->setPen(g.button());    a.setPoint(0, x + 1, y + h - 2);    a.setPoint(1, x + 1, y + 1);    a.setPoint(2, x + 1, y + 1);    a.setPoint(3, x + w - 2, y + 1);    p->drawLineSegments(a);    if (sunken) p->setPen(g.button());    else p->setPen(g.dark());    a.setPoint(0, x + 2, y + h - 2);    a.setPoint(1, x + w - 2, y + h - 2);    a.setPoint(2, x + w - 2, y + h - 2);    a.setPoint(3, x + w - 2, y + 2);    p->drawLineSegments(a);    if (sunken) p->setPen(g.light());    else p->setPen(black);    a.setPoint(0, x + 1, y + h - 1);    a.setPoint(1, x + w - 1, y + h - 1);    a.setPoint(2, x + w - 1, y + h - 1);    a.setPoint(3, x + w - 1, y);    p->drawLineSegments(a);    if ( fill )	p->fillRect(x + 2, y + 2, w - 4, h - 4, *fill);    else	p->fillRect(x + 2, y + 2, w - 4, h - 4, QBrush(g.button()));    p->setPen(oldpen);}/*!  \reimp*/void QMotifPlusStyle::drawBevelButton(QPainter *p, int x, int y, int w, int h,				      const QColorGroup &g, bool sunken, const QBrush *fill){    drawButton(p, x, y, w, h, g, sunken, fill);}/*!  \reimp*/void QMotifPlusStyle::getButtonShift(int &x, int &y){    x = y = 0;}/*!  \reimp*/void QMotifPlusStyle::drawComboButton(QPainter *p, int x, int y, int w, int h,				 const QColorGroup &g, bool sunken,				 bool editable, bool,				 const QBrush *fill){    drawButton(p, x, y, w, h, g, sunken, fill);    if (editable) {	QRect r = comboButtonRect(x, y, w, h);	drawButton(p, r.x() - defaultFrameWidth(),		   r.y() - defaultFrameWidth(),		   r.width() + (defaultFrameWidth() * 2),		   r.height() + (defaultFrameWidth() * 2),		   g, TRUE);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久99久久| 欧美日韩免费一区二区三区视频| 欧美精品一区二区在线播放| 国产在线播放一区| 国产精品久久久久久久久免费樱桃 | 日日骚欧美日韩| 日韩视频免费观看高清在线视频| 精品午夜久久福利影院| 久久久欧美精品sm网站| 91网页版在线| 奇米在线7777在线精品| 久久久久久久久蜜桃| 成人综合在线观看| 亚洲乱码中文字幕| 欧美男同性恋视频网站| 国内精品久久久久影院一蜜桃| 久久久亚洲欧洲日产国码αv| 粉嫩欧美一区二区三区高清影视 | 国产成人在线色| 亚洲欧美日韩国产另类专区| 91精品国产综合久久蜜臀| 国内成+人亚洲+欧美+综合在线| 国产精品久久久久三级| 在线观看91精品国产麻豆| 国产高清一区日本| 亚洲国产日韩a在线播放性色| 日韩欧美中文字幕公布| av电影天堂一区二区在线观看| 亚洲一区二区三区激情| 久久无码av三级| 视频一区二区欧美| 久久精品亚洲一区二区三区浴池| av电影天堂一区二区在线观看| 午夜久久久久久久久| 国产精品免费看片| 日韩一区二区三区免费看| 91蜜桃婷婷狠狠久久综合9色| 日本伊人精品一区二区三区观看方式 | 婷婷综合在线观看| 国产精品网曝门| 欧美一区永久视频免费观看| 99精品国产91久久久久久 | 欧美国产一区在线| 69堂成人精品免费视频| 成人免费福利片| 韩国在线一区二区| 亚洲成人在线免费| 亚洲天堂中文字幕| 久久久精品综合| 欧美一二三四区在线| 在线观看视频一区二区| 91在线无精精品入口| 国产伦精品一区二区三区视频青涩 | 成人黄色在线网站| 精品一区二区三区在线观看国产| 亚洲综合激情网| 亚洲三级免费电影| 2021久久国产精品不只是精品| 欧美日韩成人综合天天影院| 91天堂素人约啪| 成人免费av资源| 国产精品12区| 国产一区美女在线| 久久精品国产免费| 日韩高清电影一区| 五月天激情综合| 午夜精品国产更新| 亚洲伊人伊色伊影伊综合网| 亚洲欧美偷拍另类a∨色屁股| 久久这里只有精品首页| 欧美www视频| 欧美不卡一区二区三区| 欧美电影免费观看完整版| 91麻豆精品国产| 欧美日韩卡一卡二| 欧美色视频在线| 欧美二区三区的天堂| 欧美日韩国产欧美日美国产精品| 精品视频一区二区三区免费| 欧美群妇大交群的观看方式| 337p粉嫩大胆噜噜噜噜噜91av | 久久精品国产秦先生| 蜜臀av性久久久久蜜臀aⅴ流畅 | 国产揄拍国内精品对白| 韩国精品一区二区| 国产精品69毛片高清亚洲| 成人美女视频在线观看| 99久久免费视频.com| 日本精品视频一区二区| 欧美三级蜜桃2在线观看| 制服丝袜激情欧洲亚洲| 2022国产精品视频| 国产精品国产精品国产专区不片| 中文字幕欧美一| 一区二区三区.www| 天天综合天天做天天综合| 日本大胆欧美人术艺术动态| 精品一区二区三区视频| 处破女av一区二区| 欧美在线三级电影| 欧美一区二区三区四区视频| 久久久久久久久久久久久女国产乱| 国产清纯在线一区二区www| 亚洲男女毛片无遮挡| 亚洲风情在线资源站| 久久精品国产久精国产爱| 成人美女在线观看| 欧美日韩国产精品成人| 久久久不卡网国产精品一区| **性色生活片久久毛片| 天天综合网天天综合色| 国产精品一区2区| 日本乱码高清不卡字幕| 日韩欧美高清dvd碟片| 国产精品午夜在线| 天天综合网天天综合色| 大美女一区二区三区| 91精品一区二区三区久久久久久| 国产免费久久精品| 午夜欧美电影在线观看| 粉嫩绯色av一区二区在线观看| 欧美性受xxxx黑人xyx性爽| 91精品国产综合久久香蕉的特点| 国产精品久久久久影院色老大| 午夜精品爽啪视频| 国产成人精品1024| 欧美一区二区三区在线视频| 中文字幕制服丝袜成人av| 日本成人在线电影网| 成人av午夜电影| 日韩欧美综合一区| 亚洲小说欧美激情另类| 国产aⅴ综合色| 日韩一本二本av| 亚洲一区在线观看免费| 欧美手机在线视频| 国产精品你懂的在线| 日本大胆欧美人术艺术动态| 色哟哟一区二区在线观看| 精品欧美黑人一区二区三区| 亚洲高清在线视频| hitomi一区二区三区精品| 欧美mv日韩mv国产| 男男视频亚洲欧美| 欧美日韩中文字幕一区二区| 国产精品免费av| 国产麻豆欧美日韩一区| 日韩欧美激情一区| 香蕉成人伊视频在线观看| 91日韩精品一区| 国产精品美女久久久久高潮| 激情综合亚洲精品| 日韩一区二区在线看| 婷婷久久综合九色综合绿巨人 | av激情综合网| 日本一区二区三区电影| 国精品**一区二区三区在线蜜桃| 日韩三级在线免费观看| 三级欧美在线一区| 欧美性色欧美a在线播放| 亚洲另类在线制服丝袜| 97精品久久久久中文字幕| 亚洲视频免费观看| 91视频www| 亚洲精品高清视频在线观看| 91女厕偷拍女厕偷拍高清| 中文字幕在线观看一区| 波多野结衣中文字幕一区二区三区 | 久久精品国产精品青草| 91精品国产色综合久久不卡蜜臀| 亚洲国产欧美日韩另类综合| 欧美在线小视频| 婷婷国产v国产偷v亚洲高清| 欧美视频精品在线| 日本女人一区二区三区| 日韩精品一区二区三区老鸭窝| 韩日av一区二区| 国产精品女人毛片| 91老师国产黑色丝袜在线| 亚洲综合偷拍欧美一区色| xf在线a精品一区二区视频网站| 免费在线观看日韩欧美| 337p粉嫩大胆噜噜噜噜噜91av| 国产精品影视在线| 国产精品毛片久久久久久久| 一本大道av伊人久久综合| 亚洲电影欧美电影有声小说| 日韩三级精品电影久久久 | 99精品视频在线观看免费| 一区二区三区成人| 91精品国产综合久久久久| 看电视剧不卡顿的网站| 亚洲国产精品二十页| 色拍拍在线精品视频8848| 婷婷综合五月天| 中文一区二区在线观看| 色婷婷狠狠综合| 蜜臀精品久久久久久蜜臀| 国产婷婷一区二区| 在线亚洲高清视频|