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

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

?? qtableview.cpp

?? qtopia-phone-2.2.0下公共的控件實現(xiàn)源代碼。
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
  currently on the top edge of the view.  \sa setYOffset(), xOffset(), topCell()*//*!  Scrolls the table such that \e y becomes the top pixel in the view.  The \e y parameter is in \e table coordinates.  The interaction with \link setTableFlags() Tbl_snapToVGrid  \endlink is tricky.  \sa yOffset(), setXOffset(), setOffset(), setTopCell()*/void QTableView::setYOffset( int y ){    setOffset( xOffset(), y );}/*!  Scrolls the table such that \e (x,y) becomes the top left pixel  in the view. Parameters \e (x,y) are in \e table coordinates.  The interaction with \link setTableFlags() Tbl_snapTo*Grid \endlink  is tricky.  If \e updateScrBars is TRUE, the scroll bars are  updated.  \sa xOffset(), yOffset(), setXOffset(), setYOffset(), setTopLeftCell()*/void QTableView::setOffset( int x, int y, bool updateScrBars ){    if ( (!testTableFlags(Tbl_snapToHGrid) || xCellDelta == 0) &&	 (!testTableFlags(Tbl_snapToVGrid) || yCellDelta == 0) &&	 (x == xOffs && y == yOffs) )	return;    if ( x < 0 )	x = 0;    if ( y < 0 )	y = 0;    if ( cellW ) {	if ( x > maxXOffset() )	    x = maxXOffset();	xCellOffs = x / cellW;	if ( !testTableFlags(Tbl_snapToHGrid) ) {	    xCellDelta	= (short)(x % cellW);	} else {	    x		= xCellOffs*cellW;	    xCellDelta	= 0;	}    } else {	int xn=0, xcd=0, col = 0;	while ( col < nCols-1 && x >= xn+(xcd=cellWidth(col)) ) {	    xn += xcd;	    col++;	}	xCellOffs = col;	if ( testTableFlags(Tbl_snapToHGrid) ) {	    xCellDelta = 0;	    x = xn;	} else {	    xCellDelta = (short)(x-xn);	}    }    if ( cellH ) {	if ( y > maxYOffset() )	    y = maxYOffset();	yCellOffs = y / cellH;	if ( !testTableFlags(Tbl_snapToVGrid) ) {	    yCellDelta	= (short)(y % cellH);	} else {	    y		= yCellOffs*cellH;	    yCellDelta	= 0;	}    } else {	int yn=0, yrd=0, row=0;	while ( row < nRows-1 && y >= yn+(yrd=cellHeight(row)) ) {	    yn += yrd;	    row++;	}	yCellOffs = row;	if ( testTableFlags(Tbl_snapToVGrid) ) {	    yCellDelta = 0;	    y = yn;	} else {	    yCellDelta = (short)(y-yn);	}    }    int dx = (x - xOffs);    int dy = (y - yOffs);    xOffs = x;    yOffs = y;    if ( autoUpdate() && isVisible() )	scroll( dx, dy );    if ( updateScrBars )	updateScrollBars( verValue | horValue );}/*!  \fn int QTableView::cellWidth() const  Returns the column width, in pixels.	Returns 0 if the columns have  variable widths.  \sa setCellWidth(), cellHeight()*//*!  Returns the width of column \e col, in pixels.  This function is virtual and must be reimplemented by subclasses that  have variable cell widths. Note that if the total table width  changes, updateTableSize() must be called.  \sa setCellWidth(), cellHeight(), totalWidth(), updateTableSize()*/int QTableView::cellWidth( int ){    return cellW;}/*!  Sets the width in pixels of the table cells to \e cellWidth.  Setting it to zero means that the column width is variable.  When  set to 0 (this is the default) QTableView calls the virtual function  cellWidth() to get the width.  \sa cellWidth(), setCellHeight(), totalWidth(), numCols()*/void QTableView::setCellWidth( int cellWidth ){    if ( cellW == cellWidth )	return;#if defined(CHECK_RANGE)    if ( cellWidth < 0 || cellWidth > SHRT_MAX ) {	qWarning( "QTableView::setCellWidth: (%s) Argument out of range (%d)",		 name( "unnamed" ), cellWidth );	return;    }#endif    cellW = (short)cellWidth;    updateScrollBars( horSteps | horRange );    if ( autoUpdate() && isVisible() )	repaint();}/*!  \fn int QTableView::cellHeight() const  Returns the row height, in pixels.  Returns 0 if the rows have  variable heights.  \sa setCellHeight(), cellWidth()*//*!  Returns the height of row \e row, in pixels.  This function is virtual and must be reimplemented by subclasses that  have variable cell heights.  Note that if the total table height  changes, updateTableSize() must be called.  \sa setCellHeight(), cellWidth(), totalHeight()*/int QTableView::cellHeight( int ){    return cellH;}/*!  Sets the height in pixels of the table cells to \e cellHeight.  Setting it to zero means that the row height is variable.  When set  to 0 (this is the default) QTableView calls the virtual function  cellHeight() to get the height.  \sa cellHeight(), setCellWidth(), totalHeight(), numRows()*/void QTableView::setCellHeight( int cellHeight ){    if ( cellH == cellHeight )	return;#if defined(CHECK_RANGE)    if ( cellHeight < 0 || cellHeight > SHRT_MAX ) {	qWarning( "QTableView::setCellHeight: (%s) Argument out of range (%d)",		 name( "unnamed" ), cellHeight );	return;    }#endif    cellH = (short)cellHeight;    if ( autoUpdate() && isVisible() )	repaint();    updateScrollBars( verSteps | verRange );}/*!  Returns the total width of the table in pixels.  This function is virtual and should be reimplemented by subclasses that  have variable cell widths and a non-trivial cellWidth() function, or a  large number of columns in the table.  The default implementation may be slow for very wide tables.  \sa cellWidth(), totalHeight() */int QTableView::totalWidth(){    if ( cellW ) {	return cellW*nCols;    } else {	int tw = 0;	for( int i = 0 ; i < nCols ; i++ )	    tw += cellWidth( i );	return tw;    }}/*!  Returns the total height of the table in pixels.  This function is virtual and should be reimplemented by subclasses that  have variable cell heights and a non-trivial cellHeight() function, or a  large number of rows in the table.  The default implementation may be slow for very tall tables.  \sa cellHeight(), totalWidth()*/int QTableView::totalHeight(){    if ( cellH ) {	return cellH*nRows;    } else {	int th = 0;	for( int i = 0 ; i < nRows ; i++ )	    th += cellHeight( i );	return th;    }}/*!  \fn uint QTableView::tableFlags() const  Returns the union of the table flags that are currently set.  \sa setTableFlags(), clearTableFlags(), testTableFlags()*//*!  \fn bool QTableView::testTableFlags( uint f ) const  Returns TRUE if any of the table flags in \e f are currently set,  otherwise FALSE.  \sa setTableFlags(), clearTableFlags(), tableFlags()*//*!  Sets the table flags to \e f.  If a flag setting changes the appearance of the table the table is  repainted if and only if autoUpdate() is TRUE.  The table flags are mostly single bits, though there are some multibit  flags for convenience. Here is a complete list:  <dl compact>  <dt> Tbl_vScrollBar <dd> The table has a vertical scroll bar.  <dt> Tbl_hScrollBar <dd> The table has a horizontal scroll bar.  <dt> Tbl_autoVScrollBar <dd> The table has a vertical scroll bar if  and only if the table is taller than the view.  <dt> Tbl_autoHScrollBar <dd> The table has a horizontal scroll bar if  and only if the table is wider than the view.  <dt> Tbl_autoScrollBars <dd> The union of the previous two flags.  <dt> Tbl_clipCellPainting <dd> The table uses QPainter::setClipRect() to  make sure that paintCell() will not draw outside the cell  boundaries.  <dt> Tbl_cutCellsV <dd> The table will never show part of a  cell at the bottom of the table; if there is not space for all of  a cell the space is left blank.  <dt> Tbl_cutCellsH <dd> The table will never show part of a  cell at the right side of the table; if there is not space for all of  a cell the space is left blank.  <dt> Tbl_cutCells <dd> The union of the previous two flags.  <dt> Tbl_scrollLastHCell <dd> When the user scrolls horizontally,  let him/her scroll the last cell leftward until it is at the left  edge of the view.  If this flag is not set, the user can only scroll  to the point where last cell is completely visible.  <dt> Tbl_scrollLastVCell <dd> When the user scrolls vertically, let  him/her scroll the last cell upward until it is at the top edge of  the view.  If this flag is not set, the user can only scroll to the  point where last cell is completely visible.  <dt> Tbl_scrollLastCell <dd> The union of the previous two flags.  <dt> Tbl_smoothHScrolling <dd> The table scrolls as smoothly as  possible when the user scrolls horizontally. When this flag is not  set scrolling is done one cell at a time.  <dt> Tbl_smoothVScrolling <dd> The table scrolls as smoothly as  possible when scrolling vertically. When this flag is not set  scrolling is done one cell at a time.  <dt> Tbl_smoothScrolling <dd> The union of of previous two flags.  <dt> Tbl_snapToHGrid <dd> Except when the user is actually scrolling,  the leftmost column shown snaps to the leftmost edge of the view.  <dt> Tbl_snapToVGrid <dd> Except when the user is actually  scrolling, the top row snaps to the top edge of the view.  <dt> Tbl_snapToGrid <dd> The union of the previous two flags.  </dl>  You can specify more than one flag at a time using bitwise OR.  Example:  \code    setTableFlags( Tbl_smoothScrolling | Tbl_autoScrollBars );  \endcode  \warning The cutCells options (\c Tbl_cutCells, \c Tbl_cutCellsH and  Tbl_cutCellsV) may cause painting problems when scrollbars are  enabled. Do not combine cutCells and scrollbars.  \sa clearTableFlags(), testTableFlags(), tableFlags()*/void QTableView::setTableFlags( uint f ){    f = (f ^ tFlags) & f;			// clear flags already set    tFlags |= f;    bool updateOn = autoUpdate();    setAutoUpdate( FALSE );    uint repaintMask = Tbl_cutCellsV | Tbl_cutCellsH;    if ( f & Tbl_vScrollBar ) {	setVerScrollBar( TRUE );    }    if ( f & Tbl_hScrollBar ) {	setHorScrollBar( TRUE );    }    if ( f & Tbl_autoVScrollBar ) {	updateScrollBars( verRange );    }    if ( f & Tbl_autoHScrollBar ) {	updateScrollBars( horRange );    }    if ( f & Tbl_scrollLastHCell ) {	updateScrollBars( horRange );    }    if ( f & Tbl_scrollLastVCell ) {	updateScrollBars( verRange );    }    if ( f & Tbl_snapToHGrid ) {	updateScrollBars( horRange );    }    if ( f & Tbl_snapToVGrid ) {	updateScrollBars( verRange );    }    if ( f & Tbl_snapToGrid ) {			// Note: checks for 2 flags	if ( (f & Tbl_snapToHGrid) != 0 && xCellDelta != 0 || //have to scroll?	     (f & Tbl_snapToVGrid) != 0 && yCellDelta != 0 ) {	    snapToGrid( (f & Tbl_snapToHGrid) != 0,	// do snapping			(f & Tbl_snapToVGrid) != 0 );	    repaintMask |= Tbl_snapToGrid;	// repaint table	}    }    if ( updateOn ) {	setAutoUpdate( TRUE );	updateScrollBars();	if ( isVisible() && (f & repaintMask) )	    repaint();    }}/*!  Clears the \link setTableFlags() table flags\endlink that are set  in \e f.  Example (clears a single flag):  \code    clearTableFlags( Tbl_snapToGrid );  \endcode  The default argument clears all flags.  \sa setTableFlags(), testTableFlags(), tableFlags()*/void QTableView::clearTableFlags( uint f ){    f = (f ^ ~tFlags) & f;		// clear flags that are already 0    tFlags &= ~f;    bool updateOn = autoUpdate();    setAutoUpdate( FALSE );    uint repaintMask = Tbl_cutCellsV | Tbl_cutCellsH;    if ( f & Tbl_vScrollBar ) {	setVerScrollBar( FALSE );    }    if ( f & Tbl_hScrollBar ) {	setHorScrollBar( FALSE );    }    if ( f & Tbl_scrollLastHCell ) {	int maxX = maxXOffset();	if ( xOffs > maxX ) {	    setOffset( maxX, yOffs );	    repaintMask |= Tbl_scrollLastHCell;	}	updateScrollBars( horRange );    }    if ( f & Tbl_scrollLastVCell ) {	int maxY = maxYOffset();	if ( yOffs > maxY ) {	    setOffset( xOffs, maxY );	    repaintMask |= Tbl_scrollLastVCell;	}	updateScrollBars( verRange );    }    if ( f & Tbl_smoothScrolling ) {	      // Note: checks for 2 flags	if ((f & Tbl_smoothHScrolling) != 0 && xCellDelta != 0 ||//must scroll?	    (f & Tbl_smoothVScrolling) != 0 && yCellDelta != 0 ) {	    snapToGrid( (f & Tbl_smoothHScrolling) != 0,      // do snapping			(f & Tbl_smoothVScrolling) != 0 );	    repaintMask |= Tbl_smoothScrolling;		     // repaint table	}    }    if ( f & Tbl_snapToHGrid ) {	updateScrollBars( horRange );    }    if ( f & Tbl_snapToVGrid ) {	updateScrollBars( verRange );    }    if ( updateOn ) {	setAutoUpdate( TRUE );	updateScrollBars();	     // returns immediately if nothing to do	if ( isVisible() && (f & repaintMask) )	    repaint();    }}/*!  \fn bool QTableView::autoUpdate() const  Returns TRUE if the view updates itself automatically whenever it  is changed in some way.  \sa setAutoUpdate()*//*!

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品91久久久中77777| 欧美日韩精品欧美日韩精品一| 欧美日韩国产一区二区三区地区| 久久奇米777| 美女一区二区久久| 日韩欧美亚洲国产精品字幕久久久| 一区二区在线观看视频| 色激情天天射综合网| 国产精品高清亚洲| 欧美网站一区二区| 免费成人av资源网| 亚洲一区av在线| 91精品国产综合久久久蜜臀粉嫩| 丝袜国产日韩另类美女| 欧美草草影院在线视频| 狠狠色狠狠色综合| 国产精品久久久久久久久久免费看| 成人黄色国产精品网站大全在线免费观看 | 国产乱码精品一区二区三区av| 国产欧美视频一区二区| 欧美中文一区二区三区| 乱中年女人伦av一区二区| 欧美一区二区三区色| 国产精品夜夜嗨| 亚洲精品美国一| 久久精品夜夜夜夜久久| 99精品国产91久久久久久| 奇米在线7777在线精品| 中文字幕在线观看不卡| 日韩欧美一二三四区| 91在线精品一区二区| 久久99久久久久久久久久久| 中文字幕一区二区三区乱码在线| 91精品国产美女浴室洗澡无遮挡| 成人午夜在线播放| 理论片日本一区| 香蕉乱码成人久久天堂爱免费| 欧美激情在线一区二区| 欧美大尺度电影在线| 911精品产国品一二三产区| 成人免费毛片aaaaa**| 美女免费视频一区二区| 亚洲超丰满肉感bbw| 亚洲永久精品国产| 一二三四区精品视频| 国产精品乱人伦中文| 国产精品视频在线看| 国产欧美一区二区精品仙草咪 | 91首页免费视频| 成人av在线一区二区| 风间由美一区二区三区在线观看| 麻豆成人av在线| 国产精品一品二品| 国内精品嫩模私拍在线| 国产在线视频精品一区| 国产**成人网毛片九色| 97久久精品人人澡人人爽| 97se亚洲国产综合自在线 | 欧美色爱综合网| 欧美喷潮久久久xxxxx| 日韩欧美一级精品久久| 久久亚洲精华国产精华液| 国产欧美中文在线| 亚洲同性同志一二三专区| 视频一区免费在线观看| 国产一区999| 欧美在线观看你懂的| 日韩亚洲欧美中文三级| 国产精品私人自拍| 日本欧洲一区二区| 成人h动漫精品一区二| 欧美丰满少妇xxxxx高潮对白| 欧美一级免费大片| 国产精品久久二区二区| 蜜臀va亚洲va欧美va天堂| av一本久道久久综合久久鬼色| 精品视频在线视频| 国产精品国产馆在线真实露脸| 香蕉影视欧美成人| 色噜噜狠狠一区二区三区果冻| 日韩精品中午字幕| 亚洲一区二区三区美女| 蜜臀久久99精品久久久画质超高清 | 亚洲综合一二三区| 成人免费观看av| 久久久不卡网国产精品一区| 亚洲成人一区在线| 一本大道av伊人久久综合| 国产午夜精品久久久久久久| 免费成人av在线| 欧美日韩精品一区二区在线播放| 国产精品久久久久久久久免费丝袜| eeuss影院一区二区三区| 欧美大片顶级少妇| 亚洲国产精品天堂| 日本精品免费观看高清观看| 国产精品视频看| av一区二区三区在线| 亚洲欧洲国产专区| 99视频一区二区| 亚洲欧美国产高清| 欧美综合天天夜夜久久| 亚洲高清久久久| 日韩视频永久免费| 国产一区二区三区久久久| 精品粉嫩超白一线天av| 久久99精品久久久久婷婷| 国产女人水真多18毛片18精品视频| 国产精品资源在线| 欧美日韩国产天堂| 亚洲成人高清在线| 欧美日韩久久久久久| 美日韩一级片在线观看| 久久久久久久久97黄色工厂| 欧美一级黄色录像| 亚洲一区二区欧美激情| 日韩免费观看高清完整版 | 日韩三级免费观看| 国产成人小视频| 亚洲图片欧美色图| 欧美韩国日本一区| 欧美精品在线视频| 成人精品电影在线观看| 午夜精品久久久久久久蜜桃app| 欧美电影免费提供在线观看| 成人久久18免费网站麻豆 | 欧美一区二区三区视频在线观看| 久久精品国产亚洲5555| 国产精品―色哟哟| 在线精品视频小说1| 国产精品影视天天线| 午夜免费欧美电影| 亚洲猫色日本管| 国产女主播一区| 久久久亚洲欧洲日产国码αv| 欧美性视频一区二区三区| av不卡在线播放| 国产一区二区调教| 美国一区二区三区在线播放| 一区二区三区久久| 亚洲男女毛片无遮挡| 亚洲视频免费观看| 亚洲国产成人91porn| 国产精品不卡视频| 精品久久久久一区二区国产| 丁香亚洲综合激情啪啪综合| 夜夜嗨av一区二区三区四季av| 日韩欧美黄色影院| 精品系列免费在线观看| 日本最新不卡在线| 亚洲国产精品av| 日韩av电影免费观看高清完整版在线观看| 欧美一区二区在线播放| 欧美精品乱码久久久久久按摩| 一本色道a无线码一区v| 91亚洲精华国产精华精华液| 99精品久久只有精品| 色综合久久九月婷婷色综合| 日本高清无吗v一区| 欧美日韩国产小视频| 日韩精品专区在线影院观看| 国产欧美日韩另类一区| 中文字幕亚洲欧美在线不卡| 亚洲精品国产无天堂网2021| 国产日韩欧美不卡| 精品嫩草影院久久| 成人欧美一区二区三区1314| 亚洲一区精品在线| 麻豆精品新av中文字幕| 成人av电影免费在线播放| 欧美亚洲综合网| 亚洲精品一区二区三区四区高清| 国产精品欧美一区喷水| 麻豆精品在线观看| 成人av资源在线观看| 日韩欧美在线一区二区三区| 综合av第一页| 国产激情视频一区二区在线观看 | 亚洲精品视频在线观看网站| 另类调教123区| 欧美剧情电影在线观看完整版免费励志电影 | 亚洲精品日韩综合观看成人91| 久久成人免费电影| 在线看国产日韩| 久久综合狠狠综合久久综合88| 国产精品丝袜在线| 国内国产精品久久| 欧美大黄免费观看| 美女一区二区三区| 制服视频三区第一页精品| 亚洲综合免费观看高清在线观看| 成人做爰69片免费看网站| 国产亚洲精品中文字幕| 国产尤物一区二区在线| 91精品国产综合久久精品图片| 亚洲成人动漫av| 555夜色666亚洲国产免| 男女视频一区二区| 欧美成人一区二区三区| 国产亚洲成aⅴ人片在线观看|