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

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

?? qframe.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
	break;    case HLine:    case VLine:	switch ( style ) {	case Plain:	    fwidth = lwidth;	    break;	case Raised:	case Sunken:	    fwidth = (short)(lwidth*2 + midLineWidth());	    break;	}	break;    }    if ( fwidth == -1 )				// invalid style	fwidth = 0;    fwidth += margin();    frameChanged();}/*!  \fn int QFrame::frameWidth() const  Returns the width of the frame that is drawn.  Note that the frame width depends on the \link setFrameStyle() frame  style \endlink, not only the line width and the mid line width.  For  example, the style \c NoFrame always has a frame width 0, while the  style \c Panel has a frame width equivalent to the line width.  The frame width also includes the margin.  \sa lineWidth(), midLineWidth(), frameStyle(), margin()*//*!  Returns the frame rectangle.  The default frame rectangle is equivalent to the \link  QWidget::rect() widget rectangle\endlink.  \sa setFrameRect()*/QRect QFrame::frameRect() const{    if ( frect.isNull() )	return rect();    else	return frect;}/*!  Sets the frame rectangle to \e r.  The frame rectangle is the rectangle the frame is drawn in.  By  default, this is the entire widget.  Calling setFrameRect() does \e  not cause a widget update.  If \e r is a null rectangle (for example  <code>QRect(0,0,0,0)</code>), then the frame rectangle is equivalent  to the \link QWidget::rect() widget rectangle\endlink.  \sa frameRect(), contentsRect()*/void QFrame::setFrameRect( const QRect &r ){    frect = r.isValid() ? r : rect();}/*!  Returns the rectangle inside the frame.  \sa frameRect(), drawContents()*/QRect QFrame::contentsRect() const{    QRect r = frameRect();    int	  w = frameWidth();			// total width    r.setRect( r.x()+w, r.y()+w, r.width()-w*2, r.height()-w*2 );    return r;}/*!\reimp*/QSize QFrame::sizeHint() const{    //   Returns a size hint for the frame - for HLine and VLine    //   shapes, this is stretchable one way and 3 pixels wide the    //   other.  For other shapes, QWidget::sizeHint() is used.    switch (fstyle & MShape) {    case HLine:	return QSize(-1,3);    case VLine:	return QSize(3,-1);    default:	return QWidget::sizeHint();    }}/*!\reimp*/QSizePolicy QFrame::sizePolicy() const{    //### removeme 3.0    return QWidget::sizePolicy();}/*!  Handles paint events for the frame.  Paints the frame and the contents.  Opens the painter on the frame and calls first drawFrame(), then  drawContents().*/void QFrame::paintEvent( QPaintEvent *event ){    QPainter paint( this );    if ( !contentsRect().contains( event->rect() ) ) {	paint.save();	paint.setClipRegion( event->region().intersect(frameRect()) );	drawFrame( &paint );	paint.restore();    }    if ( event->rect().intersects( contentsRect() ) &&	 (fstyle & MShape) != HLine && (fstyle & MShape) != VLine ) {	paint.setClipRegion( event->region().intersect( contentsRect() ) );	drawContents( &paint );    }}/*!  Handles resize events for the frame.  Adjusts the frame rectangle for the resized widget.  The frame  rectangle is elastic, the surrounding area is static.  The resulting frame rectangle may be null or invalid.  You can use  setMinimumSize() to avoid that possibility.  Nothing is done if the frame rectangle is a \link QRect::isNull()  null rectangle\endlink already.*/void QFrame::resizeEvent( QResizeEvent *e ){    if ( !frect.isNull() ) {	QRect r( frect.x(), frect.y(),		 width()  - (e->oldSize().width()  - frect.width()),		 height() - (e->oldSize().height() - frect.height()) );	setFrameRect( r );    }    if ( autoMask())	updateMask();}/*!  Draws the frame using the current frame attributes and color  group.  The rectangle inside the frame is not affected.  This function is virtual, but in general you do not need to  reimplement it.  If you do, note that the QPainter is already open  and must remain open.  \sa frameRect(), contentsRect(), drawContents(), frameStyle(), setPalette(), drawFrameMask()*/void QFrame::drawFrame( QPainter *p ){    QPoint	p1, p2;    QRect	r     = frameRect();    int		type  = fstyle & MShape;    int		cstyle = fstyle & MShadow;#ifdef QT_NO_DRAWUTIL    p->setPen( black ); // ####    p->drawRect( r ); //### a bit too simple#else    const QColorGroup & g = colorGroup();    switch ( type ) {    case Box:	if ( cstyle == Plain )	    qDrawPlainRect( p, r, g.foreground(), lwidth );	else	    qDrawShadeRect( p, r, g, cstyle == Sunken, lwidth,			    midLineWidth() );	break;    case StyledPanel:#ifndef QT_NO_STYLE	if ( cstyle == Plain )	    qDrawPlainRect( p, r, g.foreground(), lwidth );	else	    style().drawPanel( p, r.x(), r.y(), r.width(), r.height(), g, cstyle == Sunken, lwidth );	break;#endif // fall through to Panel if QT_NO_STYLE    case PopupPanel:#ifndef QT_NO_STYLE	if ( cstyle == Plain )	    qDrawPlainRect( p, r, g.foreground(), lwidth );	else	    style().drawPopupPanel( p, r.x(), r.y(), r.width(), r.height(), g, lwidth );	break;#endif // fall through to Panel if QT_NO_STYLE    case Panel:	if ( cstyle == Plain )	    qDrawPlainRect( p, r, g.foreground(), lwidth );	else	    qDrawShadePanel( p, r, g, cstyle == Sunken, lwidth );	break;    case WinPanel:	if ( cstyle == Plain )	    qDrawPlainRect( p, r, g.foreground(), wpwidth );	else	    qDrawWinPanel( p, r, g, cstyle == Sunken );	break;    case HLine:    case VLine:	if ( type == HLine ) {	    p1 = QPoint( r.x(), r.height()/2 );	    p2 = QPoint( r.x()+r.width(), p1.y() );	}	else {	    p1 = QPoint( r.x()+r.width()/2, 0 );	    p2 = QPoint( p1.x(), r.height() );	}	if ( cstyle == Plain ) {	    QPen oldPen = p->pen();	    p->setPen( QPen(g.foreground(),lwidth) );	    p->drawLine( p1, p2 );	    p->setPen( oldPen );	}	else	    qDrawShadeLine( p, p1, p2, g, cstyle == Sunken,			    lwidth, midLineWidth() );	break;    }#endif // QT_NO_DRAWUTIL#ifdef QT_KEYPAD_MODE    if ( qt_modalEditingEnabled && hasFocus() && !isModalEditing())        style().drawFocusRect(p, frameRect(), g, &g.highlight(), TRUE);#endif}/*!  Virtual function that draws the contents of the frame.  The QPainter is already open when you get it, and you must leave it  open.  Painter \link QPainter::setWorldMatrix() transformations\endlink  are switched off on entry.  If you transform the painter, remember to  take the frame into account and \link QPainter::resetXForm() reset  transformation\endlink before returning.  This function is reimplemented by subclasses that draw something  inside the frame.  It should draw only inside contentsRect(). The  default function does nothing.  \sa contentsRect(), QPainter::setClipRect(), drawContentsMask()*/void QFrame::drawContents( QPainter * ){}#ifdef QT_KEYPAD_MODE/*!    \Internal*/bool QFrame::eventPrivate(QEvent *e){    if ( e->type() == QEvent::FocusIn || e->type() == QEvent::FocusOut )	    repaint();    return FALSE;}#endif/*!  Virtual function that is called when the frame style, line width or  mid-line width changes.  This function can be reimplemented by subclasses that need to know  when the frame attributes change.  The default implementation calls update().*/void QFrame::frameChanged(){    update();}/*! Reimplementation of QWidget::updateMask(). Draws the mask of the frame when transparency is required. This function calls the virtual functions drawFrameMask() and drawContentsMask(). These are the ones you may want to reimplement in subclasses. \sa QWidget::setAutoMask(), drawFrameMask(), drawContentsMask()*/void QFrame::updateMask(){    QBitmap bm( size() );    bm.fill( color0 );    QPainter p( &bm, this );    p.setPen( color1 );    p.setBrush( color1 );    drawFrameMask( &p );    drawContentsMask( &p );    p.end();    setMask( bm );}/*!  Virtual function that draws the mask of the frame's frame.  If you reimplemented drawFrame(QPainter*) and your widget should  support transparency you probably have to re-implement this function as well.  \sa drawFrame(), updateMask(), QWidget::setAutoMask(), QPainter::setClipRect()*/void QFrame::drawFrameMask( QPainter* p ){    QPoint	p1, p2;    QRect	r     = frameRect();    int		type  = fstyle & MShape;    int		style = fstyle & MShadow;#ifdef QT_NO_DRAWUTIL    p->setPen( color1 );    p->drawRect( r ); //### a bit too simple#else    QColorGroup g(color1, color1, color1, color1, color1, color1, color1, color1, color0);    switch ( type ) {    case Box:	if ( style == Plain )	    qDrawPlainRect( p, r, g.foreground(), lwidth );	else	    qDrawShadeRect( p, r, g, style == Sunken, lwidth,			    midLineWidth() );	break;    case Panel:	if ( style == Plain )	    qDrawPlainRect( p, r, g.foreground(), lwidth );	else	    qDrawShadePanel( p, r, g, style == Sunken, lwidth );	break;    case WinPanel:	if ( style == Plain )	    qDrawPlainRect( p, r, g.foreground(), wpwidth );	else	    qDrawWinPanel( p, r, g, style == Sunken );	break;    case HLine:    case VLine:	if ( type == HLine ) {	    p1 = QPoint( r.x(), r.height()/2 );	    p2 = QPoint( r.x()+r.width(), p1.y() );	}	else {	    p1 = QPoint( r.x()+r.width()/2, 0 );	    p2 = QPoint( p1.x(), r.height() );	}	if ( style == Plain ) {	    QPen oldPen = p->pen();	    p->setPen( QPen(g.foreground(),lwidth) );	    p->drawLine( p1, p2 );	    p->setPen( oldPen );	}	else	    qDrawShadeLine( p, p1, p2, g, style == Sunken,			    lwidth, midLineWidth() );	break;    }#endif // QT_NO_DRAWUTIL}/*!  Virtual function that draws the mask of the frame's contents.  If you reimplemented drawContents(QPainter*) and your widget should  support transparency you probably have to re-implement this function as well.  The default implementation masks the contents-rect.  \sa drawContents(), updateMask(), QWidget::setAutoMask(), contentsRect(), QPainter::setClipRect()*/void QFrame::drawContentsMask( QPainter* p){    int type  = fstyle & MShape;    if ( type == HLine || type == VLine )	return;    QBrush oldBrush = p->brush();    p->fillRect( contentsRect(), QBrush( color1 ) );    p->setBrush( oldBrush );}#endif //QT_NO_FRAME

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆高清视频| 国产精品美女久久久久久2018| 欧美成人女星排行榜| 最新中文字幕一区二区三区| 免费av成人在线| 色婷婷激情综合| 国产欧美视频一区二区| 日韩高清不卡一区二区| 色婷婷av久久久久久久| 国产精品少妇自拍| 国产精品主播直播| 精品日韩一区二区三区免费视频| 亚洲二区视频在线| 91蝌蚪porny成人天涯| 国产蜜臀av在线一区二区三区| 美日韩黄色大片| 欧美日韩一区视频| 亚洲综合激情网| 色综合一区二区三区| 国产精品福利一区| 成人黄页在线观看| 亚洲国产精品黑人久久久| 国产精品自拍三区| 国产日韩一级二级三级| 国产一区二区中文字幕| 欧美成人video| 精品一区二区成人精品| 欧美tickling挠脚心丨vk| 激情文学综合插| 精品国产乱码久久久久久蜜臀| 日日骚欧美日韩| 欧美精品久久一区| 免费在线观看不卡| 精品国内二区三区| 国产91高潮流白浆在线麻豆 | 免费一区二区视频| 91精品中文字幕一区二区三区| 午夜不卡av免费| 91精品国产全国免费观看| 男女男精品网站| 日韩欧美一级精品久久| 国内精品国产成人国产三级粉色| 久久久久久久久久久99999| 国产成都精品91一区二区三| 国产精品国产三级国产aⅴ入口| 91免费观看视频| 亚洲一区在线观看免费| 日韩女优制服丝袜电影| 国产成人精品综合在线观看| 自拍偷自拍亚洲精品播放| 欧美性欧美巨大黑白大战| 五月婷婷久久综合| 久久婷婷综合激情| 一本到不卡免费一区二区| 亚欧色一区w666天堂| 久久综合九色综合久久久精品综合| 国产精品中文欧美| 一区二区三区鲁丝不卡| 欧美本精品男人aⅴ天堂| 国产成人综合亚洲网站| 一区二区三区在线免费| 26uuu欧美日本| 91在线观看成人| 美脚の诱脚舐め脚责91| 中文字幕在线视频一区| 91麻豆精品91久久久久同性| av中文字幕不卡| 蜜臂av日日欢夜夜爽一区| 国产精品乱码久久久久久| 欧美日韩国产首页| 国产成人丝袜美腿| 亚洲 欧美综合在线网络| 欧美激情自拍偷拍| 欧美一区国产二区| 91在线免费播放| 久久精品国产99| 一级特黄大欧美久久久| 国产网站一区二区三区| 欧美日韩国产123区| 成人免费高清视频| 久久激情五月激情| 午夜国产精品一区| 一区精品在线播放| 2024国产精品| 欧美一区二区免费| 色狠狠桃花综合| 成人午夜在线播放| 久久99精品久久久久久国产越南| 亚洲一区二区黄色| 国产精品全国免费观看高清| 精品国产乱码久久久久久浪潮| 欧美人体做爰大胆视频| 在线观看视频一区| 不卡视频在线看| 国产成人av网站| 狠狠色丁香九九婷婷综合五月| 亚洲成人资源网| 一区二区三区四区不卡视频 | 欧美一区二区观看视频| 色婷婷国产精品| k8久久久一区二区三区| 成人一区在线看| 成人中文字幕电影| 丁香网亚洲国际| 国产精品18久久久久久久网站| 麻豆精品一区二区三区| 丝袜亚洲另类丝袜在线| 亚洲成人资源网| 亚洲成人午夜电影| 午夜欧美2019年伦理| 亚洲图片欧美一区| 亚洲成人午夜电影| 三级久久三级久久| 免费成人在线视频观看| 美女一区二区视频| 精品在线播放午夜| 国产精品自在在线| 大美女一区二区三区| 成人美女视频在线观看| 成人91在线观看| 日本精品一区二区三区高清| 在线观看免费亚洲| 欧美精品乱码久久久久久 | 美女视频一区二区| 麻豆91免费看| 国产成人亚洲综合色影视| 顶级嫩模精品视频在线看| 色综合天天在线| 欧美日韩中文一区| 日韩欧美国产不卡| 国产校园另类小说区| 国产精品久久久久9999吃药| 一区二区成人在线视频| 日本va欧美va欧美va精品| 精品一区二区三区在线播放| 国产成a人无v码亚洲福利| 99久久精品情趣| 欧美电影在线免费观看| 久久综合av免费| 亚洲日本丝袜连裤袜办公室| 亚洲成人免费在线观看| 国产成人一级电影| 欧美视频一区二区三区在线观看| 欧美不卡激情三级在线观看| 欧美极品aⅴ影院| 午夜精品在线看| 成人手机在线视频| 欧美男生操女生| 国产精品久久三| 日韩精品乱码av一区二区| 东方aⅴ免费观看久久av| 欧美三级乱人伦电影| 国产亚洲一区二区在线观看| 亚洲一区二区在线免费观看视频| 久久99国产精品免费网站| 日本精品视频一区二区| 久久久亚洲精品一区二区三区| 亚洲一区二区偷拍精品| 国产伦精一区二区三区| 欧美日韩视频一区二区| 国产视频视频一区| 石原莉奈在线亚洲二区| 成人av资源网站| 日韩欧美一级二级| 亚洲综合激情小说| 成人av午夜影院| 精品国产三级a在线观看| 一区二区三区四区在线播放| 国产一区二区在线看| 欧美日韩国产一级片| ●精品国产综合乱码久久久久| 久久成人麻豆午夜电影| 欧美日韩一区二区在线观看 | 成人免费视频网站在线观看| 欧美日本乱大交xxxxx| 国产精品高潮久久久久无| 极品少妇xxxx偷拍精品少妇| 欧美精品在线观看一区二区| 中文字幕欧美激情一区| 国产一区二区三区免费观看| 6080日韩午夜伦伦午夜伦| 一区二区三区在线免费观看| 本田岬高潮一区二区三区| 亚洲精品一线二线三线| 麻豆精品视频在线观看免费| 欧美日韩精品福利| 亚洲自拍偷拍欧美| 欧美午夜精品电影| 亚洲综合在线第一页| 91论坛在线播放| 最新日韩在线视频| 91同城在线观看| 国产精品国产三级国产专播品爱网| 精品一区二区成人精品| 日韩精品一区二区在线| 视频一区视频二区中文字幕| 欧美精品在线观看播放| 日韩精品福利网| 51精品视频一区二区三区| 五月激情丁香一区二区三区|