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

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

?? qbuttongroup.cpp

?? qtopia-phone-2.2.0下公共的控件實現(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 )

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区日韩精品中文字幕| 精品国产三级a在线观看| 国产日韩精品一区二区三区在线| 久久66热偷产精品| 自拍偷拍亚洲综合| 精品国产不卡一区二区三区| 久久97超碰国产精品超碰| 美女任你摸久久| 亚洲精品写真福利| 久久综合av免费| 日本高清成人免费播放| 国内不卡的二区三区中文字幕| 伊人一区二区三区| 国产精品美女一区二区三区| 精品一区二区日韩| 亚洲精品中文在线观看| 久久久久久一二三区| 欧美视频在线一区| voyeur盗摄精品| 国产一区不卡在线| 丝袜亚洲另类欧美| 亚洲精品中文在线影院| 国产视频亚洲色图| 亚洲精品一区二区三区99| 看片网站欧美日韩| 国产精品中文字幕日韩精品| 日韩三级视频在线看| 欧美日韩精品欧美日韩精品一| 99精品久久免费看蜜臀剧情介绍 | 久久国产精品99久久人人澡| 久久蜜桃一区二区| 精品国产凹凸成av人网站| 欧美日韩亚洲综合一区二区三区| 成人午夜视频免费看| 国产成人福利片| 男女男精品网站| 男人的天堂亚洲一区| 石原莉奈在线亚洲三区| 婷婷国产在线综合| 日本亚洲天堂网| 琪琪一区二区三区| 日韩福利电影在线| 日韩精品成人一区二区三区| 亚洲午夜久久久久久久久电影网| 日韩一区二区免费视频| 欧美性感一类影片在线播放| 国产精品系列在线播放| 99在线视频精品| 欧美性欧美巨大黑白大战| 欧美军同video69gay| 欧美日本精品一区二区三区| 欧美一区二区视频在线观看2020| 91精品国模一区二区三区| 欧美一级国产精品| 久久久99精品免费观看不卡| 国产精品天美传媒沈樵| 国产精品乱码久久久久久| 亚洲免费色视频| 亚洲超丰满肉感bbw| 精品一区二区免费看| 蓝色福利精品导航| 成人午夜精品一区二区三区| 91免费精品国自产拍在线不卡| 成人午夜又粗又硬又大| 欧美午夜精品一区二区三区| 精品理论电影在线| 国产精品色哟哟网站| 久久成人18免费观看| 日韩一区二区三区视频在线 | 日本一区二区三区dvd视频在线| 亚洲国产精品久久久久婷婷884| 91丨九色porny丨蝌蚪| 亚洲精品一区二区三区四区高清| 日韩中文字幕区一区有砖一区| 99视频精品在线| 国产精品久久久久久久第一福利| 久久精品国产精品亚洲精品| 日韩视频一区二区在线观看| 奇米在线7777在线精品| 欧美精三区欧美精三区| 一区二区在线免费观看| 欧美影视一区在线| 亚洲国产精品久久人人爱| 欧美日韩中文字幕一区| 欧美亚洲一区三区| 国产ts人妖一区二区| 欧美mv日韩mv国产| 麻豆久久久久久| 日韩欧美国产精品一区| 久久99久久久久久久久久久| 欧美精品一区二区高清在线观看| 韩国中文字幕2020精品| 国产色产综合色产在线视频| 成人视屏免费看| 亚洲激情网站免费观看| 在线电影一区二区三区| 国内精品视频一区二区三区八戒| 国产日本欧美一区二区| 91影院在线免费观看| 亚洲v中文字幕| 久久久精品人体av艺术| 99久久er热在这里只有精品66| 夜夜精品浪潮av一区二区三区| 91精品国产欧美日韩| 国产suv一区二区三区88区| 亚洲猫色日本管| 日韩限制级电影在线观看| 粗大黑人巨茎大战欧美成人| 亚洲国产一区二区a毛片| 精品欧美一区二区在线观看| 成人高清免费观看| 日韩不卡一二三区| 欧美韩国日本一区| 56国语精品自产拍在线观看| 国产精品 欧美精品| 亚洲精品乱码久久久久久日本蜜臀| 91精品久久久久久久久99蜜臂| 粉嫩av亚洲一区二区图片| 三级影片在线观看欧美日韩一区二区| 欧美成人免费网站| 日本电影欧美片| 国产·精品毛片| 午夜不卡在线视频| 中文字幕一区三区| 日韩一级高清毛片| 91色porny在线视频| 韩国精品免费视频| 视频一区中文字幕| 亚洲欧美日韩系列| 久久久99免费| 欧美日韩成人综合在线一区二区| 国产精品一区二区男女羞羞无遮挡| 樱桃国产成人精品视频| 国产三级精品视频| 日韩欧美国产一区在线观看| 欧美性大战久久久| 91猫先生在线| 国产麻豆欧美日韩一区| 老鸭窝一区二区久久精品| 玉米视频成人免费看| 亚洲欧洲av色图| 日本一区二区在线不卡| 欧美videossexotv100| 欧美日韩高清在线播放| 欧美日韩综合一区| 欧美亚洲综合在线| 欧美亚洲综合一区| 欧美亚洲动漫精品| 在线欧美一区二区| 91免费看片在线观看| 色欧美片视频在线观看在线视频| av资源网一区| 成人性生交大片免费看中文网站| 国产久卡久卡久卡久卡视频精品| 麻豆精品视频在线观看| 蜜臀av亚洲一区中文字幕| 日韩av不卡在线观看| 秋霞午夜av一区二区三区| 免费高清成人在线| 精品一区二区在线看| 狠狠色狠狠色综合系列| 国产毛片一区二区| 成人av动漫网站| 欧美亚洲国产怡红院影院| 欧美军同video69gay| 日韩一区二区三区电影| 精品国产一区二区国模嫣然| 久久久久亚洲综合| 国产精品久久久久永久免费观看 | 亚洲va中文字幕| 亚洲第一福利视频在线| 日韩国产一二三区| 极品少妇一区二区| 成人黄色免费短视频| 91成人免费网站| 91精品国产综合久久香蕉麻豆 | 久久疯狂做爰流白浆xx| 国产真实精品久久二三区| 国产原创一区二区| 成人综合婷婷国产精品久久| 91网站最新网址| 欧美人伦禁忌dvd放荡欲情| 欧美成人一区二区| 最新中文字幕一区二区三区 | 久久疯狂做爰流白浆xx| 丁香网亚洲国际| 欧美日韩一区二区三区在线 | 亚洲国产精品精华液ab| 亚洲视频在线观看一区| 日韩精品欧美成人高清一区二区| 国产一区二区三区精品视频| 色综合天天综合狠狠| 欧美一卡二卡在线| 亚洲视频香蕉人妖| 美女精品一区二区| 91久久精品一区二区三区| 日韩一区二区三区视频在线 | 亚洲影院理伦片| 日精品一区二区| k8久久久一区二区三区|