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

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

?? qinterlacestyle.cpp

?? qtopia-phone-2.2.0下公共的控件實(shí)現(xiàn)源代碼。
?? CPP
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/****************************************************************************** $Id: qt/src/widgets/qinterlacestyle.cpp   2.3.12   edited 2005-10-27 $**** Implementation of QQInterlaceStyle widget class**** Created : 22 January 2001**** Copyright (C) 1992-2001 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 "qinterlacestyle.h"#ifndef QT_NO_STYLE_INTERLACE#include <qapplication.h>#include <qpainter.h>#include <qdrawutil.h> // for now#include <qpalette.h> // for now#include <qwidget.h>#include <qlabel.h>#include <qpushbutton.h>#include <qwidget.h>#include <qrangecontrol.h>#include <qscrollbar.h>#include <qlistbox.h>#include <limits.h>/*!  \class QInterlaceStyle qinterlacestyle.h  \brief Look and Feel suitable for interlaced displays  \ingroup appearance  This class implements a look and feel that reduces flicker as much as  possible on interlaced displays (i.e. television).  It is an experimental  style.  In addition to using this style you will need to select a font  that does not flicker.*//*!  Constructs a QInterlaceStyle*/QInterlaceStyle::QInterlaceStyle() : QMotifStyle(){    setButtonDefaultIndicatorWidth( 0 );    setUseHighlightColors( TRUE );    setSliderThickness(18);    setScrollBarExtent(18);}int QInterlaceStyle::defaultFrameWidth() const{    return 2;}/*!  \reimp */void QInterlaceStyle::polish( QApplication *app){    oldPalette = app->palette();#if 0    QColor bg( 128, 64, 128 );    QColor btn( 255, 145, 0 );    QColor mid = bg.dark( 120 );    QColor low = mid.dark( 120 );    QColor fg( white );#else    QColor bg( 224, 224, 224 );    QColor btn = bg.dark( 105 );    QColor mid = bg.dark( 120 );    QColor low = mid.dark( 120 );    QColor fg( black );#endif    QColorGroup cg( fg, btn, low, low, mid, black, black, white, bg );    cg.setColor( QColorGroup::Highlight, QColor( 255, 255, 192 ) );    cg.setColor( QColorGroup::HighlightedText, black );    QColorGroup dcg( cg );    dcg.setColor( QColorGroup::ButtonText, low );    dcg.setColor( QColorGroup::Text, low );    app->setPalette( QPalette( cg, dcg, cg ), TRUE );}/*!  \reimp */void QInterlaceStyle::unPolish( QApplication *app){    app->setPalette(oldPalette, TRUE);}/*!  \reimp */void QInterlaceStyle::polish( QWidget* w){   // the polish function sets some widgets to transparent mode and    // some to translate background mode in order to get the full    // benefit from the nice pixmaps in the color group.    if ( w->inherits("QLCDNumber") ){	return;    }    if ( !w->isTopLevel() ) {	if ( w->inherits("QGroupBox")	     || w->inherits("QTabWidget") 	     || w->inherits("QPushButton") ) {	    w->setAutoMask( TRUE );	    return;	} 	if (w->inherits("QLabel") 	    || w->inherits("QSlider") 	    || w->inherits("QButton")	    || w->inherits("QProgressBar")	    ){	    w->setBackgroundOrigin( QWidget::ParentOrigin ); 	}    }    if ( w->inherits( "QFrame" ) ) {	QFrame *f = (QFrame *)w;	switch ( f->frameShape() ) {	    case QFrame::WinPanel:		f->setFrameShape( QFrame::StyledPanel );	    case QFrame::Panel:	    case QFrame::Box:	    case QFrame::StyledPanel:	    case QFrame::PopupPanel:		if ( f->frameWidth() == 1 )		    f->setLineWidth( 2 );		break;	    default:		break;	}    }    if ( w->inherits( "QListBox" ) ) {	// the list box in combos has an ugly border otherwise	QFrame *f = (QFrame *)w;	if ( f->frameShadow() == QFrame::Plain ) {	    f->setFrameShadow( QFrame::Raised );	    f->setLineWidth( 1 );	}    }}/*!  \reimp*/void QInterlaceStyle::unPolish( QWidget* w){   // the polish function sets some widgets to transparent mode and    // some to translate background mode in order to get the full    // benefit from the nice pixmaps in the color group.    if ( w->inherits("QLCDNumber") ){	return;    }    if ( !w->isTopLevel() ) {	if ( w->inherits("QGroupBox")	     || w->inherits("QTabWidget") 	     || w->inherits("QPushButton" ) ) {	    w->setAutoMask( FALSE );	    return;	} 	if (w->inherits("QLabel") 	    || w->inherits("QSlider") 	    || w->inherits("QButton")	    || w->inherits("QProgressBar")	    ){	    w->setBackgroundOrigin( QWidget::WidgetOrigin ); 	}    }}/*!  \reimp*/QRect QInterlaceStyle::pushButtonContentsRect( QPushButton *btn ){    int fw = 0;    if ( btn->isDefault() || btn->autoDefault() )	fw = buttonDefaultIndicatorWidth();	         return buttonRect( fw+5, fw, btn->width()-2*fw-10, btn->height()-2*fw );}/*!  \reimp*/void QInterlaceStyle::drawFocusRect ( QPainter *p, const QRect &/*r*/, const QColorGroup &g, const QColor * bg, bool /*atBorder*/ ){    if (bg ) {	int h,s,v;	bg->hsv(&h,&s,&v);	if (v >= 128)	    p->setPen( Qt::black );	else	    p->setPen( Qt::white );    }    else	p->setPen( g.foreground() );/*    p->setBrush( NoBrush );    if ( atBorder ) {	p->drawRect( QRect( r.x()+1, r.y()+2, r.width()-2, r.height()-4 ) );	p->drawRect( QRect( r.x()+2, r.y()+1, r.width()-4, r.height()-2 ) );    } else {	p->drawRect( QRect( r.x(), r.y()+1, r.width(), r.height()-2 ) );	p->drawRect( QRect( r.x()+1, r.y(), r.width()-2, r.height() ) );    }*/}/*!  \reimp*/void QInterlaceStyle::drawButton( QPainter *p, int x, int y, int w, int h,			     const QColorGroup &g, bool /*sunken*/, const QBrush *fill){    const int lineWidth = 2;    p->setBrush( g.brush( QColorGroup::Dark ) );    p->setPen( NoPen );    p->drawRect( x+1, y+1, 2, 2 );    p->drawRect( x+w-3, y+1, 2, 2 );    p->drawRect( x+1, y+h-3, 2, 2 );    p->drawRect( x+w-3, y+h-3, 2, 2 );    p->drawRect( x+2, y, w-4, 2 );    p->drawRect( x+2, y+h-lineWidth, w-4, lineWidth );    p->drawRect( x, y+2, lineWidth, h-4 );    p->drawRect( x+w-lineWidth, y+2, lineWidth, h-4 );    if ( fill ) {	x += 2;	y += 2;	w -= 4;	h -= 4;	p->setBrush( *fill );	p->setPen( NoPen );	p->drawRect( x+1, y, w-2, 1 );	p->drawRect( x, y+1, w, h-2 );	p->drawRect( x+1, y+h-1, w-2, 1 );    }}void QInterlaceStyle::drawButtonMask ( QPainter * p, int x, int y, int w, int h ){    QBrush fill( color1 );    QColorGroup cg;    cg.setBrush( QColorGroup::Dark, color1 );    drawButton( p, x, y, w, h, cg, FALSE, &fill );}/*!  \reimp*/void QInterlaceStyle::drawBevelButton( QPainter *p, int x, int y, int w, int h,				const QColorGroup &g, bool sunken, const QBrush* fill){    QInterlaceStyle::drawButton(p, x, y, w, h, g, sunken, fill);}/*!  \reimp*/void QInterlaceStyle::drawPushButton( QPushButton* btn, QPainter *p){    QColorGroup g = btn->colorGroup();    int x1, y1, x2, y2;    btn->rect().coords( &x1, &y1, &x2, &y2 );	// get coordinates    QBrush fill( g.button() );    if ( btn->isDown() || btn->isOn() )	fill = g.mid();    if ( btn->hasFocus() )	g.setBrush( QColorGroup::Dark, black );    drawButton( p, x1, y1, x2-x1+1, y2-y1+1, g, FALSE, &fill );	    if ( btn->isMenuButton() ) {	int dx = (y1-y2-4)/3;	drawArrow( p, DownArrow, FALSE,		   x2 - dx, dx, y1, y2 - y1,		   g, btn->isEnabled() );    }    if ( p->brush().style() != NoBrush )	p->setBrush( NoBrush );}/*!  \reimp*/QSize QInterlaceStyle::indicatorSize () const{    return QSize(13,13);}/*!  \reimp*/void QInterlaceStyle::drawIndicator( QPainter * p, int x, int y, int w, int h, const QColorGroup &g, int s, bool down, bool enabled ){    p->fillRect( x, y, w, h, g.brush( QColorGroup::Background ) );    QBrush fill;    if ( s == QButton::NoChange ) {	QBrush b = p->brush();	QColor c = p->backgroundColor();	p->setBackgroundMode( TransparentMode );	p->setBackgroundColor( green );	fill = QBrush(g.base(), Dense4Pattern);	p->setBackgroundColor( c );	p->setBrush( b );    } else if ( down )	fill = g.brush( QColorGroup::Button );    else	fill = g.brush( enabled ? QColorGroup::Base : QColorGroup::Background );    drawButton( p, x, y, w, h, g, FALSE, &fill );    if ( s != QButton::Off ) {	QPointArray a( 7*2 );	int i, xx, yy;	xx = x+3;	yy = y+5;	for ( i=0; i<3; i++ ) {	    a.setPoint( 2*i,   xx, yy );	    a.setPoint( 2*i+1, xx, yy+2 );	    xx++; yy++;	}	yy -= 2;	for ( i=3; i<7; i++ ) {	    a.setPoint( 2*i,   xx, yy );	    a.setPoint( 2*i+1, xx, yy+2 );	    xx++; yy--;	}	if ( s == QButton::NoChange ) {	    p->setPen( g.dark() );	} else {	    p->setPen( g.text() );	}	p->drawLineSegments( a );    }}/*!  \reimp*/void QInterlaceStyle::drawIndicatorMask( QPainter *p, int x, int y, int w, int h, int ){    drawButtonMask( p, x, y, w, h );}/*!  \reimp*/QSize QInterlaceStyle::exclusiveIndicatorSize() const{    return QSize(13,13);

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品国产精品国产专区不片| 亚洲精品在线观看视频| 国产精品69毛片高清亚洲| 国产精品国产三级国产普通话蜜臀 | 欧美日韩精品三区| 日韩黄色免费网站| 狠狠色2019综合网| 99综合电影在线视频| 欧美午夜不卡视频| 久久综合九色综合97婷婷| 久久精品无码一区二区三区| 国产精品久久久久久久浪潮网站| 亚洲一区二区三区中文字幕在线| 午夜视黄欧洲亚洲| 国产在线视视频有精品| 日本欧美肥老太交大片| 床上的激情91.| 欧美日韩在线播放一区| 欧美一区二区久久久| 欧美精品久久一区| 欧美一区二区三区免费视频 | 国产精品不卡在线观看| 亚洲精品国产高清久久伦理二区| 欧美国产一区二区| xnxx国产精品| 国产女人18毛片水真多成人如厕| 日韩欧美综合在线| 午夜视频一区二区| 色88888久久久久久影院按摩 | 亚洲免费观看高清完整版在线观看| 日韩欧美综合一区| 午夜亚洲国产au精品一区二区| 国产91丝袜在线18| 日韩一区二区精品在线观看| 欧美一区二区国产| 6080日韩午夜伦伦午夜伦| 久久久三级国产网站| 奇米影视7777精品一区二区| 日韩欧美一区电影| 国产精品资源网| 欧美高清一级片在线| 亚洲欧美一区二区三区久本道91| 午夜精品福利视频网站| 国产福利一区二区| 欧美午夜精品免费| 亚洲三级在线播放| 91小视频免费观看| 亚洲午夜一区二区三区| 678五月天丁香亚洲综合网| 日韩中文欧美在线| 国产精品日日摸夜夜摸av| 91搞黄在线观看| 婷婷中文字幕综合| 色噜噜夜夜夜综合网| 亚洲免费av观看| 成人av中文字幕| 中文一区二区在线观看| www.色精品| 夜夜嗨av一区二区三区中文字幕| 欧美xxxx在线观看| 国产91精品一区二区| 日本三级亚洲精品| 亚洲天堂网中文字| 久久久亚洲午夜电影| 一本色道久久综合狠狠躁的推荐 | 国产中文一区二区三区| 欧美国产视频在线| 欧美久久免费观看| 美日韩一级片在线观看| 国产偷国产偷精品高清尤物| 99精品国产视频| 国产一区二三区| 亚洲成人综合网站| 久久久久久久久岛国免费| 欧美网站一区二区| 丰满岳乱妇一区二区三区| 日日噜噜夜夜狠狠视频欧美人| 欧美一级生活片| 国产精品一区二区三区99 | 一区二区在线观看免费视频播放| 91国产成人在线| www.欧美亚洲| 国产精品亚洲午夜一区二区三区| 美女任你摸久久| 五月天激情综合网| 日韩精品电影在线| 国内精品伊人久久久久av一坑 | 精品对白一区国产伦| 欧美三级电影在线观看| 高清久久久久久| 日本少妇一区二区| 一区二区三区久久| 美女mm1313爽爽久久久蜜臀| 久久国产精品72免费观看| 久国产精品韩国三级视频| 国产麻豆视频一区| 日韩黄色在线观看| 视频一区二区三区入口| 久久99精品国产.久久久久久| 一区二区三区在线观看网站| 亚洲国产va精品久久久不卡综合| 午夜精品在线看| 国产成人综合在线| 欧美日本韩国一区| 在线成人午夜影院| 日韩欧美国产麻豆| 久久久久久久久久久99999| 日韩欧美成人一区| 亚洲天堂久久久久久久| 麻豆freexxxx性91精品| 在线观看不卡一区| 国产日韩欧美制服另类| 中文字幕第一页久久| 国产精品萝li| 一区二区三区在线视频免费| 美女爽到高潮91| 日本精品一区二区三区高清| 精品福利av导航| 日本午夜一区二区| 99在线热播精品免费| 欧美在线你懂得| 久久嫩草精品久久久精品一| 水野朝阳av一区二区三区| 国产一区二区三区美女| 国产精品99久久久久久似苏梦涵 | 一区二区三区日韩欧美| 91在线观看成人| 亚洲天堂a在线| 国产电影一区在线| 色婷婷av一区二区三区大白胸| 欧美精品色综合| 亚洲一区二区三区自拍| 国产一区二区三区最好精华液| 成人高清视频在线观看| 国产精品私房写真福利视频| 亚洲欧美日韩国产综合在线 | 久久蜜桃一区二区| 亚洲高清免费观看高清完整版在线观看 | 看片的网站亚洲| 黑人精品欧美一区二区蜜桃| 国产91精品露脸国语对白| 制服丝袜日韩国产| 婷婷成人激情在线网| 久久一夜天堂av一区二区三区| 国产一区二区三区在线观看免费视频 | 国产乱码精品一区二区三区av | 一区二区三区四区国产精品| 国产乱码字幕精品高清av| 精品国内片67194| 国产精品一区在线观看乱码| 久久亚洲精品小早川怜子| 亚洲影院理伦片| 欧美性猛片aaaaaaa做受| 久久国产精品99精品国产| 国产色91在线| 欧美视频一区二区在线观看| 青青青爽久久午夜综合久久午夜 | 日韩精品一区二区三区视频播放| 麻豆传媒一区二区三区| 国产欧美综合在线| 一本大道久久a久久综合| 奇米影视一区二区三区小说| 久久亚区不卡日本| 欧美日韩性生活| 国产精品亚洲一区二区三区在线| 中文字幕在线视频一区| 欧美精品日韩精品| 99国产一区二区三精品乱码| 亚洲福利一区二区| 久久久久久综合| 欧美日韩成人一区| 一本大道久久a久久精二百| 国产一二三精品| 青青草成人在线观看| 亚洲第一成年网| 亚洲精品免费在线| 欧美国产精品专区| 久久先锋影音av鲁色资源网| 欧美日韩视频在线第一区| 99久久精品国产一区| 国产成人免费视频一区| 美女视频免费一区| 一区二区中文视频| 亚洲欧美日韩成人高清在线一区| 国产欧美一区二区三区鸳鸯浴 | 一区二区三区中文字幕| 午夜伊人狠狠久久| 激情综合色播激情啊| 国产麻豆91精品| 在线免费观看不卡av| 欧美mv日韩mv国产网站| 午夜免费欧美电影| 成人18视频在线播放| 精品少妇一区二区三区日产乱码| 国产精品久久久久影视| 国产农村妇女精品| 欧美激情一区二区三区不卡| 日本一区二区不卡视频| 自拍偷在线精品自拍偷无码专区| 亚洲电影激情视频网站|