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

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

?? qbuttongroup.cpp

?? qtopia-phone-2.2.0下公共的控件實(shí)現(xiàn)源代碼。
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/****************************************************************************** $Id: qt/src/widgets/qbuttongroup.cpp   2.3.12   edited 2005-10-27 $**** Implementation of QButtonGroup class**** Created : 950130**** 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 "qbuttongroup.h"#ifndef QT_NO_BUTTONGROUP#include "qbutton.h"#include "qlist.h"#include "qradiobutton.h"#include "qapplication.h"#ifdef QT_KEYPAD_MODEextern bool qt_modalEditingEnabled;#endif// NOT REVISED/*!  \class QButtonGroup qbuttongroup.h  \brief The QButtonGroup widget organizes QButton widgets in a group.  \ingroup organizers  A button group widget makes it easier to deal with groups of  buttons.  A button in a button group is associated with a unique  identifer. The button group emits a clicked() signal with this  identifier when the button is clicked. Thus, a button group is an  ideal solution when you have several similar buttons and want to  connect all their clicked() signals, for example, to one slot.  An \link setExclusive() exclusive\endlink button group switches off  all toggle buttons except the one that was clicked. A button group  is by default non-exclusive. All \link QRadioButton radio  buttons\endlink that are \link insert() inserted\endlink, will be  mutually exclusive even if the button group is non-exclusive.  There are two ways of using a button group:  <ol>  <li>The button group is a parent widget of a number of buttons,  i.e. the button group is the parent argument in the button constructor.  The buttons are assigned identifiers 0, 1, 2 etc. in the order they are  created. A QButtonGroup can display a frame and a title because it inherits  QGroupBox.  <li>The button group is an invisible widget and the contained buttons  have some other parent widget.  A button must then be manually inserted  using the insert() function with an identifer.  </ol>  <img src=qbttngrp-m.png> <img src=qbttngrp-w.png>  \sa QButton, QPushButton, QCheckBox, QRadioButton*/struct QButtonItem{    QButton *button;    int	     id;};class QButtonList: public QList<QButtonItem>{public:    QButtonList() {}   ~QButtonList() {}};typedef QListIterator<QButtonItem> QButtonListIt;/*!  Constructs a button group with no title.  The \e parent and \e name arguments are passed to the QWidget constructor.*/QButtonGroup::QButtonGroup( QWidget *parent, const char *name )    : QGroupBox( parent, name ){    init();}/*!  Constructs a button group with a title.  The \e parent and \e name arguments are passed to the QWidget constructor.*/QButtonGroup::QButtonGroup( const QString &title, QWidget *parent,			    const char *name )    : QGroupBox( title, parent, name ){    init();}/*!  Constructs a button group 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.*/QButtonGroup::QButtonGroup( int strips, Orientation orientation,			    QWidget *parent, const char *name )    : QGroupBox( strips, orientation, parent, name ){    init();}/*!  Constructs a button group with a \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.*/QButtonGroup::QButtonGroup( int strips, Orientation orientation,			    const QString &title, QWidget *parent,			    const char *name )    : QGroupBox( strips, orientation, title, parent, name ){    init();}/*!  Initializes the button group.*/void QButtonGroup::init(){    buttons = new QButtonList;    CHECK_PTR( buttons );    buttons->setAutoDelete( TRUE );    excl_grp = FALSE;    radio_excl = TRUE;}/*! \reimp */QButtonGroup::~QButtonGroup(){    QButtonList * tmp = buttons;    QButtonItem *bi = tmp->first();    buttons = 0;    while( bi ) {	bi->button->setGroup(0);	bi = tmp->next();    }    delete tmp;}/*!  Returns TRUE if the button group is exclusive, otherwise FALSE.  \sa setExclusive()*/bool QButtonGroup::isExclusive() const{    return excl_grp;}/*!  Sets the button group to be exclusive if \e enable is TRUE,  or to be non-exclusive if \e enable is FALSE.  An exclusive button group switches off all other toggle buttons when  one is switched on. This is ideal for groups of \link QRadioButton  radio buttons\endlink. A non-exclusive group allow many buttons to be  switched on at the same time.  The default setting is FALSE.  \sa isExclusive()*/void QButtonGroup::setExclusive( bool enable ){    excl_grp = enable;}/*!  Inserts a button with the identifier \e id into the button group.  Returns the button identifier.  It is not necessary to manually insert buttons that have this button  group as their parent widget. An exception is when you want custom  identifiers instead of the default 0, 1, 2 etc.  The button is assigned the identifier \e id or an automatically  generated identifier.	 It works as follows: If \e id >= 0, this  identifier is assigned.  If \e id == -1 (default), the identifier is  equal to the number of buttons in the group.	If \e id is any other  negative integer, for instance -2, a unique identifier (negative  integer \<= -2) is generated.  Inserting several buttons with \e id = -1 assigns the identifiers 0,  1, 2, etc.  \sa find(), remove(), setExclusive()*/int QButtonGroup::insert( QButton *button, int id ){    if ( button->group() )	button->group()->remove( button );    static int seq_no = -2;    QButtonItem *bi = new QButtonItem;    CHECK_PTR( bi );    if ( id < -1 )	bi->id = seq_no--;    else if ( id == -1 )	bi->id = buttons->count();    else	bi->id = id;    bi->button = button;    button->setGroup(this);    buttons->append( bi );    connect( button, SIGNAL(pressed()) , SLOT(buttonPressed()) );    connect( button, SIGNAL(released()), SLOT(buttonReleased()) );    connect( button, SIGNAL(clicked()) , SLOT(buttonClicked()) );    connect( button, SIGNAL(toggled(bool)) , SLOT(buttonToggled(bool)) );#ifdef QT_KEYPAD_MODE    if( !qt_modalEditingEnabled )#endif    if ( button->isToggleButton() && !button->isOn() &&	 selected() && (selected()->focusPolicy() & TabFocus) != 0 )	button->setFocusPolicy( (FocusPolicy)(button->focusPolicy() &					      ~TabFocus) );    return bi->id;}/*!  Returns the number of buttons in the group.*/int QButtonGroup::count() const{    return buttons->count();}/*!  Removes a button from the button group.  \sa insert()*/void QButtonGroup::remove( QButton *button ){    if ( !buttons )	return;    QButtonListIt it( *buttons );    QButtonItem *i;    while ( (i=it.current()) != 0 ) {	++it;	if ( i->button == button ) {	    buttons->remove( i );	    button->setGroup(0);	    button->disconnect( this );	    return;	}    }}/*!  Finds and returns a pointer to the button with the specified identifier  \e id.  Returns null if the button was not found.*/QButton *QButtonGroup::find( int id ) const{    // introduce a QButtonListIt if calling anything    for ( QButtonItem *i=buttons->first(); i; i=buttons->next() )	if ( i->id == id )	    return i->button;    return 0;}/*!  \fn void QButtonGroup::pressed( int id )

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品999| 欧美日韩免费高清一区色橹橹| 99r国产精品| 日韩精品最新网址| 亚洲国产成人tv| 99久久精品久久久久久清纯| 日韩欧美电影一区| 午夜视频久久久久久| 99re66热这里只有精品3直播 | 国产成人精品免费| 91精品免费观看| 亚洲综合999| av影院午夜一区| 国产欧美日韩另类一区| 久久99精品久久久久久久久久久久| 欧美少妇bbb| 一区二区三区 在线观看视频| 成人动漫在线一区| 国产性天天综合网| 国产一区二区三区在线观看精品 | 国产成人精品一区二区三区四区| 在线播放视频一区| 亚洲国产aⅴ天堂久久| 在线视频你懂得一区| 日韩理论片中文av| 91美女精品福利| 一区二区三区免费在线观看| 99久久久久久| 亚洲同性同志一二三专区| 99精品欧美一区二区三区小说| 国产欧美日韩不卡| 国产不卡在线视频| 日韩美女啊v在线免费观看| 92精品国产成人观看免费| 亚洲青青青在线视频| 一本一道波多野结衣一区二区| 亚洲视频电影在线| 欧洲视频一区二区| 日韩成人dvd| 日韩精品中午字幕| 国产成人自拍在线| 亚洲欧洲精品一区二区精品久久久| 97精品国产97久久久久久久久久久久| 国产精品乱人伦| 欧美午夜精品一区二区蜜桃| 性欧美大战久久久久久久久| 日韩一区二区电影在线| 国产精品18久久久久久久久 | 久久av中文字幕片| 国产婷婷色一区二区三区四区| proumb性欧美在线观看| 一区二区三区四区在线播放| 在线不卡免费欧美| 国产河南妇女毛片精品久久久| 国产精品国产自产拍高清av王其| 91视视频在线直接观看在线看网页在线看 | 国产精品乱码一区二区三区软件| 99re6这里只有精品视频在线观看| 一区二区三区电影在线播| 欧美一区二区免费观在线| 国产在线播放一区三区四| 亚洲色图一区二区三区| 91精品国产综合久久福利| 国产不卡在线播放| 五月天激情综合| 中文久久乱码一区二区| 欧美老肥妇做.爰bbww| 国产精品中文字幕欧美| 亚洲一级电影视频| 久久久久亚洲蜜桃| 精品视频在线免费看| 国产乱人伦偷精品视频不卡| 亚洲国产视频a| 国产欧美日韩在线| 日韩片之四级片| 91蜜桃在线观看| 国产成人综合在线播放| 石原莉奈一区二区三区在线观看| 国产精品久久久久影院老司 | 国产精品久久久一本精品| 91精品国产综合久久蜜臀| 99久久99久久免费精品蜜臀| 激情综合一区二区三区| 亚洲国产欧美日韩另类综合| 欧美高清一级片在线观看| 9191国产精品| 91精品福利视频| 91在线免费播放| 国产激情视频一区二区三区欧美 | 精品影视av免费| 亚洲18色成人| 亚洲九九爱视频| 欧美国产日产图区| 欧美成人精品福利| 欧美另类z0zxhd电影| 在线欧美日韩精品| 91伊人久久大香线蕉| 国产精品66部| 国产经典欧美精品| 久久av资源网| 另类小说综合欧美亚洲| 男女性色大片免费观看一区二区 | 亚洲一区二区视频在线| 亚洲欧美日韩在线| 国产精品久久久久国产精品日日| 精品成人私密视频| 久久综合精品国产一区二区三区 | 欧美精品视频www在线观看 | 久久先锋影音av鲁色资源| 欧美一级日韩不卡播放免费| 欧美精品一二三四| 欧美一区二区三区小说| 欧美男生操女生| 欧美一区二区三区在线观看| 欧美高清www午色夜在线视频| 欧美日韩第一区日日骚| 欧美日韩免费在线视频| 欧美日韩不卡在线| 9191精品国产综合久久久久久 | 蜜臀久久久99精品久久久久久| 亚洲福利视频一区| 亚欧色一区w666天堂| 日韩成人精品视频| 激情丁香综合五月| 高清国产一区二区| 色综合亚洲欧洲| 欧美在线free| 91精品综合久久久久久| 久久精品男人天堂av| 国产亚洲短视频| 1024成人网色www| 亚洲国产精品一区二区尤物区| 婷婷综合在线观看| 韩国av一区二区| 色综合久久久久久久久久久| 欧美喷水一区二区| 国产视频一区二区在线| 国产精品久久久久久久久搜平片| 亚洲日本免费电影| 蜜桃视频在线观看一区| 国产一区二区三区不卡在线观看| 懂色av一区二区三区免费观看| 在线视频你懂得一区二区三区| 91精品欧美久久久久久动漫| 久久久噜噜噜久噜久久综合| 亚洲天堂福利av| 久久国产夜色精品鲁鲁99| eeuss鲁片一区二区三区在线看| 欧美午夜精品久久久久久孕妇| 日韩精品一区二区三区在线观看| 日本一二三不卡| 免费精品99久久国产综合精品| 丁香激情综合国产| 欧美一卡在线观看| 亚洲免费资源在线播放| 国产一区美女在线| 欧美日韩精品专区| 亚洲视频一二三| 国产在线播放一区三区四| 欧美三级三级三级爽爽爽| 国产精品色一区二区三区| 奇米一区二区三区av| 在线中文字幕不卡| 久久精品亚洲一区二区三区浴池| 天天av天天翘天天综合网色鬼国产| 国产一区二区三区久久久| 欧美日韩精品一区二区三区蜜桃| 久久久.com| 精品一二三四在线| 欧美精品黑人性xxxx| 一区二区三区加勒比av| 日韩一区在线看| 国产午夜亚洲精品午夜鲁丝片| 日韩美女视频一区二区| 国内精品写真在线观看| 欧美日韩国产中文| 一区二区三区四区高清精品免费观看 | 色婷婷国产精品| 国产精品二三区| 日本韩国欧美在线| 午夜一区二区三区在线观看| 欧美精品一二三| 精品中文字幕一区二区小辣椒| 久久久久久免费网| av在线一区二区| 亚洲国产日韩在线一区模特| 欧美一二区视频| 国产成人精品三级麻豆| 亚洲欧美乱综合| 91精品国产综合久久久久久久久久| 久久精品国产亚洲高清剧情介绍 | 婷婷开心久久网| 亚洲精品一线二线三线| 成人免费高清视频在线观看| 亚洲夂夂婷婷色拍ww47| 欧美日韩高清一区| 老司机免费视频一区二区三区| 国产精品私人自拍| 91精品国产色综合久久| 成人一级片网址|