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

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

?? qscrollview.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
/*!  To provide simple processing of events on the contents,  this method receives all mouse  double click events sent to the viewport.  The default implementation translates the event and calls  contentsMouseDoubleClickEvent().  \sa QWidget::mouseDoubleClickEvent()*/void QScrollView::viewportMouseDoubleClickEvent( QMouseEvent* e ){    QMouseEvent ce(e->type(), viewportToContents(e->pos()),	e->globalPos(), e->button(), e->state());    contentsMouseDoubleClickEvent(&ce);}/*!  To provide simple processing of events on the contents,  this method receives all mouse  move events sent to the viewport.  The default implementation translates the event and calls  contentsMouseMoveEvent().  \sa QWidget::mouseMoveEvent()*/void QScrollView::viewportMouseMoveEvent( QMouseEvent* e ){    QMouseEvent ce(e->type(), viewportToContents(e->pos()),	e->globalPos(), e->button(), e->state());    contentsMouseMoveEvent(&ce);}#ifndef QT_NO_DRAGANDDROP/*!  To provide simple processing of events on the contents,  this method receives all drag enter  events sent to the viewport.  The default implementation translates the event and calls  contentsDragEnterEvent().  \sa QWidget::dragEnterEvent()*/void QScrollView::viewportDragEnterEvent( QDragEnterEvent* e ){    e->setPoint(viewportToContents(e->pos()));    contentsDragEnterEvent(e);    e->setPoint(contentsToViewport(e->pos()));}/*!  To provide simple processing of events on the contents,  this method receives all drag move  events sent to the viewport.  The default implementation translates the event and calls  contentsDragMoveEvent().  \sa QWidget::dragMoveEvent()*/void QScrollView::viewportDragMoveEvent( QDragMoveEvent* e ){    e->setPoint(viewportToContents(e->pos()));    contentsDragMoveEvent(e);    e->setPoint(contentsToViewport(e->pos()));}/*!  To provide simple processing of events on the contents,  this method receives all drag leave  events sent to the viewport.  The default implementation calls contentsDragLeaveEvent().  \sa QWidget::dragLeaveEvent()*/void QScrollView::viewportDragLeaveEvent( QDragLeaveEvent* e ){    contentsDragLeaveEvent(e);}/*!  To provide simple processing of events on the contents,  this method receives all drop  events sent to the viewport.  The default implementation translates the event and calls  contentsDropEvent().  \sa QWidget::dropEvent()*/void QScrollView::viewportDropEvent( QDropEvent* e ){    e->setPoint(viewportToContents(e->pos()));    contentsDropEvent(e);    e->setPoint(contentsToViewport(e->pos()));}#endif // QT_NO_DRAGANDDROP/*!  To provide simple processing of events on the contents,  this method receives all wheel  events sent to the viewport.  The default implementation translates the event and calls  contentsWheelEvent().  \sa QWidget::wheelEvent()*/void QScrollView::viewportWheelEvent( QWheelEvent* e ){    QWheelEvent ce( viewportToContents(e->pos()),	e->globalPos(), e->delta(), e->state());    contentsWheelEvent(&ce);    if ( ce.isAccepted() )	e->accept();    else	e->ignore();}/*! Returns the component horizontal scrollbar.  It is made available to allow accelerators, autoscrolling, etc., and to allow changing of arrow scroll rates: bar->setSteps( rate, bar->pageStep() ). It should not be otherwise manipulated. This function never returns 0.*/QScrollBar* QScrollView::horizontalScrollBar() const{    return &d->hbar;}/*! Returns the component vertical scrollbar.  It is made available to allow accelerators, autoscrolling, etc., and to allow changing of arrow scroll rates: bar->setSteps( rate, bar->pageStep() ). It should not be otherwise manipulated. This function never returns 0.*/QScrollBar* QScrollView::verticalScrollBar() const {    return &d->vbar;}/*! Scrolls the content so that the point (x, y) is visible with at least 50-pixel margins (if possible, otherwise centered).*/void QScrollView::ensureVisible( int x, int y ){    ensureVisible(x, y, 50, 50);}/*! Scrolls the content so that the point (x, y) is visible with at least the given pixel margins (if possible, otherwise centered).*/void QScrollView::ensureVisible( int x, int y, int xmargin, int ymargin ){    int pw=visibleWidth();    int ph=visibleHeight();    int cx=-contentsX();    int cy=-contentsY();    int cw=contentsWidth();    int ch=contentsHeight();    if ( pw < xmargin*2 )	xmargin=pw/2;    if ( ph < ymargin*2 )	ymargin=ph/2;    if ( cw <= pw ) {	xmargin=0;	cx=0;    }    if ( ch <= ph ) {	ymargin=0;	cy=0;    }    if ( x < -cx+xmargin )	cx = -x+xmargin;    else if ( x >= -cx+pw-xmargin )	cx = -x+pw-xmargin;    if ( y < -cy+ymargin )	cy = -y+ymargin;    else if ( y >= -cy+ph-ymargin )	cy = -y+ph-ymargin;    if ( cx > 0 )	cx=0;    else if ( cx < pw-cw && cw>pw )	cx=pw-cw;    if ( cy > 0 )	cy=0;    else if ( cy < ph-ch && ch>ph )	cy=ph-ch;    setContentsPos( -cx, -cy );}/*! Scrolls the content so that the point (x, y) is in the top-left corner.*/void QScrollView::setContentsPos( int x, int y ){    if ( x < 0 ) x = 0;    if ( y < 0 ) y = 0;    // Choke signal handling while we update BOTH sliders.    d->signal_choke=TRUE;    moveContents( -x, -y );    d->vbar.setValue( y );    d->hbar.setValue( x );//     updateScrollBars(); // ### warwick, why should we need that???    d->signal_choke=FALSE;//     updateScrollBars(); // ### warwick, why should we need that???}/*! Scrolls the content by \a dx to the left and \a dy upwards.*/void QScrollView::scrollBy( int dx, int dy ){    setContentsPos( contentsX()+dx, contentsY()+dy );}/*! Scrolls the content so that the point (x,y) is in the center of visible area.*/void QScrollView::center( int x, int y ){    ensureVisible( x, y, 32000, 32000 );}/*! Scrolls the content so that the point (x,y) is visible, with the given margins (as fractions of visible area). eg. <ul>   <li>Margin 0.0 allows (x,y) to be on edge of visible area.   <li>Margin 0.5 ensures (x,y) is in middle 50% of visible area.   <li>Margin 1.0 ensures (x,y) is in the center of the visible area. </ul>*/void QScrollView::center( int x, int y, float xmargin, float ymargin ){    int pw=visibleWidth();    int ph=visibleHeight();    ensureVisible( x, y, int( xmargin/2.0*pw+0.5 ), int( ymargin/2.0*ph+0.5 ) );}/*!  \fn void QScrollView::contentsMoving(int x, int y)  This signal is emitted just before the contents is moved  to the given position.  \sa contentsX(), contentsY()*//*!  Moves the contents.*/void QScrollView::moveContents(int x, int y){    if ( -x+visibleWidth() > contentsWidth() )	x=QMIN(0,-contentsWidth()+visibleWidth());    if ( -y+visibleHeight() > contentsHeight() )	y=QMIN(0,-contentsHeight()+visibleHeight());    int dx = x - d->vx;    int dy = y - d->vy;    if (!dx && !dy)	return; // Nothing to do    emit contentsMoving( -x, -y );    d->vx = x;    d->vy = y;    if ( d->clipped_viewport || d->static_bg ) {	// Cheap move (usually)	d->moveAllBy(dx,dy);    } else if ( /*dx && dy ||*/	 ( QABS(dy) * 5 > visibleHeight() * 4 ) ||	 ( QABS(dx) * 5 > visibleWidth() * 4 )	)    {	// Big move	if ( viewport()->isUpdatesEnabled() )	    viewport()->update();	d->moveAllBy(dx,dy);    } else {	// Small move	clipper()->scroll(dx,dy);    }    d->hideOrShowAll(this, TRUE );}/*!  Returns the X coordinate of the contents which is at the left  edge of the viewport.*/int QScrollView::contentsX() const{    return -d->vx;}/*!  Returns the Y coordinate of the contents which is at the top  edge of the viewport.*/int QScrollView::contentsY() const{    return -d->vy;}/*!  Returns the width of the contents area.*/int QScrollView::contentsWidth() const{    return d->vwidth;}/*!  Returns the height of the contents area.*/int QScrollView::contentsHeight() const{    return d->vheight;}/*!  Set the size of the contents area to \a w pixels wide and \a h  pixels high, and updates the viewport accordingly.*/void QScrollView::resizeContents( int w, int h ){    int ow = d->vwidth;    int oh = d->vheight;    d->vwidth = w;    d->vheight = h;    // Could more efficiently scroll if shrinking, repaint if growing, etc.    updateScrollBars();    if ( d->children.isEmpty() && d->policy == Default )	setResizePolicy( Manual );    if ( ow > w ) {	// Swap	int t=w;	w=ow;	ow=t;    }    // Refresh area ow..w    if ( ow < visibleWidth() && w >= 0 ) {	if ( ow < 0 )	    ow = 0;	if ( w > visibleWidth() )	    w = visibleWidth();	clipper()->update( contentsX()+ow, 0, w-ow, visibleHeight() );    }    if ( oh > h ) {	// Swap	int t=h;	h=oh;	oh=t;    }    // Refresh area oh..h    if ( oh < visibleHeight() && h >= 0 ) {	if ( oh < 0 )	    oh = 0;	if ( h > visibleHeight() )	    h = visibleHeight();	clipper()->update( 0, contentsY()+oh, visibleWidth(), h-oh);    }}/*!  Calls update() on rectangle defined by \a x, \a y, \a w, \a h,  translated appropriately.  If the rectangle in not visible,  nothing is repainted.  \sa repaintContents()*/void QScrollView::updateContents( int x, int y, int w, int h ){    QWidget* vp = viewport();    // Translate    x -= contentsX();    y -= contentsY();    // Clip to QCOORD space    if ( x < 0 ) {	w += x;	x = 0;    }    if ( y < 0 ) {	h += y;	y = 0;    }    if ( w < 0 || h < 0 )	return;    if ( w > visibleWidth() )	w = visibleWidth();    if ( h > visibleHeight() )	h = visibleHeight();    if ( d->clipped_viewport ) {	// Translate clipper() to viewport()	x -= d->clipped_viewport->x();	y -= d->clipped_viewport->y();    }    vp->update( x, y, w, h );}/*!  \overload*/void QScrollView::updateContents( const QRect& r ){    updateContents(r.x(), r.y(), r.width(), r.height());}/*!  \overload*/void QScrollView::repaintContents( const QRect& r, bool erase ){    repaintContents(r.x(), r.y(), r.width(), r.height(), erase);}/*!  Calls repaint() on rectangle defined by \a x, \a y, \a w, \a h,  translated appropriately.  If the rectangle in not visible,  nothing is repainted.  \sa updateContents()*/void QScrollView::repaintContents( int x, int y, int w, int h, bool erase ){    QWidget* vp = viewport();    // Translate logical to clipper()    x -= contentsX();    y -= contentsY();    // Clip to QCOORD space    if ( x < 0 ) {	w += x;	x = 0;    }    if ( y < 0 ) {	h += y;	y = 0;    }    if ( w < 0 || h < 0 )	return;    if ( w > visibleWidth() )	w = visibleWidth();    if ( h > visibleHeight() )	h = visibleHeight();    if ( d->clipped_viewport ) {	// Translate clipper() to viewport()	x -= d->clipped_viewport->x();	y -= d->clipped_viewport->y();    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
这里只有精品99re| 精品成人私密视频| 精品一区二区成人精品| 亚洲图片另类小说| 日韩视频免费直播| 国产日韩欧美高清| 国产成人av影院| 亚洲视频在线观看一区| 91麻豆精品国产91久久久| 成人h动漫精品一区二区| 青青草国产精品97视觉盛宴| 亚洲精品视频一区| 国产精品免费观看视频| 26uuu久久天堂性欧美| 欧美视频日韩视频| 色94色欧美sute亚洲线路一ni | 久久精品人人做人人爽97| 欧美性感一类影片在线播放| 成人激情校园春色| 韩国精品主播一区二区在线观看 | 亚洲美女偷拍久久| 国产精品入口麻豆原神| 久久久亚洲精华液精华液精华液 | 久久综合色8888| 欧美一区二区久久| 在线播放中文一区| 色激情天天射综合网| av不卡免费在线观看| 成人黄色网址在线观看| 国产福利精品一区二区| 精品在线播放免费| 美女一区二区三区| 美国精品在线观看| 麻豆精品在线播放| 久久99久久久久| 久久成人免费电影| 久久精品国产亚洲一区二区三区| 日韩福利视频导航| 日本在线观看不卡视频| 蜜臀av性久久久久蜜臀aⅴ四虎| 奇米888四色在线精品| 日本女优在线视频一区二区| 青青青伊人色综合久久| 久久99国产精品免费| 国产露脸91国语对白| 国产mv日韩mv欧美| 99久久er热在这里只有精品15| av在线不卡免费看| 欧美亚洲综合色| 欧美日韩国产中文| 日韩欧美综合一区| 久久一区二区三区四区| 欧美经典一区二区| 亚洲女与黑人做爰| 午夜久久久久久| 精品一区二区在线看| 国产传媒欧美日韩成人| 99视频超级精品| 欧美色网站导航| 精品久久久久久久人人人人传媒| 亚洲精品一区二区三区蜜桃下载| 国产农村妇女毛片精品久久麻豆| 国产精品国产三级国产普通话99| 亚洲女同女同女同女同女同69| 亚洲一区二区三区激情| 久久爱www久久做| 成人涩涩免费视频| 欧美日本乱大交xxxxx| 精品国产乱码久久久久久闺蜜 | 99re8在线精品视频免费播放| 91美女在线视频| 欧美精品一级二级三级| 久久久国产综合精品女国产盗摄| 《视频一区视频二区| 日韩av网站在线观看| 国产成人99久久亚洲综合精品| 欧美亚洲国产一区二区三区va| 日韩免费性生活视频播放| 中文字幕综合网| 久草在线在线精品观看| 91蜜桃在线观看| 2024国产精品视频| 亚洲自拍都市欧美小说| 国产在线日韩欧美| 欧美色国产精品| 亚洲国产精品二十页| 天堂一区二区在线| 懂色av一区二区在线播放| 欧美精品丝袜久久久中文字幕| 久久五月婷婷丁香社区| 亚洲一区二区在线观看视频| 国产一区二区三区在线观看免费 | 亚洲日本va午夜在线电影| 三级久久三级久久| caoporen国产精品视频| 成人sese在线| 久久午夜免费电影| 天天综合网天天综合色| 91精彩视频在线| 国产欧美视频在线观看| 奇米一区二区三区av| 在线视频亚洲一区| 国产精品免费视频观看| 国产在线视频一区二区| 91精品啪在线观看国产60岁| 亚洲视频图片小说| 成人一级视频在线观看| 日韩免费观看2025年上映的电影| 夜夜精品视频一区二区 | 日本亚洲一区二区| 色综合天天综合狠狠| 久久久久久97三级| 老司机免费视频一区二区三区| 欧美日韩一区二区三区在线| 亚洲啪啪综合av一区二区三区| 粉嫩aⅴ一区二区三区四区 | 在线视频观看一区| 国产日韩精品视频一区| 精品一区二区三区在线视频| 欧美一区二区精美| 亚洲mv大片欧洲mv大片精品| 在线免费观看视频一区| 亚洲精品中文字幕在线观看| 国产传媒欧美日韩成人| 久久精品一级爱片| 国产精品一卡二卡在线观看| 精品对白一区国产伦| 狠狠狠色丁香婷婷综合激情| 精品久久国产老人久久综合| 激情伊人五月天久久综合| 日韩欧美电影一区| 国产制服丝袜一区| 国产欧美日韩在线看| 成年人国产精品| 一区二区三区中文字幕在线观看| 91免费观看国产| 亚洲国产成人精品视频| 欧美日韩一二区| 日韩影院精彩在线| 日韩一区二区三区在线观看 | 91在线视频官网| 亚洲天堂免费看| 欧美天天综合网| 五月天激情综合| 日韩区在线观看| 国产suv精品一区二区883| 亚洲欧洲在线观看av| 99久久伊人久久99| 欧美综合一区二区| 国产欧美一区二区精品婷婷| 成人黄色777网| 亚洲精品国产一区二区三区四区在线| 色婷婷亚洲精品| 日韩av一级电影| 久久久精品tv| 在线视频你懂得一区二区三区| 日韩精品视频网| 国产亚洲精品超碰| 一本大道久久a久久综合| 亚洲第一福利视频在线| 日韩免费观看高清完整版| 国产91露脸合集magnet| 亚洲精品中文在线| 欧美一区二区免费| proumb性欧美在线观看| 亚洲电影一级片| 2020国产精品| 色婷婷久久久综合中文字幕| 日韩精品1区2区3区| 国产日产精品一区| 欧美日韩综合色| 麻豆成人久久精品二区三区红 | 国产91高潮流白浆在线麻豆| 亚洲精品国久久99热| 欧美xxxxxxxxx| 色哟哟精品一区| 捆绑变态av一区二区三区| 亚洲欧美自拍偷拍色图| 日韩久久精品一区| 在线视频国内一区二区| 国产一区二区三区香蕉| 亚洲裸体在线观看| 26uuu色噜噜精品一区二区| 91美女在线视频| 国内一区二区在线| 亚洲一二三区视频在线观看| 国产午夜精品久久久久久免费视| 欧美色偷偷大香| 成人丝袜高跟foot| 久久国产夜色精品鲁鲁99| 亚洲免费在线观看| 久久亚洲精华国产精华液| 欧美日韩国产综合草草| 91在线你懂得| 韩国av一区二区三区| 天堂精品中文字幕在线| 亚洲日韩欧美一区二区在线| 久久只精品国产| 欧美一区二区三区公司| 91在线无精精品入口|