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

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

?? qcombobox.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 4 頁
字號:
		}	    }	}    } else if ( d->usingListBox() && ( object == d->listBox() ||				       object == d->listBox()->viewport() )) {	QMouseEvent *e = (QMouseEvent*)event;	switch( event->type() ) {	case QEvent::MouseMove:	    if ( !d->mouseWasInsidePopup  ) {		QPoint pos = e->pos();		if ( d->listBox()->rect().contains( pos ) )		    d->mouseWasInsidePopup = TRUE;		// Check if arrow button should toggle		// this applies only to windows style		if ( d->arrowPressed ) {		    QPoint comboPos;		    comboPos = mapFromGlobal( d->listBox()->mapToGlobal(pos) );		    if ( arrowRect().contains( comboPos ) ) {			if ( !d->arrowDown  ) {			    d->arrowDown = TRUE;			    repaint( FALSE );			}		    } else {			if ( d->arrowDown  ) {			    d->arrowDown = FALSE;			    repaint( FALSE );			}		    }		}	    } else if ((e->state() & ( RightButton | LeftButton | MidButton ) )		       == 0 && style() == WindowsStyle ){		QWidget *mouseW = QApplication::widgetAt( e->globalPos(), TRUE );		if ( mouseW == d->listBox()->viewport() ) { //###		    QMouseEvent m( QEvent::MouseMove, e->pos(), e->globalPos(),				   0, LeftButton );		    QApplication::sendEvent( object, &m ); //### Evil		    return TRUE;		}	    }	    break;	case QEvent::MouseButtonRelease:	    if ( d->listBox()->rect().contains( e->pos() ) ) {		QMouseEvent tmp( QEvent::MouseButtonDblClick,				 e->pos(), e->button(), e->state() ) ;		// will hide popup		QApplication::sendEvent( object, &tmp );		return TRUE;	    } else {		if ( d->mouseWasInsidePopup ) {		    popDownListBox();		} else {		    d->arrowPressed = FALSE;		    if ( d->arrowDown  ) {			d->arrowDown = FALSE;			repaint( FALSE );		    }		}	    }	    break;	case QEvent::MouseButtonDblClick:	case QEvent::MouseButtonPress:	    if ( !d->listBox()->rect().contains( e->pos() ) ) {#ifdef Q_WS_REPLAYSONPOPDOWN		QPoint globalPos = d->listBox()->mapToGlobal(e->pos());		if ( QApplication::widgetAt( globalPos, TRUE ) == this ) {		    d->discardNextMousePress = TRUE;		    // avoid popping up again		}#endif		popDownListBox();		return TRUE;	    }	    break;	case QEvent::KeyPress:	    switch( ((QKeyEvent *)event)->key() ) {	    case Key_Up:	    case Key_Down:		if ( !(((QKeyEvent *)event)->state() & AltButton) )		    break;	    case Key_F4:	    case Key_Escape:#ifdef QT_KEYPAD_MODE	    case Key_Back:	    case Key_No:#endif		if ( d->poppedUp ) {		    popDownListBox();		    return TRUE;		}		break;#ifdef QT_KEYPAD_MODE	    case Key_Select:#endif	    case Key_Enter:	    case Key_Return:		// work around QDialog's enter handling		return FALSE;	    default:		break;	    }	default:	    break;	}    } else if ( !d->usingListBox() && object == d->popup() ) {	QMouseEvent *e = (QMouseEvent*)event;	switch ( event->type() ) {	case QEvent::MouseButtonRelease:	    if ( d->shortClick ) {		QMouseEvent tmp( QEvent::MouseMove,				 e->pos(), e->button(), e->state() ) ;		// highlight item, but don't pop down:		QApplication::sendEvent( object, &tmp );		return TRUE;	    }	    break;	case QEvent::MouseButtonDblClick:	case QEvent::MouseButtonPress:	    if ( !d->popup()->rect().contains( e->pos() ) ) {		// remove filter, event will take down popup:		d->popup()->removeEventFilter( this );		// ### uglehack!		// call internalHighlight so the highlighed signal		// will be emitted at least as often as necessary.		// it may be called more often than necessary		internalHighlight( d->current );	    }	    break;	default:	    break;	}    }    return QWidget::eventFilter( object, event );}/*!  Returns the current maximum on-screen size of the combo box.  The  default is ten lines.  \sa setSizeLimit() count() maxCount()*/int QComboBox::sizeLimit() const{    return d ? d->sizeLimit : INT_MAX;}/*!  Sets the maximum on-screen size of the combo box to \a lines.  This  is disregarded in Motif 1.x style.  The default limit is ten lines.  If the number of items in the combo box is/grows larger than  \c lines, a list box is added.  \sa sizeLimit() count() setMaxCount()*/void QComboBox::setSizeLimit( int lines ){    d->sizeLimit = lines;}/*!  Returns the current maximum size of the combo box.  By default,  there is no limit, so this function returns INT_MAX.  \sa setMaxCount() count()*/int QComboBox::maxCount() const{    return d ? d->maxCount : INT_MAX;}/*!  Sets the maximum number of items the combo box can hold to \a count.  If \a count is smaller than the current number of items, the list is  truncated at the end.  There is no limit by default.  \sa maxCount() count()*/void QComboBox::setMaxCount( int count ){    int l = this->count();    while( --l > count )	removeItem( l );    d->maxCount = count;}/*!  Returns the current insertion policy of the combo box.  \sa setInsertionPolicy()*/QComboBox::Policy QComboBox::insertionPolicy() const{    return d->p;}/*!  Sets the insertion policy of the combo box to \a policy.  The insertion policy governs where items typed in by the user are  inserted in the list.  The possible values are <ul> <li> \c  NoInsertion: Strings typed by the user aren't inserted anywhere <li>  \c AtTop: Strings typed by the user are inserted above the top item  in the list <li> AtCurrent: Strings typed by the user replace the  last selected item <li> AtBottom: Strings typed by the user are  inserted at the bottom of the list. </ul>  The default insertion policy is \c AtBottom.  \sa insertionPolicy()*/void QComboBox::setInsertionPolicy( Policy policy ){    d->p = policy;}/*!  Internal slot to keep the line editor up to date.*/void QComboBox::returnPressed(){    QString s( d->ed->text() );    if ( s.isEmpty() ) {	d->ed->setText( text( currentItem() ) );	d->ed->selectAll();	return;    }    int c = 0;    bool doInsert = TRUE;    if ( !d->duplicatesEnabled ) {	for ( int i = 0; i < count(); ++i ) {	    if ( s == text( i ) ) {		doInsert = FALSE;		c = i;		break;	    }	}    }    if ( doInsert ) {	if ( insertionPolicy() != NoInsertion ) {	    int cnt = count();	    while ( cnt >= d->maxCount ) {		removeItem( --cnt );	    }	}		switch ( insertionPolicy() ) {	case AtCurrent:	    if ( s != text( currentItem() ) )		changeItem( s, currentItem() );	    emit activated( currentItem() );	    emit activated( s );	    return;	case NoInsertion:	    emit activated( s );	    return;	case AtTop:	    c = 0;	    break;	case AtBottom:	    c = count();	    break;	case BeforeCurrent:	    c = currentItem();	    break;	case AfterCurrent:	    c = currentItem() + 1;	    break;	}	insertItem( s, c );    }    setCurrentItem( c );    emit activated( c );    emit activated( s );}/*! \reimp*/void QComboBox::setEnabled( bool enable ){    QWidget::setEnabled( enable );}/*!  Sets this combo box to be editable only as allowed by \a v.  This function does nothing if the combo is not editable.  \sa validator() clearValidator() QValidator*/void QComboBox::setValidator( const QValidator * v ){    if ( d && d->ed )	d->ed->setValidator( v );}/*!  Returns the validator which constrains editing for this combo  box if there is any, or else 0.  \sa setValidator() clearValidator() QValidator*/const QValidator * QComboBox::validator() const{    return d && d->ed ? d->ed->validator() : 0;}/*!  This slot is equivalent to setValidator( 0 ). */void QComboBox::clearValidator(){    if ( d && d->ed )	d->ed->setValidator( 0 );}/*!  Sets the combo box to use \a newListBox instead of the current  list box or popup.  As a side effect, clears the combo box of its  current contents.  \warning QComboBox assumes that newListBox->text(n) returns  non-null for 0 \<= n \< newListbox->count().  This assumption is  necessary because of the line edit in QComboBox.*/void QComboBox::setListBox( QListBox * newListBox ){    clear();    if ( d->usingListBox() )	delete d->listBox();    else	delete d->popup();    newListBox->reparent( 0, WType_Popup, QPoint(0,0), FALSE );    d->setListBox( newListBox );    d->listBox()->setFont( font() );    d->listBox()->setAutoScrollBar( FALSE );    d->listBox()->setBottomScrollBar( FALSE );    d->listBox()->setAutoBottomScrollBar( FALSE );    d->listBox()->setFrameStyle( QFrame::Box | QFrame::Plain );    d->listBox()->setLineWidth( 1 );    d->listBox()->resize( 100, 10 );    connect( d->listBox(), SIGNAL(selected(int)),	     SLOT(internalActivate(int)) );    connect( d->listBox(), SIGNAL(highlighted(int)),	     SLOT(internalHighlight(int)));}/*!  Returns the current list box, or 0 if there is no list box  currently.  (QComboBox can use QPopupMenu instead of QListBox.)  Provided to match setListBox().  \sa setListBox()*/QListBox * QComboBox::listBox() const{    return d && d->usingListBox() ? d->listBox() : 0;}/*!  Returns the line editor, or 0 if there is no line editor currently.  Only editable listboxes have a line editor. */QLineEdit* QComboBox::lineEdit() const{    return d->ed;}/*!  Clears the line edit without changing the combo's contents.  Does  nothing if the combo isn't editable.  This is particularly handy when using a combo box as a line edit  with history.  For example you can connect the combo's activated()  signal to clearEdit() in order to present the user with a new, empty  line as soon as return is pressed.  \sa setEditText()*/void QComboBox::clearEdit(){    if ( d && d->ed )	d->ed->clear();}/*!  Sets the text in the embedded line edit to \a newText without  changing the combo's contents.  Does nothing if the combo isn't  editable.  This is useful e.g. for providing a good starting point for the  user's editing and entering the change in the combo only when the  user presses enter.  \sa clearEdit() insertItem()*/void QComboBox::setEditText( const QString &newText ){    if ( d && d->ed ) {	d->updateLinedGeometry();	d->ed->setText( newText );    }}/*!  Sets this combo box to offer auto-completion while the user is  editing if \a enable is TRUE, or not to offer auto-completion of \a  enable is FALSE (the default).  The combo box uses the list of items as candidates for completion.  Note: This will only work on editable combo boxes, so make the combo  box editable before you call this function or it will not work.  \sa autoCompletion() setEditText()*/void QComboBox::setAutoCompletion( bool enable ){    d->useCompletion = enable;    d->completeNow = FALSE;}/*!  Returns TRUE if this combo box is in auto-completion mode.  \sa setAutoCompletion()*/bool QComboBox::autoCompletion() const{    return d->useCompletion;}/*!\reimp */void QComboBox::styleChange( QStyle& s ){    d->sizeHint = QSize();  // Invalidate Size Hint    if ( d->ed )	d->updateLinedGeometry();    QWidget::styleChange( s );}/*!  Returns whether the combobox is editable or not.  \sa setEditable() */bool QComboBox::editable() const{    return d->ed != 0;}/*!  Make the input field editable, if \a y is TRUE. Otherwise the user  may only choose one of the items in the combo box.  \sa editable() */void QComboBox::setEditable( bool y ){    if ( y == editable() )	return;    if ( y ) {	if ( !d->usingListBox() )	    setUpListBox();	setUpLineEdit();	d->ed->show();    } else {	delete d->ed;	d->ed = 0;    }    setFocusPolicy( StrongFocus );    updateGeometry();    update();}void QComboBox::setUpListBox(){    d->setListBox( new QListBox( this, "in-combo", WType_Popup ) );    d->listBox()->setFont( font() );    d->listBox()->setAutoScrollBar( FALSE );    d->listBox()->setBottomScrollBar( FALSE );    d->listBox()->setAutoBottomScrollBar( FALSE );    d->listBox()->setFrameStyle( QFrame::Box | QFrame::Plain );    d->listBox()->setLineWidth( 1 );    d->listBox()->resize( 100, 10 );    connect( d->listBox(), SIGNAL(selected(int)),	     SLOT(internalActivate(int)) );    connect( d->listBox(), SIGNAL(highlighted(int)),	     SLOT(internalHighlight(int)));}void QComboBox::setUpLineEdit(){    d->ed = new QLineEdit( this, "combo edit" );    connect (d->ed, SIGNAL( textChanged(const QString&) ),	     this, SIGNAL( textChanged(const QString&) ) );    d->ed->setFrame( FALSE );    d->updateLinedGeometry();    d->ed->installEventFilter( this );    setFocusProxy( d->ed );    connect( d->ed, SIGNAL(returnPressed()), SLOT(returnPressed()) );}#endif // QT_NO_COMBOBOX

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩1区2区| 国产精品91xxx| 国产成人在线观看| 欧美在线视频你懂得| 久久―日本道色综合久久| 亚洲一区二区在线播放相泽 | 亚洲欧美日韩国产综合在线| 亚洲国产精品人人做人人爽| 成人福利视频在线看| 91小视频免费观看| 中文字幕在线免费不卡| 日韩一区精品视频| 91久久精品国产91性色tv| 国产视频不卡一区| 琪琪久久久久日韩精品| 色94色欧美sute亚洲13| 中文字幕人成不卡一区| 国产美女娇喘av呻吟久久| 日韩亚洲欧美在线| 性欧美疯狂xxxxbbbb| 色天天综合久久久久综合片| 国产精品视频看| 蜜桃一区二区三区在线观看| 欧美精品丝袜中出| 天涯成人国产亚洲精品一区av| 7777精品伊人久久久大香线蕉经典版下载 | 国产精品污污网站在线观看| 免费在线观看一区| 欧美三级电影精品| 成人欧美一区二区三区| 国产成人av网站| 国产日韩欧美一区二区三区综合| 色欧美88888久久久久久影院| 成人高清在线视频| 久久精品亚洲国产奇米99| 国产一区在线精品| 国产精品77777| 国产精品77777| 欧美日韩国产免费一区二区| 久久久久久久久99精品| 亚洲欧美综合色| 亚洲国产va精品久久久不卡综合| 欧美一区二区三区影视| 欧美一区二区三区免费大片| 欧美xxxxxxxx| 有坂深雪av一区二区精品| 美女视频一区在线观看| 色香蕉成人二区免费| 久久夜色精品国产欧美乱极品| 粉嫩绯色av一区二区在线观看 | 91丝袜高跟美女视频| 日韩一二三区视频| 亚洲一区在线看| 99久久免费国产| 久久精品欧美一区二区三区麻豆| 欧美精品123区| 亚洲精品中文字幕在线观看| 国内久久精品视频| 51久久夜色精品国产麻豆| 亚洲乱码国产乱码精品精的特点 | 不卡一区二区三区四区| 91精品国产综合久久精品| 国产精品美女一区二区三区| 日本女人一区二区三区| 欧美老女人在线| 亚洲韩国精品一区| 在线观看区一区二| 亚洲激情六月丁香| 色先锋aa成人| 成人免费在线观看入口| 成人av在线影院| 中文字幕第一区二区| 久久精品72免费观看| 欧美日韩国产一级| 亚洲成人动漫av| 色综合久久久网| 亚洲视频在线一区| 一本大道av一区二区在线播放| 美女视频第一区二区三区免费观看网站| 一区二区三区丝袜| 欧美在线免费观看视频| 亚洲午夜激情网站| 欧美日韩久久久| 亚洲妇熟xx妇色黄| 欧美一区二区在线播放| 国内一区二区视频| 国产精品美女久久久久aⅴ国产馆| 国产日产欧美精品一区二区三区| 亚洲男人的天堂在线aⅴ视频| 午夜久久久久久| 日韩欧美第一区| 国产成人精品在线看| 中文久久乱码一区二区| 在线视频一区二区免费| 老司机精品视频在线| 精品国产亚洲在线| 不卡的av电影在线观看| 亚洲精品一卡二卡| 欧美日韩高清在线播放| 麻豆精品蜜桃视频网站| 精品国免费一区二区三区| 丰满少妇久久久久久久| 中文字幕不卡在线播放| 在线观看日韩电影| 国产精一品亚洲二区在线视频| 欧美精品1区2区3区| 国产尤物一区二区在线 | 日韩精品在线网站| 丁香婷婷综合色啪| 亚洲福利电影网| 欧美狂野另类xxxxoooo| 午夜欧美大尺度福利影院在线看| 不卡一区二区中文字幕| 午夜精品久久久| 国产精品乱人伦一区二区| 欧美一区二区视频在线观看2020| 国产精品婷婷午夜在线观看| 在线观看日韩高清av| 国产高清不卡一区| 日本女人一区二区三区| 日韩视频一区二区在线观看| 欧美日韩和欧美的一区二区| 91精品国模一区二区三区| 欧美日韩在线亚洲一区蜜芽| 欧美三级视频在线播放| 欧美日本在线观看| 精品日韩av一区二区| 欧美经典三级视频一区二区三区| 欧美日韩亚州综合| 日韩午夜激情视频| 欧美成人aa大片| 久久久午夜精品理论片中文字幕| 99久久精品99国产精品| 91美女福利视频| 欧美色视频在线观看| 日韩欧美国产成人一区二区| 久久这里只有精品视频网| 亚洲欧洲精品一区二区精品久久久| 欧美精品v国产精品v日韩精品| 国产福利电影一区二区三区| av在线播放一区二区三区| 91在线视频免费观看| 7799精品视频| 欧美国产欧美亚州国产日韩mv天天看完整| 色综合久久久久综合99| 欧美日韩日本视频| 日本一区二区三区视频视频| 国产精品系列在线| 日日夜夜精品视频天天综合网| 久久久亚洲精品一区二区三区 | 免费成人av资源网| 国产乱码精品一区二区三| 91蝌蚪porny九色| 日韩女优制服丝袜电影| 国产精品久久久久久久久搜平片 | 国产欧美日韩在线看| 国产精品超碰97尤物18| 日韩高清一区在线| 99久久综合精品| 欧美一区二区三区四区视频| 国产精品家庭影院| 久久er99精品| 欧洲生活片亚洲生活在线观看| 97国产一区二区| 26uuu久久天堂性欧美| 亚洲一区二区三区四区中文字幕| 国产亚洲成av人在线观看导航| 欧美精品v国产精品v日韩精品 | 一区二区三区精品久久久| 久88久久88久久久| 欧美日韩免费电影| 精品对白一区国产伦| 午夜精品久久久久久久蜜桃app| 亚洲另类春色国产| 国产黑丝在线一区二区三区| 欧美电影一区二区三区| 一区二区成人在线观看| 成人一区二区三区| 久久久久久久免费视频了| 久久电影网站中文字幕| 在线视频一区二区三| 最近中文字幕一区二区三区| 国产福利精品导航| 国产亚洲欧洲997久久综合| 久久不见久久见免费视频1| 欧美精品亚洲一区二区在线播放| 日韩欧美国产1| 亚洲国产一区二区三区青草影视| 亚洲色大成网站www久久九九| 欧美国产丝袜视频| 激情综合色播激情啊| 欧美一二三区在线观看| 亚洲成av人片www| 欧美日韩国产bt| 五月激情六月综合| 欧美在线综合视频| 亚洲一区二区3| 欧美日韩中文字幕一区| 五月婷婷欧美视频| 欧美日韩国产系列|