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

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

?? qlistbox.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
	    handleItemChange( old, e->state() & ShiftButton, e->state() & ControlButton );	}#endif	if ( !( e->state() & ShiftButton ) || !d->selectAnchor )	    d->selectAnchor = d->current;	break;    case Key_Down:	d->currInputString = QString::null;	if ( currentItem() < (int)count() - 1 ) {	    setCurrentItem( currentItem() + 1 );	    handleItemChange( old, e->state() & ShiftButton, e->state() & ControlButton );	}#ifdef QT_KEYPAD_MODE	else {	    setCurrentItem( 0 );	    handleItemChange( old, e->state() & ShiftButton, e->state() & ControlButton );	}#endif	if ( !( e->state() & ShiftButton ) || !d->selectAnchor )	    d->selectAnchor = d->current;	break;    case Key_Left:	d->currInputString = QString::null;	if ( currentColumn() > 0 ) {	    setCurrentItem( currentItem() - numRows() );	    handleItemChange( old, e->state() & ShiftButton, e->state() & ControlButton );	} else if ( numColumns() > 1 && currentItem() > 0 ) {	    int row = currentRow();	    setCurrentItem( currentRow() - 1 + ( numColumns() - 1 ) * numRows() );	    if ( currentItem() == -1 )		setCurrentItem( row - 1 + ( numColumns() - 2 ) * numRows() );	    handleItemChange( old, e->state() & ShiftButton, e->state() & ControlButton );	} else {	    QApplication::sendEvent( horizontalScrollBar(), e );	}	if ( !( e->state() & ShiftButton ) || !d->selectAnchor )	    d->selectAnchor = d->current;	break;    case Key_Right:	d->currInputString = QString::null;	if ( currentColumn() < numColumns()-1 ) {	    int row = currentRow();	    int i = currentItem();	    setCurrentItem( currentItem() + numRows() );	    if ( currentItem() == -1 ) {		if ( row < numRows() - 1 )		    setCurrentItem( row + 1 );		else		    setCurrentItem( i );	    }	    handleItemChange( old, e->state() & ShiftButton, e->state() & ControlButton );	} else if ( numColumns() > 1 && currentRow() < numRows() ) {	    if ( currentRow() + 1 < numRows() ) {		setCurrentItem( currentRow() + 1 );		handleItemChange( old, e->state() & ShiftButton, e->state() & ControlButton );	    }	} else {	    QApplication::sendEvent( horizontalScrollBar(), e );	}	if ( !( e->state() & ShiftButton ) || !d->selectAnchor )	    d->selectAnchor = d->current;	break;    case Key_Next: {	d->currInputString = QString::null;	int i = 0;	if ( numColumns() == 1 ) {	    i = currentItem() + numItemsVisible();	    i = i > (int)count() - 1 ? (int)count() - 1 : i;	    setCurrentItem( i );	    setBottomItem( i );	} else {	    // I'm not sure about this behavior...	    if ( currentRow() == numRows() - 1 )		i = currentItem() + numRows();	    else		i = currentItem() + numRows() - currentRow() - 1;	    i = i > (int)count() - 1 ? (int)count() - 1 : i;	    setCurrentItem( i );	}	handleItemChange( old, e->state() & ShiftButton, e->state() & ControlButton );	if ( !( e->state() & ShiftButton ) || !d->selectAnchor )	    d->selectAnchor = d->current;    } break;    case Key_Prior: {	selectCurrent = TRUE;	d->currInputString = QString::null;	int i;	if ( numColumns() == 1 ) {	    i = currentItem() - numItemsVisible();	    i = i < 0 ? 0 : i;	    setCurrentItem( i );	    setTopItem( i );	} else {	    // I'm not sure about this behavior...	    if ( currentRow() == 0 )		i = currentItem() - numRows();	    else		i = currentItem() - currentRow();	    i = i < 0 ? 0 : i;	    setCurrentItem( i );	}	handleItemChange( old, e->state() & ShiftButton, e->state() & ControlButton );	if ( !( e->state() & ShiftButton ) || !d->selectAnchor )	    d->selectAnchor = d->current;    } break;#ifdef QT_KEYPAD_MODE    case Key_Select:#endif    case Key_Space:	selectCurrent = TRUE;	d->currInputString = QString::null;	toggleCurrentItem();	if ( !( e->state() & ShiftButton ) || !d->selectAnchor )	    d->selectAnchor = d->current;#ifdef QT_KEYPAD_MODE	if ( currentItem() >= 0 && selectionMode() != NoSelection ) {	    QString tmp = item( currentItem() )->text();	    emit selected( currentItem());	    emit selected( item( currentItem() ) );	    if ( !tmp.isEmpty() )		emit selected( tmp );	    emit returnPressed( item( currentItem() ) );	}#endif	break;    case Key_Return:    case Key_Enter:	selectCurrent = TRUE;	d->currInputString = QString::null;	if ( currentItem() >= 0 && selectionMode() != NoSelection ) {	    QString tmp = item( currentItem() )->text();	    emit selected( currentItem());	    emit selected( item( currentItem() ) );	    if ( !tmp.isEmpty() )		emit selected( tmp );	    emit returnPressed( item( currentItem() ) );	}	if ( !( e->state() & ShiftButton ) || !d->selectAnchor )	    d->selectAnchor = d->current;	break;    case Key_Home: {	selectCurrent = TRUE;	d->currInputString = QString::null;	setCurrentItem( 0 );	handleItemChange( old, e->state() & ShiftButton, e->state() & ControlButton );	if ( !( e->state() & ShiftButton ) || !d->selectAnchor )	    d->selectAnchor = d->current;    } break;    case Key_End: {	selectCurrent = TRUE;	d->currInputString = QString::null;	int i = (int)count() - 1;	setCurrentItem( i );	handleItemChange( old, e->state() & ShiftButton, e->state() & ControlButton );	if ( !( e->state() & ShiftButton ) || !d->selectAnchor )	    d->selectAnchor = d->current;    } break;    default: {	    if ( !e->text().isEmpty() && e->text()[ 0 ].isPrint() ) {		d->findItemByName( e->text() );	    } else {		d->currInputString = QString::null;		if ( e->state() & ControlButton ) {		    switch ( e->key() ) {		    case Key_A:			selectAll( TRUE );			break;		    }		} else {		    e->ignore();		}	    }	}    }    if ( selectCurrent && selectionMode() == Single &&	 d->current && !d->current->s ) {	updateItem( d->current );	setSelected( d->current, TRUE );    }}/*!\reimp*/void QListBox::focusInEvent( QFocusEvent *e ){    d->mousePressRow = -1;    d->mousePressColumn = -1;    if ( #ifdef QT_KEYPAD_MODE    !qt_modalEditingEnabled &&#endif	    e->reason() != QFocusEvent::Mouse && !d->current && d->head ) {	setCurrentItem(d->head);    } else if ( d->current )	updateItem( currentItem() );}/*!\reimp*/void QListBox::focusOutEvent( QFocusEvent * ){    if ( d->current )	updateItem( currentItem() );}/*!  Repaints the item at position \a index in the list.*/void QListBox::updateItem( int index ){    if ( index >= 0 )	updateItem( item( index ) );}/*!  Repaints \a i.*/void QListBox::updateItem( QListBoxItem * i ){    if ( !i )	return;    i->dirty = TRUE;    d->updateTimer->start( 0, TRUE );}/*!  Sets the list box to selection mode \a mode, which may be one of  \c Single (the default), \c Extended, \c Multi or \c NoSelection.  \sa selectionMode()*/void QListBox::setSelectionMode( SelectionMode mode ){    if ( d->selectionMode == mode )	return;    d->selectionMode = mode;    triggerUpdate( TRUE );}/*!  Returns the selection mode of the list box.  The initial mode is \c Single.  \sa setSelectionMode()*/QListBox::SelectionMode QListBox::selectionMode() const{    return d->selectionMode;}/*!  \obsolete  Consider using selectionMode() instead of this method.  Returns TRUE if the listbox is in multi-selection mode or  extended selection mode, and FALSE if it is in single-selection mode  or no-selection more.  \sa selectionMode() setSelectionMode()*/bool QListBox::isMultiSelection() const{    return selectionMode() == Multi || selectionMode() == Extended;}/*!  \obsolete  Consider using setSelectionMode() instead of this method.  Sets the list box to multi-selection mode if \a enable is TRUE, and  to single-selection mode if \a enable is FALSE.  We recommend using  setSelectionMode() instead; that function also offers two other modes.  \sa setSelectionMode() selectionMode()*/void QListBox::setMultiSelection( bool enable ){    setSelectionMode( enable ? Multi : Single );}/*!  Toggles the selection status of currentItem() and repaints, if  the listbox is a multi-selection listbox.  \sa setMultiSelection()*/void QListBox::toggleCurrentItem(){    if ( selectionMode() == Single ||	 selectionMode() == NoSelection ||	 !d->current )	return;    if ( d->current->s || d->current->isSelectable() ) {	d->current->s = !d->current->s;	emit selectionChanged();    }    updateItem( d->current );}/*!  Selects the item at position \a index if \a select is TRUE, or  unselects it if \a select is FALSE, and repaints the item  appropriately.  If the listbox is a single-selection listbox and and \a select is TRUE,  setCurrentItem() will be called.  If the listbox is a single-selection listbox and and \a select is FALSE,  clearSelection() will be called if \a index is the currently selected  item.  \sa setMultiSelection(), setCurrentItem(), clearSelection(), currentItem()*/void QListBox::setSelected( int index, bool select ){    setSelected( item( index ), select );}/*!  Selects \a item if \a select is TRUE, or unselects it if \a select  is FALSE, and repaints the item appropriately.  If the listbox is a single-selection listbox and and \a select is TRUE,  setCurrentItem() is called.  If the listbox is a single-selection listbox and and \a select is  FALSE, clearSelection() is called if \a item is the currently  selected item.  Note that for this function, no-selection means multi-selection.  The user cannot select items in a no-selection list box, but the  application programmer can.  \sa setMultiSelection(), setCurrentItem(), clearSelection(), currentItem()*/void QListBox::setSelected( QListBoxItem * item, bool select ){    if ( !item || !item->isSelectable() ||	 (bool)item->s == select || d->selectionMode == NoSelection )	return;    bool emitHighlighted = FALSE;    if ( selectionMode() == Single && d->current != item ) {	QListBoxItem *o = d->current;	if ( d->current && d->current->s )	    d->current->s = FALSE;	d->current = item;	int ind = index( item );	d->currentColumn = ind / numRows();	d->currentRow = ind % numRows();	if ( o )	    updateItem( o );	emitHighlighted = TRUE;    }    item->s = (uint)select;    updateItem( item );    if ( d->selectionMode == Single && select )	emit selectionChanged( item );    emit selectionChanged();    if ( emitHighlighted ) {	QString tmp;	if ( d->current )	    tmp = d->current->text();	int tmp2 = index( d->current );	emit highlighted( d->current );	if ( !tmp.isNull() )	    emit highlighted( tmp );	emit highlighted( tmp2 );	emit currentChanged( d->current );    }}/*!  Returns TRUE if item \a i is selected. Returns FALSE if it is not  selected or if there is an error.*/bool QListBox::isSelected( int i ) const{    QListBoxItem * lbi = item( i );    if ( !lbi )	return FALSE; // should not happen    return lbi->s;}/*!  Returns TRUE if item \a i is selected. Returns FALSE if it is not  selected or if there is an error.*/bool QListBox::isSelected( const QListBoxItem * i ) const{    if ( !i )	return FALSE;    return i->s;}/*!  Deselects all items, if possible.  Note that a single-selection listbox will automatically select an  item if it has keyboard focus.*/void QListBox::clearSelection(){    selectAll( FALSE );}/*!  If \a select is TRUE, all items get selected, else all get unselected.  This works only in the selection modes Multi and Extended. In  Single and NoSelection mode the selection of the current item is  just set to \a select.*/void QListBox::selectAll( bool select ){    if ( isMultiSelection() ) {	bool b = signalsBlocked();	blockSignals( TRUE );	for ( int i = 0; i < (int)count(); i++ )	    setSelected( i, select );	blockSignals( b );	emit selectionChanged();    } else if ( d->current ) {	QListBoxItem * i = d->current;	setSelected( i, select );    }}/*!  Inverts the selection. Works only in Multi and Extended selection mode.*/void QListBox::invertSelection(){    if ( d->selectionMode == Single ||	 d->selectionMode == NoSelection )	return;    bool b = signalsBlocked();    blockSignals( TRUE );    for ( int i = 0; i < (int)count(); i++ )	setSelected( i, !item( i )->selected() );    blockSignals( b );    emit selectionChanged();}/*!  \obsolete  Not used anymore, available only for binary compatibility*/void QListBox::emitChangedSignal( bool ){}/*! \reimp */QSize QListBox::sizeHint() const{    if ( isVisibleTo(0) && d->sizeHint.isValid() )	return d->sizeHint;    doLayout();    int i=0;    while( i < 10 &&	   i < (int)d->columnPos.size()-1 &&	   d->columnPos[i] < 200 )	i++;    int x;    x = QMIN( 200, d->columnPos[i] );    x = QMAX( 40, x );    i = 0;    while( i < 10 &&	   i < (int)d->rowPos.size()-1 &&	   d->

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99这里只有精品| 久久久久久久综合日本| 欧美丝袜丝交足nylons图片| 精品美女在线观看| 日韩制服丝袜av| 在线欧美小视频| 国产精品美女一区二区三区| 国产精品66部| 久久久国产精华| 国产69精品久久久久毛片| 日韩欧美国产午夜精品| 亚洲国产精品一区二区久久| 国产麻豆成人传媒免费观看| 久久尤物电影视频在线观看| 一区二区不卡在线视频 午夜欧美不卡在| 成人av中文字幕| 在线不卡中文字幕播放| 亚洲一区二区3| 91精品国模一区二区三区| 日本中文字幕不卡| 国产嫩草影院久久久久| 成人在线综合网| 尤物在线观看一区| 欧美肥妇bbw| 成人免费毛片aaaaa**| 亚洲一二三专区| 久久婷婷成人综合色| 色狠狠一区二区| 国产呦精品一区二区三区网站| 国产精品久久久久久一区二区三区 | 国产亚洲va综合人人澡精品| 国产成人夜色高潮福利影视| 一区二区三区在线免费播放| 欧美一区二区三区四区视频| 国产69精品久久久久毛片| 午夜影院久久久| 成人免费在线播放视频| 日韩免费电影一区| 欧美日韩精品系列| 色婷婷综合在线| va亚洲va日韩不卡在线观看| 久久精品999| 蜜臀av性久久久久蜜臀aⅴ四虎| 成人欧美一区二区三区视频网页| 日韩视频永久免费| 日韩视频免费直播| 欧美一级欧美一级在线播放| 色先锋资源久久综合| 国产不卡视频一区二区三区| 国产又粗又猛又爽又黄91精品| 青青草视频一区| 久久激情综合网| 国产精品一区二区在线观看不卡 | 国产a视频精品免费观看| 久久精品国产在热久久| 精品一区二区三区免费视频| 久久电影网站中文字幕| 久久99久国产精品黄毛片色诱| 天堂av在线一区| 韩国欧美一区二区| av高清不卡在线| 欧美在线你懂得| 久久综合九色综合欧美98| 精品少妇一区二区三区免费观看| 久久这里只有精品视频网| 国产亚洲精品福利| 五月婷婷欧美视频| 国产成人av影院| 在线播放日韩导航| 国产女同性恋一区二区| 亚洲女厕所小便bbb| 久久成人18免费观看| 国产成人在线色| 91精品福利在线一区二区三区| 久久综合九色综合欧美98| 亚洲一区二区3| 波多野结衣欧美| 久久精品视频网| 久久99精品久久久久久国产越南| 成人久久视频在线观看| 精品福利一二区| 日韩电影免费在线看| 色琪琪一区二区三区亚洲区| 国产欧美一区二区三区鸳鸯浴| 亚洲女爱视频在线| 成人动漫一区二区| 中文字幕制服丝袜一区二区三区 | www日韩大片| 日韩国产精品91| 日韩一区国产二区欧美三区| 亚洲国产你懂的| 欧美三级日韩在线| 日韩综合一区二区| 日韩欧美高清在线| 欧美私人免费视频| 偷拍亚洲欧洲综合| 2014亚洲片线观看视频免费| 成人a区在线观看| 久久久99精品久久| 久久国产精品99久久久久久老狼 | 欧美视频一区二区三区在线观看 | 欧美一级日韩一级| 久草在线在线精品观看| 欧美精品一区二区三区蜜臀| 韩日av一区二区| 亚洲色图19p| 日韩免费成人网| 色丁香久综合在线久综合在线观看| 天天色 色综合| 国产精品久久久久久久浪潮网站 | 性久久久久久久久| 中文字幕欧美国产| 欧美人牲a欧美精品| 国产一区二区免费视频| 亚洲成av人片一区二区梦乃| 久久久久久日产精品| 在线精品视频免费观看| 秋霞国产午夜精品免费视频| 国产精品视频一二| 欧美电影免费观看完整版| 91色porny蝌蚪| 精品亚洲国内自在自线福利| 亚洲精品少妇30p| 欧美激情一区在线观看| 国产亚洲欧美色| 日韩午夜在线影院| 日韩一区二区不卡| 久久久久久久久久电影| 久久综合五月天婷婷伊人| 精品999在线播放| 亚洲色图.com| 亚洲黄色小说网站| 天天色综合天天| 奇米色777欧美一区二区| 日韩影院精彩在线| 美女视频一区在线观看| 国产一区在线视频| 一本色道久久综合精品竹菊| 丁香另类激情小说| 在线观看www91| 日韩欧美久久一区| 亚洲高清视频中文字幕| 奇米影视7777精品一区二区| 喷水一区二区三区| 理论片日本一区| www.欧美亚洲| 精品国产乱码91久久久久久网站| 日韩精品一区二区三区四区视频| 久久久久久亚洲综合影院红桃| 国产精品伦理一区二区| 蜜臀av一区二区| 91小视频免费看| 国产三级三级三级精品8ⅰ区| 欧美大片免费久久精品三p| 亚洲精品一二三| 国产成人午夜视频| 日韩三级视频中文字幕| 成人免费一区二区三区视频| 国产aⅴ精品一区二区三区色成熟| 欧美情侣在线播放| 亚洲欧美激情小说另类| 国产一区激情在线| 日本精品一区二区三区四区的功能| 中文字幕不卡的av| 日韩激情av在线| 欧美午夜精品一区二区蜜桃| 亚洲视频一区二区在线观看| 麻豆91小视频| 欧美mv和日韩mv的网站| 国产一区二区电影| 久久精品视频免费| 色综合视频在线观看| 亚洲天天做日日做天天谢日日欢 | 欧美亚洲一区二区在线| 亚洲自拍与偷拍| 欧美亚洲精品一区| 日韩国产在线一| 日韩欧美一二三| 国产精品99久久久久久久女警 | 成人小视频在线| 国产日产欧美一区二区三区| 美日韩一区二区| 精品电影一区二区三区| 成人免费毛片片v| 亚洲第一成人在线| 日韩一区二区高清| 不卡的av网站| 精品一区二区三区欧美| 日韩美女久久久| 久久精品视频免费| 欧美日韩综合一区| 成人av网址在线观看| 国产精品剧情在线亚洲| 日韩女优视频免费观看| 99久久精品国产导航| 欧美bbbbb| 麻豆免费精品视频| 依依成人精品视频| 久久精品这里都是精品| 欧美日韩精品一区二区天天拍小说 |