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

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

?? qtableview.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
    if ( testWState(WState_GlobalBrushOrigin) )	repaint(contentsRect(), FALSE);    else	QWidget::scroll( -xPixels, -yPixels, contentsRect() );}/*!  Returns the leftmost pixel of the table view in \e view  coordinates.	This excludes the frame and any header.  \sa maxViewY(), viewWidth(), contentsRect()*/int QTableView::minViewX() const{    return frameWidth();}/*!  Returns the top pixel of the table view in \e view  coordinates.	This excludes the frame and any header.  \sa maxViewX(), viewHeight(), contentsRect()*/int QTableView::minViewY() const{    return frameWidth();}/*!  Returns the rightmost pixel of the table view in \e view  coordinates.	This excludes the frame and any scroll bar, but  includes blank pixels to the right of the visible table data.  \sa maxViewY(), viewWidth(), contentsRect()*/int QTableView::maxViewX() const{    return width() - 1 - frameWidth()        - (tFlags & Tbl_vScrollBar ? VSBEXT           : 0);}/*!  Returns the bottom pixel of the table view in \e view  coordinates.	This excludes the frame and any scroll bar, but  includes blank pixels below the visible table data.  \sa maxViewX(), viewHeight(), contentsRect()*/int QTableView::maxViewY() const{    return height() - 1 - frameWidth()         - (tFlags & Tbl_hScrollBar ? HSBEXT           : 0);}/*!  Returns the width of the table view, as such, in \e view  coordinates.  This does not include any header, scroll bar or frame,  but does include background pixels to the right of the table data.  \sa minViewX() maxViewX(), viewHeight(), contentsRect() viewRect()*/int QTableView::viewWidth() const{    return maxViewX() - minViewX() + 1;}/*!  Returns the height of the table view, as such, in \e view  coordinates.  This does not include any header, scroll bar or frame,  but does include background pixels below the table data.  \sa minViewY() maxViewY() viewWidth() contentsRect() viewRect()*/int QTableView::viewHeight() const{    return maxViewY() - minViewY() + 1;}void QTableView::doAutoScrollBars(){    int viewW = width()	 - frameWidth() - minViewX();    int viewH = height() - frameWidth() - minViewY();    bool vScrollOn = testTableFlags(Tbl_vScrollBar);    bool hScrollOn = testTableFlags(Tbl_hScrollBar);    int w = 0;    int h = 0;    int i;    if ( testTableFlags(Tbl_autoHScrollBar) ) {	if ( cellW ) {	    w = cellW*nCols;	} else {	    i = 0;	    while ( i < nCols && w <= viewW )		w += cellWidth( i++ );	}	if ( w > viewW )	    hScrollOn = TRUE;	else	    hScrollOn = FALSE;    }    if ( testTableFlags(Tbl_autoVScrollBar) ) {	if ( cellH ) {	    h = cellH*nRows;	} else {	    i = 0;	    while ( i < nRows && h <= viewH )		h += cellHeight( i++ );	}	if ( h > viewH )	    vScrollOn = TRUE;	else	    vScrollOn = FALSE;    }    if ( testTableFlags(Tbl_autoHScrollBar) && vScrollOn && !hScrollOn )	if ( w > viewW - VSBEXT )	    hScrollOn = TRUE;    if ( testTableFlags(Tbl_autoVScrollBar) && hScrollOn && !vScrollOn )	if ( h > viewH - HSBEXT )	    vScrollOn = TRUE;    setHorScrollBar( hScrollOn, FALSE );    setVerScrollBar( vScrollOn, FALSE );    updateFrameSize();}/*!  \fn void QTableView::updateScrollBars()  Updates the scroll bars' contents and presence to match the table's  state.  Generally you should not need to call this.  \sa setTableFlags()*//*!  Updates the scroll bars' contents and presence to match the table's  state \c or \e f.  \sa setTableFlags()*/void QTableView::updateScrollBars( uint f ){    sbDirty = sbDirty | f;    if ( inSbUpdate )	return;    inSbUpdate = TRUE;    if ( testTableFlags(Tbl_autoHScrollBar) && (sbDirty & horRange) ||	 testTableFlags(Tbl_autoVScrollBar) && (sbDirty & verRange) )					// if range change and auto	doAutoScrollBars();		// turn scroll bars on/off if needed    if ( !autoUpdate() ) {	inSbUpdate = FALSE;	return;    }    if ( yOffset() > 0 && testTableFlags( Tbl_autoVScrollBar ) &&	 !testTableFlags( Tbl_vScrollBar ) ) {	setYOffset( 0 );    }    if ( xOffset() > 0 && testTableFlags( Tbl_autoHScrollBar ) &&	 !testTableFlags( Tbl_hScrollBar ) ) {	setXOffset( 0 );    }    if ( !isVisible() ) {	inSbUpdate = FALSE;	return;    }    if ( testTableFlags(Tbl_hScrollBar) && (sbDirty & horMask) != 0 ) {	if ( sbDirty & horGeometry )	    hScrollBar->setGeometry( 0, height() - HSBEXT,                                     viewWidth()+2*frameWidth(), HSBEXT);	if ( sbDirty & horSteps ) {	    if ( cellW )		hScrollBar->setSteps( QMIN(cellW,viewWidth()/2), viewWidth() );	    else		hScrollBar->setSteps( 16, viewWidth() );	}	if ( sbDirty & horRange )	    hScrollBar->setRange( 0, maxXOffset() );	if ( sbDirty & horValue )	    hScrollBar->setValue( xOffs );			// show scrollbar only when it has a sane geometry	if ( !hScrollBar->isVisible() )	    hScrollBar->show();    }    if ( testTableFlags(Tbl_vScrollBar) && (sbDirty & verMask) != 0 ) {	if ( sbDirty & verGeometry )	    vScrollBar->setGeometry( width() - VSBEXT, 0,                                     VSBEXT, viewHeight()+2*frameWidth());	if ( sbDirty & verSteps ) {	    if ( cellH )		vScrollBar->setSteps( QMIN(cellH,viewHeight()/2), viewHeight() );	    else		vScrollBar->setSteps( 16, viewHeight() );  // fttb! ###	}	if ( sbDirty & verRange )	    vScrollBar->setRange( 0, maxYOffset() );	if ( sbDirty & verValue )	    vScrollBar->setValue( yOffs );			// show scrollbar only when it has a sane geometry	if ( !vScrollBar->isVisible() )	    vScrollBar->show();    }    if ( coveringCornerSquare &&	 ( (sbDirty & verGeometry ) || (sbDirty & horGeometry)) )	cornerSquare->move( maxViewX() + 1 + frameWidth(),			    maxViewY() + 1 + frameWidth());    sbDirty = 0;    inSbUpdate = FALSE;}void QTableView::updateFrameSize(){    int rw = width()  - ( testTableFlags(Tbl_vScrollBar) ?                          VSBEXT : 0 );    int rh = height() - ( testTableFlags(Tbl_hScrollBar) ?                          HSBEXT : 0 );    if ( rw < 0 )	rw = 0;    if ( rh < 0 )	rh = 0;    if ( autoUpdate() ) {	setFrameRect( QRect(0,0,rw,rh) );	update();    }}/*!  Returns the maximum horizontal offset within the table of the  view's left edge, in \e table coordinates.  This is used mainly to set the horizontal scroll bar's range.  \sa maxColOffset(), maxYOffset(), totalWidth()*/int QTableView::maxXOffset(){    int tw = totalWidth();    int maxOffs;    if ( testTableFlags(Tbl_scrollLastHCell) ) {	if ( nCols != 1)	    maxOffs =  tw - ( cellW ? cellW : cellWidth( nCols - 1 ) );	else	    maxOffs = tw - viewWidth();    } else {	if ( testTableFlags(Tbl_snapToHGrid) ) {	    if ( cellW ) {		maxOffs =  tw - (viewWidth()/cellW)*cellW;	    } else {		int goal = tw - viewWidth();		int pos = tw;		int nextCol = nCols - 1;		int nextCellWidth = cellWidth( nextCol );		while( nextCol > 0 && pos > goal + nextCellWidth ) {		    pos -= nextCellWidth;		    nextCellWidth = cellWidth( --nextCol );		}		if ( goal + nextCellWidth == pos )		    maxOffs = goal;		 else if ( goal < pos )		   maxOffs = pos;		 else		   maxOffs = 0;	    }	} else {	    maxOffs = tw - viewWidth();	}    }    return maxOffs > 0 ? maxOffs : 0;}/*!  Returns the maximum vertical offset within the table of the  view's top edge, in \e table coordinates.  This is used mainly to set the vertical scroll bar's range.  \sa maxRowOffset(), maxXOffset(), totalHeight()*/int QTableView::maxYOffset(){    int th = totalHeight();    int maxOffs;    if ( testTableFlags(Tbl_scrollLastVCell) ) {	if ( nRows != 1)	    maxOffs =  th - ( cellH ? cellH : cellHeight( nRows - 1 ) );	else	    maxOffs = th - viewHeight();    } else {	if ( testTableFlags(Tbl_snapToVGrid) ) {	    if ( cellH ) {		maxOffs =  th - (viewHeight()/cellH)*cellH;	    } else {		int goal = th - viewHeight();		int pos = th;		int nextRow = nRows - 1;		int nextCellHeight = cellHeight( nextRow );		while( nextRow > 0 && pos > goal + nextCellHeight ) {		    pos -= nextCellHeight;		    nextCellHeight = cellHeight( --nextRow );		}		if ( goal + nextCellHeight == pos )		    maxOffs = goal;		 else if ( goal < pos )		   maxOffs = pos;		 else		   maxOffs = 0;	    }	} else {	    maxOffs = th - viewHeight();	}    }    return maxOffs > 0 ? maxOffs : 0;}/*!  Returns the index of the last column which may be at the left edge  of the view.  Depending on the \link setTableFlags Tbl_scrollLastHCell\endlink flag,  this may or may not be the last column.  \sa maxXOffset(), maxRowOffset()*/int QTableView::maxColOffset(){    int mx = maxXOffset();    if ( cellW )	return mx/cellW;    else {	int xcd=0, col=0;	while ( col < nCols && mx > (xcd=cellWidth(col)) ) {	    mx -= xcd;	    col++;	}	return col;    }}/*!  Returns the index of the last row which may be at the top edge of  the view.  Depending on the \link setTableFlags Tbl_scrollLastVCell\endlink flag,  this may or may not be the last row.  \sa maxYOffset(), maxColOffset()*/int QTableView::maxRowOffset(){    int my = maxYOffset();    if ( cellH )	return my/cellH;    else {	int ycd=0, row=0;	while ( row < nRows && my > (ycd=cellHeight(row)) ) {	    my -= ycd;	    row++;	}	return row;    }}void QTableView::showOrHideScrollBars(){    if ( !autoUpdate() )	return;    if ( vScrollBar ) {	if ( testTableFlags(Tbl_vScrollBar) ) {	    if ( !vScrollBar->isVisible() )		sbDirty = sbDirty | verMask;	} else {	    if ( vScrollBar->isVisible() )	       vScrollBar->hide();	}    }    if ( hScrollBar ) {	if ( testTableFlags(Tbl_hScrollBar) ) {	    if ( !hScrollBar->isVisible() )		sbDirty = sbDirty | horMask;	} else {	    if ( hScrollBar->isVisible() )		hScrollBar->hide();	}    }    if ( cornerSquare ) {	if ( testTableFlags(Tbl_hScrollBar) &&	     testTableFlags(Tbl_vScrollBar) ) {	    if ( !cornerSquare->isVisible() )		cornerSquare->show();	} else {	    if ( cornerSquare->isVisible() )		cornerSquare->hide();	}    }}/*!  Updates the scroll bars and internal state.  Call this function when the table view's total size is changed;  typically because the result of cellHeight() or cellWidth() have changed.  This function does not repaint the widget.*/void QTableView::updateTableSize(){    bool updateOn = autoUpdate();    setAutoUpdate( FALSE );    int xofs = xOffset();    xOffs++; //so that setOffset will not return immediately    setOffset(xofs,yOffset(),FALSE); //to calculate internal state correctly    setAutoUpdate(updateOn);    updateScrollBars( horSteps |  horRange |		      verSteps |  verRange );    showOrHideScrollBars();}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文天堂在线一区| 国产在线精品免费av| 欧美精品免费视频| 蜜臀av性久久久久蜜臀aⅴ | 欧洲精品一区二区| 精品一区二区三区免费播放| 国产性做久久久久久| 色婷婷久久综合| 久久99精品久久久久婷婷| 亚洲欧洲无码一区二区三区| 欧美日韩国产综合视频在线观看| 乱中年女人伦av一区二区| 中文字幕一区二区三区精华液| 国产在线不卡一区| 亚洲一区二区三区视频在线播放| 精品少妇一区二区三区在线播放 | 蜜桃视频一区二区三区| 国产视频一区二区在线| 欧美一卡2卡3卡4卡| 日本高清不卡视频| 成年人网站91| 国产在线精品国自产拍免费| 五月天精品一区二区三区| 中文字幕免费一区| 精品88久久久久88久久久| 91精品国产免费| 欧美日韩一区不卡| 色老综合老女人久久久| 天天影视色香欲综合网老头| 亚洲精品水蜜桃| 亚洲蜜臀av乱码久久精品| 国产精品久久福利| 亚洲国产精品高清| 国产精品久久久久久久久快鸭 | 国产一区二区福利| 免费观看久久久4p| 麻豆一区二区三| 韩国一区二区在线观看| 麻豆成人久久精品二区三区红 | 亚洲国产日韩a在线播放| 中文字幕综合网| 亚洲bdsm女犯bdsm网站| 亚洲大片在线观看| 韩国成人福利片在线播放| 国内精品伊人久久久久av影院| 久久精品国产一区二区三| 国产中文一区二区三区| 成人免费福利片| 欧美性猛交xxxx乱大交退制版 | 欧美精品日韩一区| 欧美一区二区三区在线视频| 久久久久久久综合日本| 亚洲欧美偷拍另类a∨色屁股| 亚洲国产成人av好男人在线观看| 麻豆久久一区二区| 一本在线高清不卡dvd| 91精品国产综合久久久久久久久久| 久久婷婷色综合| 亚洲在线中文字幕| 国产高清不卡一区二区| 欧美三级电影一区| 国产精品欧美综合在线| 午夜激情一区二区三区| 成人综合婷婷国产精品久久| 在线观看中文字幕不卡| 日本一区二区久久| 蜜臀av国产精品久久久久| 一区二区三区久久| 国产精品系列在线播放| 日韩一级高清毛片| 久久99精品久久久| 972aa.com艺术欧美| 久久网站最新地址| 麻豆精品在线播放| 91久久精品一区二区三| 国产精品色哟哟网站| 美国精品在线观看| 国产91精品精华液一区二区三区 | 亚洲永久精品国产| aaa亚洲精品| 精品福利二区三区| 国产一区二区三区日韩| 日韩精品一区国产麻豆| 精品影院一区二区久久久| 日韩一级黄色大片| 国产精品一区三区| 中文字幕欧美日本乱码一线二线| 高清不卡一区二区在线| 国产精品污www在线观看| 国产成人综合网站| 亚洲欧美aⅴ...| 欧美日韩国产免费| 国产一区二区在线视频| 欧美一卡二卡三卡| 欧美午夜一区二区三区| 亚洲乱码国产乱码精品精可以看| 久久aⅴ国产欧美74aaa| 91精品国产91热久久久做人人| 国产欧美日韩在线观看| 日本不卡的三区四区五区| 99国产精品国产精品久久| 欧美在线观看你懂的| 久久久国产午夜精品| 国产乱码精品一品二品| 国产精品区一区二区三区| 国产不卡在线播放| 日韩精品一卡二卡三卡四卡无卡| 99这里都是精品| 蜜臂av日日欢夜夜爽一区| 国产精品久久久爽爽爽麻豆色哟哟 | 日韩欧美一区二区免费| 日本高清视频一区二区| 成人一区二区三区中文字幕| 丝袜美腿亚洲一区二区图片| 最新不卡av在线| 精品少妇一区二区三区在线视频| 欧美日韩在线亚洲一区蜜芽| 成人av网站大全| 国产不卡视频一区二区三区| 国产一区在线观看视频| 丝袜美腿成人在线| 一区二区三区四区乱视频| 中文字幕日韩av资源站| 中文字幕欧美国产| 中文字幕一区二区三区不卡| 久久午夜免费电影| 欧美国产一区在线| 国产色综合久久| 久久新电视剧免费观看| 日韩欧美一区二区视频| 日韩午夜在线观看| 久久天堂av综合合色蜜桃网| 久久一留热品黄| 久久无码av三级| 国产精品国产三级国产a| 亚洲免费在线播放| 免费成人小视频| 香港成人在线视频| 国产一区不卡视频| 成人在线视频首页| 欧美亚洲高清一区| 欧美色欧美亚洲另类二区| 欧美第一区第二区| 亚洲女同一区二区| 国内精品伊人久久久久av影院| 丁香亚洲综合激情啪啪综合| 日本精品一级二级| 欧美哺乳videos| 亚洲精品乱码久久久久久日本蜜臀| 亚洲v精品v日韩v欧美v专区| 国产精品18久久久久久久网站| 成人黄色av电影| 91精品国产高清一区二区三区| 久久久久99精品国产片| 亚洲va天堂va国产va久| 国产a区久久久| 欧美日韩一区不卡| 国产精品美女久久久久av爽李琼| 亚洲人成精品久久久久久 | 91免费视频网| 国产精品免费丝袜| 美女视频一区二区三区| 91蜜桃在线免费视频| 久久久久99精品国产片| 国内外成人在线视频| 欧美一区二区美女| 亚洲一二三四在线观看| 国产成人精品网址| 精品美女一区二区三区| 麻豆成人综合网| 日韩欧美一级精品久久| 亚洲黄色性网站| av资源网一区| 欧美激情中文字幕| 国产成人aaaa| 中文久久乱码一区二区| 免费日本视频一区| 日韩欧美国产电影| 午夜激情综合网| 欧美日韩精品系列| 免费一区二区视频| 欧美va亚洲va在线观看蝴蝶网| 首页综合国产亚洲丝袜| 欧美色视频一区| 玖玖九九国产精品| 精品电影一区二区| 丁香婷婷综合网| 亚洲国产精品t66y| 国产成人自拍网| 中文字幕在线一区免费| 99re热视频精品| 午夜激情一区二区三区| 亚洲精品在线三区| 成人一二三区视频| 性欧美疯狂xxxxbbbb| 精品美女在线观看| 99久久国产综合精品麻豆| 亚洲色图色小说| 日韩一区二区麻豆国产| 色综合久久综合中文综合网|