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

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

?? qscrollview.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
  <li> \c Manual - the view stays the size set by resizeContents().  <li> \c AutoOne - if there is only child widget, the view stays  the size of that widget.  Otherwise, the behaviour is undefined.  <li> \c AutoOneFit - if there is only one child widget the view stays  the size of that widget's sizeHint(). If the scrollview is resized bigger  than the child's sizeHint(), the child will be resized to fit.  If there is more than one child, the behaviour is undefined.  </ul>*///####  The widget will be resized to its sizeHint() when a LayoutHint event//#### is received/*!  Constructs a QScrollView with a \a parent, a \a name and widget  flags \a f.  The widget flags \c WNorthWestGravity, \c WRepaintNoErase and \c  WPaintClever are propagated to the viewport() widget. The other  widget flags are propagated to the parent constructor as usual.*/QScrollView::QScrollView( QWidget *parent, const char *name, WFlags f ) :    QFrame( parent, name, f & (~WNorthWestGravity) & (~WRepaintNoErase), FALSE ){    d = new QScrollViewData(this,WResizeNoErase |	    (f&WPaintClever) | (f&WRepaintNoErase) | (f&WNorthWestGravity) );#ifndef QT_NO_DRAGANDDROP    connect( &d->autoscroll_timer, SIGNAL( timeout() ),	     this, SLOT( doDragAutoScroll() ) );#endif    connect( &d->hbar, SIGNAL( valueChanged(int) ),	this, SLOT( hslide(int) ) );    connect( &d->vbar, SIGNAL( valueChanged(int) ),	this, SLOT( vslide(int) ) );    d->viewport.installEventFilter( this );    setFrameStyle( QFrame::StyledPanel | QFrame::Sunken );    setLineWidth( style().defaultFrameWidth() );    setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) );#ifdef QT_KEYPAD_MODE    if( qt_modalEditingEnabled ) {	installEventFilter(this);    }#endif}/*!  Destructs the QScrollView.  Any children added with addChild()  will be destructed.*/QScrollView::~QScrollView(){    // Be careful not to get all those useless events...    if ( d->clipped_viewport )	d->clipped_viewport->removeEventFilter( this );    else	d->viewport.removeEventFilter( this );    QScrollViewData* d2 = d;    d = 0;    delete d2;}/*!  \reimp*/void QScrollView::styleChange( QStyle& old ){    QWidget::styleChange( old );    updateScrollBars();}void QScrollView::hslide( int pos ){    if ( !d->signal_choke ) {	moveContents( -pos, -contentsY() );	QApplication::syncX();    }}void QScrollView::vslide( int pos ){    if ( !d->signal_choke ) {	if ( testWState(WState_GlobalBrushOrigin) ) {	    // Reduce flicker by moving line at a time.	    if (pos < verticalScrollBar()->maxValue()) {		int step = verticalScrollBar()->lineStep();		pos = (pos + step/2) / step * step;	    }	}	moveContents( -contentsX(), -pos );	QApplication::syncX();    }}/*!  Called when the horizontal scrollbar geometry changes.  This is provided  as a protected function so that subclasses can do interesting things  like providing extra buttons in some of the space normally used by the  scrollbars.  The default implementation simply gives all the space to \a hbar.  \sa setVBarGeometry()*/void QScrollView::setHBarGeometry(QScrollBar& hbar,    int x, int y, int w, int h){    hbar.setGeometry( x, y, w, h );}/*!  Called when the vertical scrollbar geometry changes.  This is provided  as a protected function so that subclasses can do interesting things  like providing extra buttons in some of the space normally used by the  scrollbars.  The default implementation simply gives all the space to \a vbar.  \sa setHBarGeometry()*/void QScrollView::setVBarGeometry( QScrollBar& vbar,    int x, int y, int w, int h){    vbar.setGeometry( x, y, w, h );}/*! Returns the viewport size for size (\a x, \a y).  The viewport size depends on \a x,y (the size of the contents), the  size of this widget, the modes of the horizontal and vertical scroll  bars.  This function permits widgets that can trade vertical and horizontal  space for each other to control scroll bar appearance better.  For  example, a word processor or web browser can control the width of  the right margin accurately, whether there needs to be a vertical  scroll bar or not.*/QSize QScrollView::viewportSize( int x, int y ) const{    int fw = frameWidth();    int lmarg = fw+d->l_marg;    int rmarg = fw+d->r_marg;    int tmarg = fw+d->t_marg;    int bmarg = fw+d->b_marg;    int w = width();    int h = height();    bool needh, needv;    bool showh, showv;    int hsbExt = horizontalScrollBar()->sizeHint().height();    int vsbExt = verticalScrollBar()->sizeHint().width();    if ( d->policy != AutoOne || d->anyVisibleChildren() ) {	// Do we definitely need the scrollbar?	needh = w-lmarg-rmarg < x;	needv = h-tmarg-bmarg < y;	// Do we intend to show the scrollbar?	if (d->hMode == AlwaysOn)	    showh = TRUE;	else if (d->hMode == AlwaysOff)	    showh = FALSE;	else	    showh = needh;	if (d->vMode == AlwaysOn)	    showv = TRUE;	else if (d->vMode == AlwaysOff)	    showv = FALSE;	else	    showv = needv;	// Given other scrollbar will be shown, NOW do we need one?	if ( showh && h-vsbExt-tmarg-bmarg < y ) {	    if (d->vMode == Auto)		showv=TRUE;	}	if ( showv && w-hsbExt-lmarg-rmarg < x ) {	    if (d->hMode == Auto)		showh=TRUE;	}    } else {	// Scrollbars not needed, only show scrollbar that are always on.	showh = d->hMode == AlwaysOn;	showv = d->vMode == AlwaysOn;    }    return QSize( w-lmarg-rmarg - (showv ? vsbExt : 0),		  h-tmarg-bmarg - (showh ? hsbExt : 0) );}/*  The surrounding environment (or application, if there is no  environment, may set this. Requires Qt >= 2.3.8.*/bool qt_left_hand_scrollbars = FALSE;/*!  Updates scrollbars - all possibilities considered.  You should never  need to call this in your code.*/void QScrollView::updateScrollBars(){    // I support this should use viewportSize()... but it needs    // so many of the temporary variables from viewportSize.  hm.    int fw = frameWidth();    int lmarg = fw+d->l_marg;    int rmarg = fw+d->r_marg;    int tmarg = fw+d->t_marg;    int bmarg = fw+d->b_marg;    int w = width();    int h = height();    int portw, porth;    bool needh;    bool needv;    bool showh;    bool showv;    int hsbExt = horizontalScrollBar()->sizeHint().height();    int vsbExt = verticalScrollBar()->sizeHint().width();    if ( d->policy != AutoOne || d->anyVisibleChildren() ) {	// Do we definitely need the scrollbar?	needh = w-lmarg-rmarg < contentsWidth();	needv = h-tmarg-bmarg < contentsHeight();	// Do we intend to show the scrollbar?	if (d->hMode == AlwaysOn)	    showh = TRUE;	else if (d->hMode == AlwaysOff)	    showh = FALSE;	else	    showh = needh;	if (d->vMode == AlwaysOn)	    showv = TRUE;	else if (d->vMode == AlwaysOff)	    showv = FALSE;	else	    showv = needv;	// Given other scrollbar will be shown, NOW do we need one?	if ( showh && h-vsbExt-tmarg-bmarg < contentsHeight() ) {	    needv=TRUE;	    if (d->vMode == Auto)		showv=TRUE;	}	if ( showv && w-hsbExt-lmarg-rmarg < contentsWidth() ) {	    needh=TRUE;	    if (d->hMode == Auto)		showh=TRUE;	}    } else {	// Scrollbars not needed, only show scrollbar that are always on.	needh = needv = FALSE;	showh = d->hMode == AlwaysOn;	showv = d->vMode == AlwaysOn;    }    bool sc = d->signal_choke;    d->signal_choke=TRUE;    // Hide unneeded scrollbar, calculate viewport size    if ( showh ) {        porth=h-hsbExt-tmarg-bmarg;    } else {	if (!needh)	    d->hbar.setValue(0);	d->hbar.hide();	porth=h-tmarg-bmarg;    }    if ( showv ) {	portw=w-vsbExt-lmarg-rmarg;    } else {	if (!needv)	    d->vbar.setValue(0);	d->vbar.hide();	portw=w-lmarg-rmarg;    }    // Configure scrollbars that we will show	if ( needv ) {	    d->vbar.setRange( 0, contentsHeight()-porth );	    d->vbar.setSteps( QScrollView::d->vbar.lineStep(), porth );	} else {	    d->vbar.setRange( 0, 0 );	}	if ( needh ) {	    d->hbar.setRange( 0, contentsWidth()-portw );	    d->hbar.setSteps( QScrollView::d->hbar.lineStep(), portw );	} else {	    d->hbar.setRange( 0, 0 );	}    // Position the scrollbars, viewport, and corner widget.    int bottom;    int xoffset = ( qt_left_hand_scrollbars && ( showv || cornerWidget() ) ) ? vsbExt : 0;    int xpos    =   qt_left_hand_scrollbars ? 0 : w-vsbExt;    xpos    =  (style() == WindowsStyle) && qt_left_hand_scrollbars ? xpos + fw : xpos - fw;    int ypos    = tmarg;    ypos        = (style() == WindowsStyle) ? ypos +fw : 0;    if ( showh ) {	int right = ( showv || cornerWidget() ) ? w-vsbExt : w;	if ( style() == WindowsStyle )            setHBarGeometry(d->hbar, fw + xoffset , h-hsbExt-fw,                            right-fw-fw, hsbExt );	else            setHBarGeometry(d->hbar, 0+  xoffset, h-hsbExt, right,                            hsbExt );	bottom=h-hsbExt;    } else {        bottom=h;    }    if ( showv ) {	clipper()->setGeometry( lmarg + xoffset, tmarg,                                w-vsbExt-lmarg-rmarg,                                bottom-tmarg-bmarg );	d->viewportResized( w-vsbExt-lmarg-rmarg, bottom-tmarg-bmarg );	if ( style() == WindowsStyle )	    changeFrameRect(QRect(xoffset, 0, w, h) );	else	    changeFrameRect(QRect(xoffset, 0, w-vsbExt, bottom));	if (cornerWidget()) {	    bottom = h-hsbExt;	// must reserve space for corner button	    if ( style() == WindowsStyle )                setVBarGeometry( d->vbar, xpos,                                 ypos, vsbExt,                                 bottom-fw-ypos );	    else                setVBarGeometry( d->vbar, xpos, ypos,                                 vsbExt,                                 bottom-ypos );	}	else {	    if ( style() == WindowsStyle )                setVBarGeometry( d->vbar, xpos,                                 ypos, vsbExt,                                 bottom-fw-ypos );	    else                setVBarGeometry( d->vbar, xpos, ypos,                                 vsbExt, bottom-ypos );	}    } else {	if ( style() == WindowsStyle )	    changeFrameRect(QRect(0, 0, w, h));	else	    changeFrameRect(QRect(0, 0, w, bottom));	clipper()->setGeometry( lmarg, tmarg,				 w-lmarg-rmarg, bottom-tmarg-bmarg );	d->viewportResized( w-lmarg-rmarg, bottom-tmarg-bmarg );    }    if ( d->corner ) {	if ( style() == WindowsStyle )            d->corner->setGeometry( xpos,                                    h-hsbExt-fw,                                    vsbExt,                                    hsbExt );	else            d->corner->setGeometry( xpos,                                    h-hsbExt,                                    vsbExt,                                    hsbExt );    }    d->signal_choke=sc;    if ( contentsX()+visibleWidth() > contentsWidth() ) {	int x=QMAX(0,contentsWidth()-visibleWidth());	d->hbar.setValue(x);	// Do it even if it is recursive	moveContents( -x, -contentsY() );    }    if ( contentsY()+visibleHeight() > contentsHeight() ) {	int y=QMAX(0,contentsHeight()-visibleHeight());	d->vbar.setValue(y);	// Do it even if it is recursive	moveContents( -contentsX(), -y );    }    // Finally, show the scrollbars.    if ( showh && !d->hbar.isVisible() )	d->hbar.show();    if ( showv && !d->vbar.isVisible() )	d->vbar.show();}/*! \reimp*/void QScrollView::show(){    //     Ensures that scrollbars have the correct size when the    //     widget is shown.    if (isVisible()) return;    QWidget::show();    updateScrollBars();    d->hideOrShowAll(this);}/*! \reimp */void QScrollView::resize( int w, int h ){    //   Ensures that scrollbars have the correct size when the widget is    //   resized.    QWidget::resize( w, h );}/*! \reimp*/void QScrollView::resize( const QSize& s ){    //   Ensures that scrollbars have the correct size when the widget is    //   resized.    resize(s.width(),s.height());}/*! \reimp*/void QScrollView::resizeEvent( QResizeEvent* event ){    // Ensures that scrollbars have the correct size when the widget    // is resized.    bool u = isUpdatesEnabled();    setUpdatesEnabled( FALSE );    QFrame::resizeEvent( event );    // do _not_ update the scrollbars when updates have been    // disabled. This makes it possible for subclasses to implement    // dynamic wrapping without a horizontal scrollbar showing up all    // the time when making a window smaller.    if ( u )	updateScrollBars();    d->hideOrShowAll(this);    setUpdatesEnabled( u );}/*! \reimp*/void QScrollView::wheelEvent( QWheelEvent *e ){    QWheelEvent ce( viewport()->mapFromGlobal( e->globalPos() ),		    e->globalPos(), e->delta(), e->state());    viewportWheelEvent(&ce);    if ( !ce.isAccepted() ) {	if (verticalScrollBar())	    QApplication::sendEvent( verticalScrollBar(), e);    }}/*!  Returns the currently set mode for the vertical scrollbar.  \sa setVScrollBarMode()*/QScrollView::ScrollBarMode QScrollView::vScrollBarMode() const{    return d->vMode;}/*! \enum QScrollView::ScrollBarMode  This enum type describes the various modes of QScrollView's scroll  bars.  The defined modes are: <ul>   <li> \c Auto - QScrollView shows a scrollbar when the content is   too tall to fit and not else.  This is the default.   <li> \c AlwaysOff - QScrollView never shows a scrollbar.   <li> \c AlwaysOn - QScrollView always shows a scrollbar.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久香蕉国产线看观看99| 中国色在线观看另类| 国产精品一区二区男女羞羞无遮挡| 最新国产の精品合集bt伙计| 欧美一区二区三区白人| a美女胸又www黄视频久久| 久久97超碰国产精品超碰| 亚洲国产一区视频| 国产日韩精品一区| 日韩一级免费观看| 欧美在线免费观看亚洲| 床上的激情91.| 久久av资源站| 日韩国产一二三区| 亚洲国产日日夜夜| 亚洲欧洲三级电影| 中文字幕第一区综合| xnxx国产精品| 日韩欧美中文一区二区| 欧美亚日韩国产aⅴ精品中极品| 豆国产96在线|亚洲| 精品一区二区三区在线播放| 日本欧美加勒比视频| 一区二区久久久| 亚洲欧美国产77777| 国产欧美日韩三区| 国产欧美日韩三级| 国产欧美一区二区三区在线看蜜臀| 欧美成人a视频| 精品少妇一区二区三区| 欧美猛男男办公室激情| 欧美系列一区二区| 在线观看亚洲一区| 在线视频中文字幕一区二区| 色8久久精品久久久久久蜜| 一本高清dvd不卡在线观看| 91在线视频播放地址| 91麻豆国产在线观看| 色乱码一区二区三区88| 欧美亚洲日本国产| 欧美三级中文字幕| 555www色欧美视频| 欧美一区二区免费视频| 欧美一区二区视频在线观看2022 | 6080国产精品一区二区| 欧美日韩精品三区| 欧美人妇做爰xxxⅹ性高电影| 欧美日韩精品一二三区| 欧美高清激情brazzers| 欧美精品粉嫩高潮一区二区| 欧美一区二区三区不卡| 久久蜜臀中文字幕| 国产精品无人区| 亚洲欧美激情插| 五月天国产精品| 久久9热精品视频| 成人免费av网站| 91精品1区2区| 91精品国产高清一区二区三区| 日韩三级.com| 国产精品美女久久久久久久久久久| 亚洲色欲色欲www| 亚洲风情在线资源站| 蜜臀91精品一区二区三区| 狠狠色丁香婷综合久久| 成人sese在线| 欧美日韩精品福利| 26uuu精品一区二区| 亚洲欧洲av一区二区三区久久| 一区二区三区美女视频| 日本不卡一二三| 国产精选一区二区三区| 91福利小视频| 欧美成人一区二区三区片免费| 国产欧美一区二区三区沐欲 | 综合欧美一区二区三区| 五月天精品一区二区三区| 国产一区二区剧情av在线| 色综合一区二区| 日韩欧美一区在线| **性色生活片久久毛片| 日韩在线一区二区| fc2成人免费人成在线观看播放| 欧美亚洲自拍偷拍| 国产女同性恋一区二区| 亚洲一区免费观看| 国产精品白丝jk白祙喷水网站| 色呦呦日韩精品| 日韩免费电影网站| 亚洲精品精品亚洲| 激情五月激情综合网| 欧洲一区二区三区在线| 久久综合九色综合欧美亚洲| 亚洲国产精品久久不卡毛片| 国产精品正在播放| 欧美久久久久久蜜桃| 国产精品女主播av| 麻豆国产欧美一区二区三区| 在线观看日韩精品| 亚洲国产岛国毛片在线| 美洲天堂一区二卡三卡四卡视频| 一本到不卡免费一区二区| 久久人人97超碰com| 午夜成人免费视频| 91碰在线视频| 国产亚洲精品中文字幕| 免费人成精品欧美精品| 欧美在线观看禁18| 亚洲免费大片在线观看| 成人中文字幕在线| 久久久精品影视| 久久99精品网久久| 日韩亚洲欧美高清| 午夜私人影院久久久久| 91久久奴性调教| 亚洲欧洲精品一区二区精品久久久| 国产一区二区三区四区五区美女 | 亚洲成人av一区| 色综合久久综合| 中文字幕一区二区三区av| 国产综合久久久久影院| 日韩欧美国产一区二区三区| 亚洲国产精品麻豆| 在线观看三级视频欧美| 亚洲日本成人在线观看| 成人国产亚洲欧美成人综合网| 亚洲精品一区二区三区在线观看| 肉肉av福利一精品导航| 欧美性生活大片视频| 亚洲天堂成人网| 99热精品国产| 中文字幕欧美一| 91色porny在线视频| 亚洲欧美一区二区三区国产精品| 不卡在线观看av| 亚洲人成电影网站色mp4| 国产成人精品一区二区三区四区 | 日韩在线观看一区二区| 欧美日韩和欧美的一区二区| 亚洲一二三专区| 欧美日韩高清影院| 亚洲成人动漫在线免费观看| 欧美精品色一区二区三区| 午夜激情久久久| 777午夜精品免费视频| 日本亚洲一区二区| 欧美一区二区三区喷汁尤物| 久久国产精品第一页| 久久久久久久久久久久久久久99 | 亚洲成人黄色影院| 51久久夜色精品国产麻豆| 欧美aaaaa成人免费观看视频| 精品少妇一区二区三区在线播放| 国产一区二区三区观看| 欧美激情综合网| 色偷偷久久一区二区三区| 亚洲综合清纯丝袜自拍| 91精品久久久久久久91蜜桃| 久久99国产乱子伦精品免费| 中文字幕av一区 二区| 91猫先生在线| 免费成人美女在线观看.| 久久精品视频一区二区三区| 99精品欧美一区| 亚洲福利一区二区三区| 亚洲精品一区二区三区在线观看| 国产sm精品调教视频网站| 亚洲三级在线观看| 欧美一区二区三区精品| 国产99精品国产| 亚洲一卡二卡三卡四卡无卡久久| 欧美一级一区二区| 成人网在线播放| 午夜精品一区二区三区电影天堂 | 国产一区二区毛片| 亚洲欧美色图小说| 欧美电视剧免费观看| 91精品婷婷国产综合久久性色| 久久激情综合网| 国产亚洲欧美在线| 91女厕偷拍女厕偷拍高清| 亚洲成a人在线观看| 精品国产电影一区二区| av电影在线观看一区| 香港成人在线视频| 国产欧美一区二区三区沐欲 | 国产成人免费高清| 美女视频网站久久| 亚洲成人在线免费| 亚洲精品日产精品乱码不卡| 国产精品视频免费| 欧美激情在线一区二区三区| 久久久久久日产精品| 日韩一区二区免费在线电影| 欧美精三区欧美精三区| 在线国产电影不卡| 色偷偷一区二区三区| 色欧美88888久久久久久影院| 99精品视频免费在线观看| 国产69精品久久久久777|