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

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

?? qscrollview.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
    vp->repaint( x, y, w, h, erase );}/*!  For backward compatibility only.  It is easier to use drawContents(QPainter*,int,int,int,int).  The default implementation translates the painter appropriately  and calls drawContents(QPainter*,int,int,int,int).*/void QScrollView::drawContentsOffset(QPainter* p, int offsetx, int offsety, int clipx, int clipy, int clipw, int cliph){    p->translate(-offsetx,-offsety);    drawContents(p, clipx, clipy, clipw, cliph);}/*!  \fn void QScrollView::drawContents(QPainter* p, int clipx, int clipy, int clipw, int cliph)  Reimplement this method if you are viewing a drawing area rather  than a widget.  The function should draw the rectangle (\a clipx, \a clipy, \a clipw, \a  cliph ) of the contents, using painter \a p.  The clip rectangle is  in the scroll views's coordinates.  For example:  \code  {    // Fill a 40000 by 50000 rectangle at (100000,150000)    // Calculate the coordinates...    int x1 = 100000, y1 = 150000;    int x2 = x1+40000-1, y2 = y1+50000-1;    // Clip the coordinates so X/Windows will not have problems...    if (x1 < clipx) x1=clipx;    if (y1 < clipy) y1=clipy;    if (x2 > clipx+clipw-1) x2=clipx+clipw-1;    if (y2 > clipy+cliph-1) y2=clipy+cliph-1;    // Paint using the small coordinates...    if ( x2 >= x1 && y2 >= y1 )	p->fillRect(x1, y1, x2-x1+1, y2-y1+1, red);  }  \endcode  The clip rectangle and translation of the painter \a p is already set  appropriately.*/void QScrollView::drawContents(QPainter*, int, int, int, int){}/*!  \reimp*/void QScrollView::frameChanged(){    // Ensures that scrollbars have the correct size when the frame    // style changes.    updateScrollBars();}/*!  Returns the viewport widget of the scrollview.  This is the widget  containing the contents widget or which is the drawing area.*/QWidget* QScrollView::viewport() const{    return d->clipped_viewport ? d->clipped_viewport : &d->viewport;}/*!  Returns the clipper widget.  Contents in the scrollview is ultimately clipped to be inside  the clipper widget.  You should not need to access this.  \sa visibleWidth(), visibleHeight()*/QWidget* QScrollView::clipper() const{    return &d->viewport;}/*!  Returns the horizontal amount of the content that is visible.*/int QScrollView::visibleWidth() const{    return clipper()->width();}/*!  Returns the vertical amount of the content that is visible.*/int QScrollView::visibleHeight() const{    return clipper()->height();}void QScrollView::changeFrameRect(const QRect& r){    QRect oldr = frameRect();    if (oldr != r) {	QRect cr = contentsRect();	QRegion fr( frameRect() );	fr = fr.subtract( contentsRect() );	setFrameRect( r );	if ( isVisible() ) {	    cr = cr.intersect( contentsRect() );	    fr = fr.unite( frameRect() );	    fr = fr.subtract( cr );	    if ( !fr.isEmpty() )		QApplication::postEvent( this, new QPaintEvent( fr, FALSE ) );	}    }}/*!  Sets the margins around the scrolling area.  This is useful for  applications such as spreadsheets with `locked' rows and columns.  The marginal space is \e inside the frameRect() and is left blank -  reimplement drawContents() or put widgets in the unused area.  By default all margins are zero.  \sa frameChanged()*/void QScrollView::setMargins(int left, int top, int right, int bottom){    if ( left == d->l_marg &&	 top == d->t_marg &&	 right == d->r_marg &&	 bottom == d->b_marg )	return;    d->l_marg = left;    d->t_marg = top;    d->r_marg = right;    d->b_marg = bottom;    updateScrollBars();}/*!  Returns the current left margin.  \sa setMargins()*/int QScrollView::leftMargin() const{    return d->l_marg;}/*!  Returns the current top margin.  \sa setMargins()*/int QScrollView::topMargin() const{    return d->t_marg;}/*!  Returns the current right margin.  \sa setMargins()*/int QScrollView::rightMargin() const{    return d->r_marg;}/*!  Returns the current bottom margin.  \sa setMargins()*/int QScrollView::bottomMargin() const{    return d->b_marg;}/*!  \reimp*/bool QScrollView::focusNextPrevChild( bool next ){    //  Makes sure that the new focus widget is on-screen, if    //  necessary by scrolling the scroll view.    // first set things up for the scan    QFocusData *f = focusData();    QWidget *startingPoint = f->home();    QWidget *candidate = 0;    QWidget *w = next ? f->next() : f->prev();    QSVChildRec *r;    // then scan for a possible focus widget candidate    while( !candidate && w != startingPoint ) {	if ( w != startingPoint &&	     (w->focusPolicy() & TabFocus) == TabFocus	     && w->isEnabled() &&!w->focusProxy() && w->isVisible() )	    candidate = w;	w = next ? f->next() : f->prev();    }    // if we could not find one, maybe super or parentWidget() can?    if ( !candidate )	return QFrame::focusNextPrevChild( next );    // we've found one.    r = d->ancestorRec( candidate );    if ( r && ( r->child == candidate ||		candidate->isVisibleTo( r->child ) ) ) {	QPoint cp = r->child->mapToGlobal(QPoint(0,0));	QPoint cr = candidate->mapToGlobal(QPoint(0,0)) - cp;	ensureVisible( r->x+cr.x()+candidate->width()/2,		       r->y+cr.y()+candidate->height()/2,		       candidate->width()/2,		       candidate->height()/2 );    }    candidate->setFocus();    return TRUE;}/*!  When large numbers of child widgets are in a scrollview, especially  if they are close together, the scrolling performance can suffer  greatly.  If you call enableClipper(TRUE), the scrollview will  use an extra widget to group child widgets.  Note that you may only call enableClipper() prior to adding widgets.  For a full discussion, see the overview documentation of this  class.*/void QScrollView::enableClipper(bool y){    if ( !d->clipped_viewport == !y )	return;    if ( d->children.count() )	qFatal("May only call QScrollView::enableClipper() before adding widgets");    if ( y ) {	d->clipped_viewport = new QClipperWidget(clipper(), "qt_clipped_viewport", d->flags);	d->clipped_viewport->setGeometry(-coord_limit/2,-coord_limit/2,					coord_limit,coord_limit);	d->viewport.setBackgroundMode(NoBackground); // no exposures for this	d->viewport.removeEventFilter( this );	d->clipped_viewport->installEventFilter( this );    } else {	delete d->clipped_viewport;	d->clipped_viewport = 0;    }}/*!  Sets the scrollview to have a static background if \a y is TRUE, or a scrolling background otherwise. By default,  the background is scrolling.  Beware that this mode is quite slow, as a full repaint of the visible area has to be triggered on every contents move.  \sa hasStaticBackground()*/void  QScrollView::setStaticBackground(bool y){    d->static_bg = y;}/*!  Returns wether QScrollView uses a static background.  \sa setStaticBackground()*/bool QScrollView::hasStaticBackground() const{    return d->static_bg;}/*!  Returns the    point \a p  translated to    a point on the viewport() widget.*///### make this const in 3.0QPoint QScrollView::contentsToViewport(const QPoint& p){    if ( d->clipped_viewport ) {	return QPoint( p.x() - contentsX() - d->clipped_viewport->x(),		       p.y() - contentsY() - d->clipped_viewport->y() );    } else {	return QPoint( p.x() - contentsX(),		       p.y() - contentsY() );    }}/*!  Returns the    point on the viewport \a vp  translated to    a point in the contents.*///### make this const in 3.0QPoint QScrollView::viewportToContents(const QPoint& vp){    if ( d->clipped_viewport ) {	return QPoint( vp.x() + contentsX() + d->clipped_viewport->x(),		       vp.y() + contentsY() + d->clipped_viewport->y() );    } else {	return QPoint( vp.x() + contentsX(),		       vp.y() + contentsY() );    }}/*!  Translates    a point (\a x, \a y) in the contents  to    a point (\a vx, \a vy) on the viewport() widget.*/void QScrollView::contentsToViewport(int x, int y, int& vx, int& vy){    const QPoint v = contentsToViewport(QPoint(x,y));    vx = v.x();    vy = v.y();}/*!  Translates    a point (\a vx, \a vy) on the viewport() widget  to    a point (\a x, \a y) in the contents.*/void QScrollView::viewportToContents(int vx, int vy, int& x, int& y){    const QPoint c = viewportToContents(QPoint(vx,vy));    x = c.x();    y = c.y();}/*!  \reimp*/QSizePolicy QScrollView::sizePolicy() const{    //### removeme 3.0    return QWidget::sizePolicy();}/*!  \reimp*/QSize QScrollView::sizeHint() const{    constPolish();    QSize result = QSize(frameWidth()*2, frameWidth()*2);    if ( d->policy > Manual ) {	QSVChildRec* r = d->children.first();	if (r)	{            QSize cs = r->child->sizeHint();	    if ( cs.isValid() )        	result += cs.boundedTo( r->child->maximumSize() );	    else        	result += r->child->size();        }    } else {	result += QSize(contentsWidth(),contentsHeight());    }    return result;}/*!  \reimp*/QSize QScrollView::minimumSizeHint() const{    return QSize(100+frameWidth()*2,		 100+frameWidth()*2);}/*!  \reimp  (Implemented to get rid of a compiler warning.)*/void QScrollView::drawContents( QPainter * ){}#ifndef QT_NO_DRAGANDDROP/*!  \internal*/void QScrollView::startDragAutoScroll(){    if ( !d->autoscroll_timer.isActive() ) {	d->autoscroll_time = initialScrollTime;	d->autoscroll_accel = initialScrollAccel;	d->autoscroll_timer.start( d->autoscroll_time );    }}/*!  \internal*/void QScrollView::stopDragAutoScroll(){    d->autoscroll_timer.stop();}/*!  \internal*/void QScrollView::doDragAutoScroll(){    QPoint p = d->viewport.mapFromGlobal( QCursor::pos() );    if ( d->autoscroll_accel-- <= 0 && d->autoscroll_time ) {	d->autoscroll_accel = initialScrollAccel;	d->autoscroll_time--;	d->autoscroll_timer.start( d->autoscroll_time );    }    int l = QMAX( 1, ( initialScrollTime- d->autoscroll_time ) );    int dx = 0, dy = 0;    if ( p.y() < autoscroll_margin ) {	dy = -l;    } else if ( p.y() > visibleHeight() - autoscroll_margin ) {	dy = +l;    }    if ( p.x() < autoscroll_margin ) {	dx = -l;    } else if ( p.x() > visibleWidth() - autoscroll_margin ) {	dx = +l;    }    if ( dx || dy ) {	scrollBy(dx,dy);    } else {	stopDragAutoScroll();    }}/*!  If \a b is set to TRUE, the QScrollView automatically scrolls the contents  in drag move events if the user moves the cursor close to a border of the  view. This of course only works id the viewport accepts drops!  Specifying FALSE here disables this autoscroll feature.*/void QScrollView::setDragAutoScroll( bool b ){    d->drag_autoscroll = b;}/*!  Returns TRUE if autoscrolling in drag move events is enabled, else  FALSE.  \sa setDragAutoScroll()*/bool QScrollView::dragAutoScroll() const{    return d->drag_autoscroll;}#endif // QT_NO_DRAGANDDROP#endif // QT_NO_SCROLLVIEW

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷精品大视频在线蜜桃视频| 欧美激情中文字幕一区二区| 精品一区二区三区欧美| 国产精品的网站| 精品理论电影在线观看| 91麻豆高清视频| 成人一区二区三区中文字幕| 秋霞影院一区二区| 有码一区二区三区| 精品国产区一区| 欧美一区午夜视频在线观看| 欧美日韩国产大片| 欧美午夜一区二区三区| 91丨porny丨最新| 色综合久久久久网| 91论坛在线播放| 色屁屁一区二区| 91久久精品一区二区三区| 日本精品裸体写真集在线观看| 99久免费精品视频在线观看| 99久久精品情趣| 色偷偷一区二区三区| 色综合天天视频在线观看| 色悠悠久久综合| 欧美午夜精品免费| 91精品久久久久久蜜臀| 精品理论电影在线| 久久嫩草精品久久久精品一| 中文字幕精品三区| 亚洲欧美精品午睡沙发| 日韩av高清在线观看| 精品一区二区三区免费视频| 粉嫩欧美一区二区三区高清影视| 99re热视频这里只精品| 欧美成人女星排行榜| 欧美电影免费观看高清完整版在线 | 精品一区二区三区的国产在线播放| 韩日av一区二区| 成人性视频免费网站| 欧美在线观看视频在线| 精品入口麻豆88视频| 亚洲区小说区图片区qvod| 视频一区二区不卡| 99re在线精品| 久久精品一区二区| 亚洲成a人v欧美综合天堂下载| 国产一区 二区 三区一级| 欧美日韩一区二区三区不卡 | 精品国产伦理网| 国产精品成人一区二区三区夜夜夜 | 欧美三级电影在线观看| 欧美韩日一区二区三区四区| 麻豆精品在线播放| 欧美视频一区二区在线观看| 国产精品久久久久永久免费观看 | 日韩精品中文字幕一区| 亚洲综合色视频| 91视频一区二区三区| 欧美激情中文不卡| 久久精品国产澳门| 欧美变态tickling挠脚心| 偷拍亚洲欧洲综合| 中文字幕精品在线不卡| 亚洲影院免费观看| 在线视频亚洲一区| 一二三区精品视频| 欧美在线一区二区三区| 亚洲黄色小说网站| 欧美午夜精品久久久久久超碰 | 1024成人网| 欧美国产丝袜视频| 精品亚洲成a人| 在线观看成人免费视频| 亚洲人成小说网站色在线| av亚洲精华国产精华精华| 国产精品美女视频| 91麻豆高清视频| 视频一区国产视频| 欧美成人一区二区| 国产成人精品一区二| 国产精品天美传媒沈樵| 91国偷自产一区二区开放时间| 一区二区三区在线观看国产| 欧美日本视频在线| 久草精品在线观看| 国产精品美女久久久久aⅴ| 欧美在线短视频| 久久99精品国产.久久久久 | 精品一区二区三区视频在线观看 | 97se亚洲国产综合自在线观| 亚洲午夜日本在线观看| 欧美精品一区二区三| 成人免费不卡视频| 日本网站在线观看一区二区三区| 久久先锋影音av鲁色资源网| 91丨九色丨尤物| 国产高清精品网站| 午夜不卡av在线| 一区二区三区久久| 国产精品视频yy9299一区| 欧美精品乱人伦久久久久久| 99re热这里只有精品免费视频| 欧美aaa在线| 亚洲一区二区在线免费看| 国产精品国模大尺度视频| 精品国产凹凸成av人导航| 欧美日韩中文字幕一区| 国产麻豆成人精品| 久久国产精品露脸对白| 青青青伊人色综合久久| 亚洲一卡二卡三卡四卡| 中文字幕亚洲区| 中文字幕一区二区在线播放 | 337p粉嫩大胆噜噜噜噜噜91av| 欧美日韩中文另类| 欧美三级视频在线播放| 在线视频你懂得一区二区三区| 97se亚洲国产综合自在线不卡| 国产99一区视频免费| 懂色中文一区二区在线播放| 国产成人夜色高潮福利影视| 国产91精品一区二区麻豆亚洲| 国产精品自拍在线| 成人avav影音| 一本色道久久综合狠狠躁的推荐| 成人v精品蜜桃久久一区| av在线这里只有精品| 99久久精品免费| 欧美日韩美女一区二区| 日韩一区二区在线观看视频| 26uuu亚洲综合色欧美| 久久精品一区二区三区不卡牛牛 | 欧美日韩1234| 亚洲精品在线免费播放| 亚洲欧美综合色| 日韩av中文字幕一区二区三区| 久久99国产精品久久99| heyzo一本久久综合| 欧美剧在线免费观看网站| 亚洲精品一区在线观看| 亚洲欧美日韩国产成人精品影院| 亚洲资源在线观看| 国产91综合网| 欧美日韩国产免费| 国产精品妹子av| 五月天精品一区二区三区| 成人午夜视频在线| 这里是久久伊人| 亚洲男女毛片无遮挡| 黑人巨大精品欧美一区| 欧美性一级生活| 国产精品美女久久久久久久久 | 亚洲国产欧美在线| 国产河南妇女毛片精品久久久| 欧美综合一区二区| 国产精品激情偷乱一区二区∴| 精品在线你懂的| 欧美一区永久视频免费观看| 国产精品成人免费精品自在线观看| 捆绑变态av一区二区三区| 欧美亚洲动漫精品| 依依成人综合视频| 91在线一区二区三区| 中文字幕一区免费在线观看| 国产乱人伦偷精品视频免下载| 日韩你懂的在线播放| 日韩国产一区二| 欧美日韩国产小视频在线观看| 国产精品久久午夜| 成人国产视频在线观看| 精品国免费一区二区三区| 美日韩一级片在线观看| 精品少妇一区二区三区在线播放| 亚洲国产综合在线| 欧美三级乱人伦电影| 日本美女一区二区三区视频| 制服.丝袜.亚洲.另类.中文| 日韩激情中文字幕| 久久先锋资源网| www.亚洲人| 亚洲成人精品影院| 日韩免费看的电影| 丁香婷婷综合色啪| 自拍偷拍亚洲综合| 欧美日韩三级一区| 久久99久久久久| 中文字幕亚洲精品在线观看| 欧美综合色免费| 国产在线不卡视频| 自拍偷拍亚洲欧美日韩| 欧美一级高清片| 成人美女在线观看| 日韩国产高清影视| 中文字幕一区av| 日韩欧美国产综合在线一区二区三区 | 国产精品一二一区| 亚洲一区二区三区四区五区黄| 欧美日韩成人一区| 成人午夜av影视| 蜜桃精品在线观看|