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

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

?? qgroupbox.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/************************************************************************ $Id: qt/src/widgets/qgroupbox.cpp   2.3.12   edited 2005-10-27 $**** Implementation of QGroupBox widget class**** Created : 950203**** 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 "qgroupbox.h"#ifndef QT_NO_GROUPBOX#include "qlayout.h"#include "qpainter.h"#include "qbitmap.h"#include "qaccel.h"#include "qradiobutton.h"#include "qfocusdata.h"#include "qobjectlist.h"#include "qdrawutil.h"#include "qapplication.h"// REVISED: arnt/*!  \class QGroupBox qgroupbox.h  \brief The QGroupBox widget provides a group box frame with a title.  \ingroup organizers  A group box provides a frame, a title and a keyboard shortcut, and  displays various other widgets inside itself.  The title is on top,  the keyboard shortcut moves keyboard focus to one of the group box'  child widgets, and the child widgets are arranged in an array inside  the frame.  The simplest way to use it is to create a group box with the desired  number of columns and orientation, and then just create widgets with  the group box as parent.  However, it is also possible to change the orientation() and number  of columns() after construction, or to ignore all the automatic  layout support and manage all that yourself.  QGroupBox also lets you set the title() (normally set in the  constructor) and if you so please, even the title's alignment().  <img src=qgrpbox-w.png>  \sa QButtonGroup*//*!  Constructs a group box widget with no title.  The \e parent and \e name arguments are passed to the QWidget constructor.  This constructor does not do automatic layout.*/QGroupBox::QGroupBox( QWidget *parent, const char *name )    : QFrame( parent, name ){    init();}/*!  Constructs a group box with a title.  The \e parent and \e name arguments are passed to the QWidget constructor.  This constructor does not do automatic layout.*/QGroupBox::QGroupBox( const QString &title, QWidget *parent, const char *name )    : QFrame( parent, name ){    init();    setTitle( title );}/*!  Constructs a group box with no title. Child widgets will be arranged  in \a strips rows or columns (depending on \a orientation).  The \e parent and \e name arguments are passed to the QWidget constructor.*/QGroupBox::QGroupBox( int strips, Orientation orientation,		    QWidget *parent, const char *name )    : QFrame( parent, name ){    init();    setColumnLayout( strips, orientation );}/*!  Constructs a group box titled \a title. Child widgets will be arranged  in \a strips rows or columns (depending on \a orientation).  The \e parent and \e name arguments are passed to the QWidget constructor.*/QGroupBox::QGroupBox( int strips, Orientation orientation,		    const QString &title, QWidget *parent,		    const char *name )    : QFrame( parent, name ){    init();    setTitle( title );    setColumnLayout( strips, orientation );}void QGroupBox::init(){    int fs;    align = AlignLeft;    fs = QFrame::Box | QFrame::Sunken;    setFrameStyle( fs );#ifndef QT_NO_ACCEL    accel = 0;#endif    vbox = 0;    grid = 0;    d = 0;	//we use d directly to store a QSpacerItem    lenvisible = 0;    nCols = nRows = 0;    dir = Horizontal;}void QGroupBox::setTextSpacer(){    QSpacerItem *sp = (QSpacerItem*)d;    if ( ! sp )	return;    int h = 0;    int w = 0;    if ( lenvisible ) {	QFontMetrics fm = fontMetrics();	h = fm.height();	w = fm.width( str, lenvisible ) + 2*fm.width( "xx" );	if ( layout() ) {	    int m = layout()->margin();	    // do we have a child layout?	    for ( QLayoutIterator it = layout()->iterator(); it.current(); ++it ) {		if ( it.current()->layout() ) {		    m += it.current()->layout()->margin();		    break;		}	    }	    if ( m > 4 )		h -= m - 4;	    h = QMAX( 0, h );	}    }    sp->changeSize( w, h, QSizePolicy::Minimum, QSizePolicy::Fixed );}/*!  Sets the group box title text to \a title, and add a focus-change  accelerator if the \a title contains & followed by an appropriate  letter.  This produces "User information" with the U underscored and  Alt-U moves the keyboard focus into the group:  \code    g->setTitle( "&User information" );  \endcode*/void QGroupBox::setTitle( const QString &title ){    if ( str == title )				// no change	return;    str = title;#ifndef QT_NO_ACCEL    if ( accel )	delete accel;    accel = 0;    int s = QAccel::shortcutKey( title );    if ( s ) {	accel = new QAccel( this, "automatic focus-change accelerator" );	accel->connectItem( accel->insertItem( s, 0 ),			    this, SLOT(fixFocus()) );    }#endif    calculateFrame();    setTextSpacer();    if ( layout() ) {	layout()->activate();	QSize s( size() );	QSize ms( minimumSizeHint() );	resize( QMAX( s.width(), ms.width() ),		QMAX( s.height(), ms.height() ) );    }    update();    updateGeometry();}/*!  \fn QString QGroupBox::title() const  Returns the group box title text.*//*!  \fn int QGroupBox::alignment() const  Returns the alignment of the group box title.  The default alignment is \c AlignLeft.  \sa setAlignment(), Qt::AlignmentFlags*//*!  Sets the alignment of the group box title.  The title is always placed on the upper frame line, however,  the horizontal alignment can be specified by the \e alignment parameter.  The \e alignment is one of the following flags:  <ul>  <li> \c AlignLeft aligns the title text to the left.  <li> \c AlignRight aligns the title text to the right.  <li> \c AlignHCenter aligns the title text centered.  </ul>  \sa alignment(), Qt::AlignmentFlags*/void QGroupBox::setAlignment( int alignment ){    align = alignment;    update();}/*! \reimp*/void QGroupBox::resizeEvent( QResizeEvent *e ){    QFrame::resizeEvent(e);    calculateFrame();}/*! \reimp  \internal  overrides QFrame::paintEvent*/void QGroupBox::paintEvent( QPaintEvent *event ){    QPainter paint( this );    if ( lenvisible ) {					// draw title	QFontMetrics fm = paint.fontMetrics();	int h = fm.height();	int tw = fm.width( str, lenvisible ) + 2*fm.width(QChar(' '));	int x;	if ( align & AlignHCenter )		// center alignment	    x = frameRect().width()/2 - tw/2;	else if ( align & AlignRight )	// right alignment	    x = frameRect().width() - tw - 8;	else				// left alignment	    x = 8;	qDrawItem( &paint, style(), x, 0, tw, h, AlignCenter + ShowPrefix,		   colorGroup(), isEnabled(), 0, str, lenvisible, 0 );	QRect r( x, 0, tw, h );	paint.setClipRegion( event->region().subtract( r ) );	// clip everything but title    }    drawFrame( &paint );			// draw the frame    drawContents( &paint );			// draw the contents}/*! \reimp */void QGroupBox::updateMask(){    QRegion reg( rect() );    int len = str.length();    if ( len ) {	QFontMetrics fm = fontMetrics();	int h = fm.height();	int tw = 0;	while ( len ) {	    tw = fm.width( str, len ) + 2 * fm.width( QChar(' ') );	    if ( tw < rect().width() )		break;	    len--;	}	int x;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
青娱乐精品视频在线| 欧美日韩你懂得| 欧美国产视频在线| 国产91综合网| 综合久久久久久| 欧美三电影在线| 偷拍与自拍一区| 精品国产123| 97久久超碰国产精品电影| 一区二区在线看| 欧美精品欧美精品系列| 九九在线精品视频| 亚洲美女偷拍久久| 欧美日本韩国一区| 国产一区二区日韩精品| 国产精品蜜臀在线观看| 欧美日韩一二三| 国产91高潮流白浆在线麻豆| 中文字幕av在线一区二区三区| 色综合视频一区二区三区高清| 午夜av区久久| 日韩伦理电影网| 日韩欧美一区二区视频| 国产美女娇喘av呻吟久久| 亚洲视频中文字幕| 久久综合久久综合九色| 在线亚洲一区二区| 美女一区二区视频| 一级中文字幕一区二区| 日韩精品一区在线观看| 国产欧美精品一区aⅴ影院| 欧美另类一区二区三区| av在线免费不卡| 国产精品自拍三区| 日韩极品在线观看| 一区二区三区免费网站| 国产精品久久久久久福利一牛影视| 国产精品美女一区二区| 国产日韩精品一区二区浪潮av| 欧美一二三在线| 欧美高清视频一二三区 | 国产激情一区二区三区四区| 秋霞午夜鲁丝一区二区老狼| 亚洲国产一二三| 亚洲国产裸拍裸体视频在线观看乱了| 中文字幕第一区二区| 中文字幕av免费专区久久| 国产婷婷色一区二区三区四区 | 久久精品国产网站| 久久精品久久精品| 精品无码三级在线观看视频 | 爽爽淫人综合网网站| 五月天欧美精品| 免费人成网站在线观看欧美高清| 蜜桃久久久久久久| 狠狠狠色丁香婷婷综合激情| 老司机一区二区| 国产成人免费视频网站高清观看视频| 国产精品一区二区久激情瑜伽| 国产精品一区二区视频| 色又黄又爽网站www久久| 欧美日韩一区中文字幕| 亚洲一二三区视频在线观看| 另类小说图片综合网| 日本不卡在线视频| 国产精品蜜臀av| 亚洲国产美国国产综合一区二区| 国产精一区二区三区| 6080亚洲精品一区二区| 欧美日韩综合在线免费观看| 日韩一区二区在线观看| 久久影院午夜片一区| 亚洲日本在线视频观看| 午夜精品福利在线| 国产乱码精品一区二区三区忘忧草 | 一区二区三区日韩欧美精品| 日本午夜精品视频在线观看| 99天天综合性| 国产亚洲精品bt天堂精选| 免费在线观看日韩欧美| 日本韩国欧美国产| 日韩欧美一区二区视频| 激情五月激情综合网| 久久综合九色综合欧美就去吻| 久久国产三级精品| 精品裸体舞一区二区三区| 午夜精品久久一牛影视| 欧美一区二区三区免费视频| 亚洲柠檬福利资源导航| 99久精品国产| 中文字幕在线视频一区| 国产成人在线影院| 国产精品视频观看| 99re热这里只有精品免费视频| 国产精品天美传媒| 色久优优欧美色久优优| 伊人开心综合网| 欧美日韩精品免费| 蜜桃一区二区三区四区| 久久久亚洲午夜电影| 成人精品鲁一区一区二区| 国产精品国产三级国产普通话99 | 成人精品小蝌蚪| 国产精品不卡在线观看| 欧美图片一区二区三区| 日韩av中文字幕一区二区| 精品国产青草久久久久福利| 精品一区二区三区在线播放视频| 精品福利在线导航| 在线成人高清不卡| 精品一区二区综合| 国产精品乱码久久久久久| 欧洲精品在线观看| 国产老妇另类xxxxx| 亚洲色图视频网| 精品免费一区二区三区| 在线观看不卡一区| 激情五月激情综合网| 亚洲视频一区二区在线| 欧美日韩夫妻久久| 91一区二区在线观看| 麻豆国产精品视频| 亚洲一线二线三线视频| 国产午夜亚洲精品羞羞网站| 欧美日韩日日骚| 91在线观看污| 成人av电影观看| 国产不卡在线一区| 国产精品一区三区| 国产欧美日韩视频一区二区| 日韩欧美久久一区| 正在播放一区二区| 欧美日韩aaaaaa| 一本色道久久综合亚洲aⅴ蜜桃 | 国产99久久久国产精品潘金 | 亚洲国产精品成人久久综合一区| 久久不见久久见免费视频7| 日本一区二区三区免费乱视频| 国产精品乱子久久久久| 亚洲一区影音先锋| 日日噜噜夜夜狠狠视频欧美人| 亚洲18色成人| 国产中文字幕精品| 成人美女在线视频| 91偷拍与自偷拍精品| 在线日韩av片| 91精品国产黑色紧身裤美女| 欧美一级欧美一级在线播放| 欧美一卡二卡三卡| 中文字幕一区视频| 视频一区二区三区入口| 麻豆成人在线观看| 国产传媒日韩欧美成人| 欧美综合视频在线观看| 日韩欧美的一区| 亚洲一区二区三区中文字幕在线| 亚洲美女偷拍久久| 天天操天天干天天综合网| 美女视频黄 久久| 成人午夜在线免费| 欧美一区二区视频观看视频| 久久久无码精品亚洲日韩按摩| 一区二区三区蜜桃网| 成人晚上爱看视频| 日韩免费看的电影| 日韩精品91亚洲二区在线观看| 国产精品 日产精品 欧美精品| 成人妖精视频yjsp地址| 色呦呦国产精品| 国产精品水嫩水嫩| 日韩av电影天堂| 99精品欧美一区二区蜜桃免费| 欧美亚洲国产bt| 国产欧美一区二区三区网站| 肉丝袜脚交视频一区二区| 91丨九色丨蝌蚪丨老版| 26uuu另类欧美亚洲曰本| 亚洲综合色婷婷| 成人黄色小视频在线观看| 日韩久久久精品| 免费不卡在线视频| 欧美老女人在线| 亚洲国产美国国产综合一区二区| 懂色av一区二区三区免费观看| 日韩一级二级三级精品视频| 亚洲线精品一区二区三区八戒| www.欧美.com| 国产精品入口麻豆原神| 国产成人精品三级麻豆| 久久九九久久九九| 久久99蜜桃精品| 久久久久久**毛片大全| 国产精品一二三| 欧美经典一区二区| 成人精品一区二区三区四区 | 视频在线观看一区| 3d动漫精品啪啪| 久久国产免费看| 中文字幕第一区综合| 99久久精品免费看|