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

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

?? qtableview.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
  Sets the auto-update option of the table view to \e enable.  If \e enable is TRUE (this is the default) then the view updates itself  automatically whenever it has changed in some way (for example when a  \link setTableFlags() flag\endlink is changed).  If \e enable is FALSE, the view does NOT repaint itself, or update  its internal state variables itself when it is changed.  This can be  useful to avoid flicker during large changes, and is singularly  useless otherwise: Disable auto-update, do the changes, re-enable  auto-update, and call repaint().  \warning Do not leave the view in this state for a long time  (i.e. between events ). If, for example, the user interacts with the  view when auto-update is off, strange things can happen.  Setting auto-update to TRUE does not repaint the view, you must call  repaint() to do this.  \sa autoUpdate(), repaint()*/void QTableView::setAutoUpdate( bool enable ){    if ( isUpdatesEnabled() == enable )	return;    setUpdatesEnabled( enable );    if ( enable ) {	showOrHideScrollBars();	updateScrollBars();    }}/*!  Repaints the cell at row \e row, column \e col if it is inside the view.  If \e erase is TRUE, the relevant part of the view is cleared to the  background color/pixmap before the contents are repainted.  \sa isVisible()*/void QTableView::updateCell( int row, int col, bool erase ){    int xPos, yPos;    if ( !colXPos( col, &xPos ) )	return;    if ( !rowYPos( row, &yPos ) )	return;    QRect uR = QRect( xPos, yPos,		      cellW ? cellW : cellWidth(col),		      cellH ? cellH : cellHeight(row) );    repaint( uR.intersect(viewRect()), erase );}/*!  \fn QRect QTableView::cellUpdateRect() const  This function should only be called from the paintCell() function in  subclasses. It returns the portion of a cell that actually needs to be  updated, in \e cell coordinates. This is only useful for non-trivial  paintCell().*//*!  Returns the rectangle which is the actual table, excluding any  frame, in \e widget coordinates.*/QRect QTableView::viewRect() const{    return QRect( frameWidth(), frameWidth(), viewWidth(), viewHeight() );}/*!  Returns the index of the last (bottom) row in the view.  The index of the first row is 0.  If no rows are visible it returns -1.	 This can happen if the  view is too small for the first row and Tbl_cutCellsV is set.  \sa lastColVisible()*/int QTableView::lastRowVisible() const{    int cellMaxY;    int row = findRawRow( maxViewY(), &cellMaxY );    if ( row == -1 || row >= nRows ) {		// maxViewY() past end?	row = nRows - 1;			// yes: return last row    } else {	if ( testTableFlags(Tbl_cutCellsV) && cellMaxY > maxViewY() ) {	    if ( row == yCellOffs )		// cut by right margin?		return -1;			// yes, nothing in the view	    else	       row = row - 1;			// cut by margin, one back	}    }    return row;}/*!  Returns the index of the last (right) column in the view.  The index of the first column is 0.  If no columns are visible it returns -1.  This can happen if the  view is too narrow for the first column and Tbl_cutCellsH is set.  \sa lastRowVisible()*/int QTableView::lastColVisible() const{    int cellMaxX;    int col = findRawCol( maxViewX(), &cellMaxX );    if ( col == -1 || col >= nCols ) {		// maxViewX() past end?	col = nCols - 1;			// yes: return last col    } else {	if ( testTableFlags(Tbl_cutCellsH) && cellMaxX > maxViewX() ) {	    if ( col == xCellOffs )		// cut by bottom margin?		return -1;			// yes, nothing in the view	    else	       col = col - 1;			// cell by margin, one back	}    }    return col;}/*!  Returns TRUE if \e row is at least partially visible.  \sa colIsVisible()*/bool QTableView::rowIsVisible( int row ) const{    return rowYPos( row, 0 );}/*!  Returns TRUE if \e col is at least partially visible.  \sa rowIsVisible()*/bool QTableView::colIsVisible( int col ) const{    return colXPos( col, 0 );}/*!  \internal  Called when both scroll bars are active at the same time. Covers the  bottom left corner between the two scroll bars with an empty widget.*/void QTableView::coverCornerSquare( bool enable ){    coveringCornerSquare = enable;    if ( !cornerSquare && enable ) {	cornerSquare = new QCornerSquare( this );	CHECK_PTR( cornerSquare );	cornerSquare->setGeometry( maxViewX() + 1,				   maxViewY() + 1,                                   VSBEXT,                                 HSBEXT);    }    if ( autoUpdate() && cornerSquare ) {	if ( enable )	    cornerSquare->show();	else	    cornerSquare->hide();    }}/*!  \internal  Scroll the view to a position such that:  If \e horizontal is TRUE, the leftmost column shown fits snugly  with the left edge of the view.  If \e vertical is TRUE, the top row shown fits snugly with the top  of the view.  You can achieve the same effect automatically by setting any of the  \link setTableFlags() Tbl_snapTo*Grid \endlink table flags.*/void QTableView::snapToGrid( bool horizontal, bool vertical ){    int newXCell = -1;    int newYCell = -1;    if ( horizontal && xCellDelta != 0 ) {	int w = cellW ? cellW : cellWidth( xCellOffs );	if ( xCellDelta >= w/2 )	    newXCell = xCellOffs + 1;	else	    newXCell = xCellOffs;    }    if ( vertical && yCellDelta != 0 ) {	int h = cellH ? cellH : cellHeight( yCellOffs );	if ( yCellDelta >= h/2 )	    newYCell = yCellOffs + 1;	else	    newYCell = yCellOffs;    }    setTopLeftCell( newYCell, newXCell );  //row,column}/*!  \internal  This internal slot is connected to the horizontal scroll bar's  QScrollBar::valueChanged() signal.  Moves the table horizontally to offset \e val without updating the  scroll bar.*/void QTableView::horSbValue( int val ){    if ( horSliding ) {	horSliding = FALSE;	if ( horSnappingOff ) {	    horSnappingOff = FALSE;	    tFlags |= Tbl_snapToHGrid;	}    }    setOffset( val, yOffs, FALSE );}/*!  \internal  This internal slot is connected to the horizontal scroll bar's  QScrollBar::sliderMoved() signal.  Scrolls the table smoothly horizontally even if \c Tbl_snapToHGrid is set.*/void QTableView::horSbSliding( int val ){    if ( testTableFlags(Tbl_snapToHGrid) &&	 testTableFlags(Tbl_smoothHScrolling) ) {	tFlags &= ~Tbl_snapToHGrid;	// turn off snapping while sliding	setOffset( val, yOffs, FALSE );	tFlags |= Tbl_snapToHGrid;	// turn on snapping again    } else {	setOffset( val, yOffs, FALSE );    }}/*!  \internal  This internal slot is connected to the horizontal scroll bar's  QScrollBar::sliderReleased() signal.*/void QTableView::horSbSlidingDone( ){    if ( testTableFlags(Tbl_snapToHGrid) &&	 testTableFlags(Tbl_smoothHScrolling) )	snapToGrid( TRUE, FALSE );}/*!  \internal  This internal slot is connected to the vertical scroll bar's  QScrollBar::valueChanged() signal.  Moves the table vertically to offset \e val without updating the  scroll bar.*/void QTableView::verSbValue( int val ){    if ( verSliding ) {	verSliding = FALSE;	if ( verSnappingOff ) {	    verSnappingOff = FALSE;	    tFlags |= Tbl_snapToVGrid;	}    }    setOffset( xOffs, val, FALSE );}/*!  \internal  This internal slot is connected to the vertical scroll bar's  QScrollBar::sliderMoved() signal.  Scrolls the table smoothly vertically even if \c Tbl_snapToVGrid is set.*/void QTableView::verSbSliding( int val ){    if ( testTableFlags(Tbl_snapToVGrid) &&	 testTableFlags(Tbl_smoothVScrolling) ) {	tFlags &= ~Tbl_snapToVGrid;	// turn off snapping while sliding	setOffset( xOffs, val, FALSE );	tFlags |= Tbl_snapToVGrid;	// turn on snapping again    } else {	setOffset( xOffs, val, FALSE );    }}/*!  \internal  This internal slot is connected to the vertical scroll bar's  QScrollBar::sliderReleased() signal.*/void QTableView::verSbSlidingDone( ){    if ( testTableFlags(Tbl_snapToVGrid) &&	 testTableFlags(Tbl_smoothVScrolling) )	snapToGrid( FALSE, TRUE );}/*!  This virtual function is called before painting of table cells  is started. It can be reimplemented by subclasses that want to  to set up the painter in a special way and that do not want to  do so for each cell.*/void QTableView::setupPainter( QPainter * ){}/*!  \fn void QTableView::paintCell( QPainter *p, int row, int col )  This pure virtual function is called to paint the single cell at \e  (row,col) using \e p, which is open when paintCell() is called and  must remain open.  The coordinate system is \link QPainter::translate() translated \endlink  such that the origin is at the top left corner of the cell to be  painted; i.e. \e cell coordinates.  Do not scale or shear the coordinate  system (or if you do, restore the transformation matrix before you  return).  By default, the painter is not clipped, for maximum efficiency. For safety,  call setTableFlags(Tbl_clipCellPainting) to enable clipping.  \sa paintEvent(), QPainter(), setTableFlags() *//*!  Handles paint events for the table view.  Calls paintCell() for the cells that needs to be repainted.*/void QTableView::paintEvent( QPaintEvent *e ){    QRect updateR = e->rect();			// update rectangle    if ( sbDirty ) {	bool e = eraseInPaint;	updateScrollBars();	eraseInPaint = e;    }    QPainter paint( this );    if ( !contentsRect().contains( updateR ) ) {// update frame ?	paint.save();	QRegion cr(updateR.intersect(frameRect()));	cr -= contentsRect();	paint.setClipRegion( cr );	if ( inherits( "QMultiLineEdit" ) ){#ifdef QT_KEYPAD_MODE	    if ( !qt_modalEditingEnabled || isModalEditing() )#endif	    	    {		paint.eraseRect(updateR);	    }	    if (!hasFocus()){		// clear the frame and margin		QBrush brush(colorGroup().brush(QColorGroup::Base));#ifdef QT_KEYPAD_MODE		if( qt_modalEditingEnabled )		    brush = colorGroup().brush(QColorGroup::Background);#endif		paint.fillRect(0, 0, width(), height(), brush);	    }	}		drawFrame( &paint );	if ( updateR.left() < frameWidth() ) 		//###	    updateR.setLeft( frameWidth() );	if ( updateR.top() < frameWidth() )	    updateR.setTop( frameWidth() );	paint.restore();    }    int maxWX = maxViewX();    int maxWY = maxViewY();#ifdef QT_KEYPAD_MODE    if (qt_modalEditingEnabled && isModalEditing()){	paint.fillRect(maxWX+1+margin(), 1, width(), height(), colorGroup().brush(QColorGroup::Background)); // fill gap around scrollbars 	paint.fillRect(lineWidth(), maxWY+1+margin(), width()-2*lineWidth(), height() - maxWY, colorGroup().brush(QColorGroup::Background));      }#endif    if ( updateR.right() > maxWX )	updateR.setRight( maxWX );    if ( updateR.bottom() > maxWY )	updateR.setBottom( maxWY );    setupPainter( &paint );			// prepare for painting table    int firstRow = findRow( updateR.y() );    int firstCol = findCol( updateR.x() );    int	 xStart, yStart;    if ( !colXPos( firstCol, &xStart ) || !rowYPos( firstRow, &yStart ) ) {	// erase area outside cells but in view	if ( inherits( "QMultiLineEdit" ) ) {	    const QColorGroup g = colorGroup();#ifdef QT_KEYPAD_MODE	    if ( qt_modalEditingEnabled && !isModalEditing() )		paint.fillRect( updateR, g.brush(QColorGroup::Background) );	    else#endif	    paint.fillRect( updateR, g.brush(QColorGroup::Base) );	} else {	    paint.eraseRect( updateR );	}	return;    }    int	  maxX	= updateR.right();    int	  maxY	= updateR.bottom();    int	  row	= firstRow;    int	  col;    int	  yPos	= yStart;    int	  xPos = maxX+1; // in case the while() is empty    int	  nextX;    int	  nextY;    QRect winR = viewRect();    QRect cellR;    QRect cellUR;#ifndef QT_NO_TRANSFORMATIONS    QWMatrix matrix;#endif    while ( yPos <= maxY && row < nRows ) {	nextY = yPos + (cellH ? cellH : cellHeight( row ));	if ( testTableFlags( Tbl_cutCellsV ) && nextY > ( maxWY + 1 ) )	    break;	col  = firstCol;	xPos = xStart;	while ( xPos <= maxX && col < nCols ) {	    nextX = xPos + (cellW ? cellW : cellWidth( col ));	    if ( testTableFlags( Tbl_cutCellsH ) && nextX > ( maxWX + 1 ) )		break;	    cellR.setRect( xPos, yPos, cellW ? cellW : cellWidth(col),				       cellH ? cellH : cellHeight(row) );	    cellUR = cellR.intersect( updateR );	    if ( cellUR.isValid() ) {		cellUpdateR = cellUR;		cellUpdateR.moveBy( -xPos, -yPos ); // cell coordinates		if ( eraseInPaint )		    paint.eraseRect( cellUR );#ifndef QT_NO_TRANSFORMATIONS

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品系列在线播放| 国产欧美一区二区在线| 日韩在线一区二区| 8x8x8国产精品| 国产精品一区二区在线观看不卡| 中文字幕国产一区| 国内一区二区视频| 一区二区三区中文字幕| 欧美一卡二卡在线| 99久久免费视频.com| 久久精品国产99国产精品| 国产精品日产欧美久久久久| 欧美日韩一区二区三区视频| 国产原创一区二区| 亚洲国产欧美在线| 国产精品免费aⅴ片在线观看| 欧美优质美女网站| 9人人澡人人爽人人精品| 免费在线观看日韩欧美| 自拍偷拍亚洲综合| 精品国产髙清在线看国产毛片| www.在线欧美| 天天操天天色综合| 亚洲欧美日韩人成在线播放| 久久综合精品国产一区二区三区| 91久久线看在观草草青青| 美国十次综合导航| 日韩精品乱码av一区二区| 国产精品九色蝌蚪自拍| 欧美刺激午夜性久久久久久久| 91黄色免费观看| 成人黄色小视频| 久久99国产精品久久| 亚洲一区二区精品视频| 亚洲激情在线播放| 国产欧美一区二区三区沐欲| 欧美一区二区三区在线视频| 欧美在线观看视频一区二区| 99精品视频在线播放观看| 国产在线一区观看| 亚洲无人区一区| 亚洲色图色小说| 久久久精品免费观看| 欧美大片国产精品| 欧美一区二区在线播放| 日韩欧美一区中文| 欧美喷潮久久久xxxxx| 91亚洲精华国产精华精华液| 视频一区视频二区中文字幕| 亚洲成人一区二区在线观看| 亚洲精品亚洲人成人网 | 日韩欧美国产综合| 51久久夜色精品国产麻豆| 欧美日韩国产美女| 色偷偷一区二区三区| 91麻豆国产福利在线观看| 极品少妇一区二区| 国产在线视频精品一区| 国产一区二区电影| 国产老肥熟一区二区三区| 国产一区二区三区观看| 国产乱淫av一区二区三区| 国产精品一品视频| 国产99久久久国产精品| 国产99久久精品| 成人午夜激情在线| 成人av电影免费观看| av中文字幕在线不卡| 国产一区二区三区高清播放| a4yy欧美一区二区三区| 99久久er热在这里只有精品15 | 99久久99久久综合| 欧美中文字幕亚洲一区二区va在线| av高清不卡在线| 9l国产精品久久久久麻豆| 欧美性极品少妇| 51精品秘密在线观看| 精品国产乱子伦一区| 日本一区二区三区在线不卡| 最近日韩中文字幕| 亚洲一卡二卡三卡四卡五卡| 日韩中文字幕区一区有砖一区| 日韩精品久久理论片| 福利一区二区在线| 欧美怡红院视频| 日韩视频永久免费| 国产三级一区二区| 亚洲免费av观看| 青青草成人在线观看| 国产精品亚洲午夜一区二区三区 | 亚洲一区免费视频| 日韩国产精品91| 国产精品一区不卡| 在线不卡中文字幕| 国产欧美日韩精品在线| 亚洲精品国产a| 日韩**一区毛片| 国产精品99久| 欧美中文字幕一区二区三区| 欧美中文字幕一区| 久久午夜色播影院免费高清| 国产精品盗摄一区二区三区| 天堂成人免费av电影一区| 国产精品一区二区三区四区| 色婷婷综合久久| 国产日韩欧美激情| 五月天久久比比资源色| 国产精品一区在线观看乱码| 欧美色图片你懂的| 亚洲欧美色一区| 精品一区二区在线视频| 色综合亚洲欧洲| 日韩欧美一级二级三级久久久| 亚洲国产精品高清| 人人超碰91尤物精品国产| 波波电影院一区二区三区| 日韩视频一区二区三区| 26uuu久久天堂性欧美| 国产精品电影院| 激情成人午夜视频| 欧美色综合网站| 国产精品久久久久久亚洲伦 | 欧美日韩激情在线| 国产精品视频观看| 久久精品国产99| 91精品国产全国免费观看| 中文字幕一区二区三区视频 | 理论电影国产精品| 欧美视频精品在线观看| 玉米视频成人免费看| 色综合中文字幕国产| 精品久久久久一区二区国产| 一级女性全黄久久生活片免费| 福利91精品一区二区三区| 欧美高清www午色夜在线视频| 亚洲另类中文字| 在线观看亚洲一区| 中文字幕一区二区三区不卡在线 | 懂色av噜噜一区二区三区av| 久久众筹精品私拍模特| 一区二区三区欧美在线观看| 99精品国产视频| 亚洲人123区| 91性感美女视频| 1000部国产精品成人观看| 国产精品亚洲第一| 国产精品美女视频| 成人性生交大片| 亚洲欧美日韩精品久久久久| av日韩在线网站| 中文字幕欧美国产| 91女厕偷拍女厕偷拍高清| 国产精品国产三级国产专播品爱网 | 国产精品色婷婷久久58| 成人黄色片在线观看| 亚洲男人的天堂一区二区 | 欧美成人vps| 91热门视频在线观看| 成人午夜碰碰视频| 国产一区二区剧情av在线| 亚洲成av人片在线观看| 18成人在线视频| 亚洲欧美激情一区二区| 欧美一区二区视频网站| 欧美性淫爽ww久久久久无| 久久se这里有精品| 亚洲男女毛片无遮挡| 国产清纯在线一区二区www| 五月婷婷色综合| 日韩专区在线视频| 日韩精品每日更新| 成人动漫中文字幕| 国产精品丝袜黑色高跟| 亚洲精品日日夜夜| 久久成人免费日本黄色| 国产成人在线观看免费网站| 香蕉成人啪国产精品视频综合网| 久久亚洲影视婷婷| 制服丝袜亚洲精品中文字幕| 在线国产亚洲欧美| 国产精品综合久久| 国产精品一区二区久久精品爱涩 | 91网上在线视频| av综合在线播放| 春色校园综合激情亚洲| 黄网站免费久久| 亚洲一卡二卡三卡四卡五卡| 亚洲一二三专区| 亚洲成人在线网站| 日韩黄色在线观看| 亚洲视频香蕉人妖| 日日噜噜夜夜狠狠视频欧美人| 亚洲午夜国产一区99re久久| 一区二区三区.www| 青青青伊人色综合久久| 国产精品一二三区在线| 国产在线一区观看| 亚洲自拍与偷拍| 欧美午夜免费电影| 亚洲欧美成aⅴ人在线观看|