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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? qheader.cpp

?? qtopia-phone-2.2.0下公共的控件實(shí)現(xiàn)源代碼。
?? CPP
?? 第 1 頁 / 共 3 頁
字號(hào):
 */int QHeader::pPos( int i ) const{    if ( i == count() )	return d->positions[i-1] + d->sizes[ d->i2s[i-1] ] - offset();    return d->positions[i] - offset();}/*!  Returns the size of actual section \a i. */int QHeader::pSize( int i ) const{    return d->sizes[ d->i2s[i] ];}/*!  Returns the height of actual section \a i if orientation() is horizontal ,  returns the width if vertical.*/int QHeader::pHeight( int i ) const{    int section = mapToSection(i);    if ( section < 0 )	return 0;    return d->heights[section];}/*!  Sets the height of actual section \a i to \a h if orientation() is  horizontal. Sets the width if vertical.*/void QHeader::setPHeight( int i, int h ){    int section = mapToSection(i);    if ( section < 0 )	return;    d->heights[section] = h;}/*!  Returns the leftmost (or uppermost for vertical headers) visible pixel. */int QHeader::offset() const{    return offs;}/*!  \obsolete  Use mapToSection() instead!  Translates from actual index \a a (index at which the section is displayed)  to  logical index of the section.  Returns -1 if \a a is outside the legal range.  \sa mapToActual()*/int QHeader::mapToLogical( int a ) const{    return mapToSection( a );}/*!  \obsolete  Use mapToIndex() instead!  Translates from logical index \a l to actual index (index, at which the section \a l is displayed) .  Returns -1 if \a l is outside the legal range.  \sa mapToLogical()*/int QHeader::mapToActual( int l ) const{    return mapToIndex( l );}/*!  \obsolete  Use resizeSection() instead!  Sets the size of the section \a section to \a s pixels.  \warning does not repaint or send out signals*/void QHeader::setCellSize( int section, int s ){    if ( section < 0 || section >= count() )	return;    d->sizes[ section ] = s;    if ( isUpdatesEnabled() )	d->calculatePositions();}/*!  Enable user resizing of the section \a section if \a enable is TRUE,  disable otherwise.  If \a section is negative (as it is by default), resizing is  enabled/disabled for all current and new sections.  If the user resizes a section (because this feature enabled it), a sizeChange()  signal is emitted.  \sa setMovingEnabled(), setClickEnabled()*/void QHeader::setResizeEnabled( bool enable, int section ){    if ( section < 0 ) {	d->resize.fill( enable );	// and future ones...	d->resize_default = enable;    } else if ( section < count() ) {	d->resize[ section ] = enable;    }}/*!  Enable the user to exchange sections if \a enable is TRUE,  disable otherwise.  If you enable moving here, the indexChange() signal is emitted if  the user moves a section.  \sa setClickEnabled(), setResizeEnabled()*/void QHeader::setMovingEnabled( bool enable ){    d->move = enable;}/*!  Enable clicking in section \a section if \a enable is TRUE, disable  otherwise.  If \a section is negative (as it is by default), clicking is  enabled/disabled for all current and new sections.  If enabled, the clicked() signal is emitted when the user clicks.  \sa setMovingEnabled(), setResizeEnabled()*/void QHeader::setClickEnabled( bool enable, int section ){    if ( section < 0 ) {	d->clicks.fill( enable );	// and future ones...	d->clicks_default = enable;    } else if ( section < count() ) {	d->clicks[ section ] = enable;    }}/*!  Paints actual section \a index of the header, inside rectangle \a fr in  widget coordinates.  Calls paintSectionLabel().*/void QHeader::paintSection( QPainter *p, int index, QRect fr ){    int section = mapToSection( index );    if ( section < 0 )	return;    bool down = (index==handleIdx) && ( state == Pressed || state == Moving );    p->setBrushOrigin( fr.topLeft() );    if ( d->clicks[section] ) {	style().drawBevelButton( p, fr.x(), fr.y(), fr.width(), fr.height(),				 colorGroup(), down );    } else {	// ##### should be somhow styled in 3.0	if ( orientation() == Horizontal ) {	    p->save();	    // ### Hack to keep styles working	    p->setClipRect( fr );	    style().drawBevelButton( p, fr.x() - 2, fr.y() - 2, fr.width() + 4, fr.height() + 4,				     colorGroup(), down );		    p->setPen( colorGroup().color( QColorGroup::Mid ) );	    p->drawLine( fr.x(), fr.y() + fr.height() - 1, fr.x() + fr.width() - 1, fr.y() + fr.height() - 1 );	    p->drawLine( fr.x() + fr.width() - 1, fr.y(), fr.x() + fr.width() - 1, fr.y() + fr.height() - 1 );	    p->setPen( colorGroup().color( QColorGroup::Light ) );	    if ( index > 0 )		p->drawLine( fr.x(), fr.y(), fr.x(), fr.y() + fr.height() - 1 );	    if ( index == count() - 1 ) {		p->drawLine( fr.x() + fr.width() - 1, fr.y(), fr.x() + fr.width() - 1, fr.y() + fr.height() - 1 );		p->setPen( colorGroup().color( QColorGroup::Mid ) );		p->drawLine( fr.x() + fr.width() - 2, fr.y(), fr.x() + fr.width() - 2, fr.y() + fr.height() - 1 );	    }	    p->restore();	} else {	    p->save();	    // ### Hack to keep styles working	    p->setClipRect( fr );	    style().drawBevelButton( p, fr.x() - 2, fr.y() - 2, fr.width() + 4, fr.height() + 4,				     colorGroup(), down );		    p->setPen( colorGroup().color( QColorGroup::Mid ) );	    p->drawLine( fr.x() + width() - 1, fr.y(), fr.x() + fr.width() - 1, fr.y() + fr.height() - 1 );	    p->drawLine( fr.x(), fr.y() + fr.height() - 1, fr.x() + fr.width() - 1, fr.y() + fr.height() - 1 );	    p->setPen( colorGroup().color( QColorGroup::Light ) );	    if ( index > 0 )		p->drawLine( fr.x(), fr.y(), fr.x() + fr.width() - 1, fr.y() );	    if ( index == count() - 1 ) {		p->drawLine( fr.x(), fr.y() + fr.height() - 1, fr.x() + fr.width() - 1, fr.y() + fr.height() - 1 );		p->setPen( colorGroup().color( QColorGroup::Mid ) );		p->drawLine( fr.x(), fr.y() + fr.height() - 2, fr.x() + fr.width() - 1, fr.y() + fr.height() - 2 );	    }	    p->restore();	}    }    paintSectionLabel( p, index, fr );}/*!  Paints the label of actual section \a index of the header, inside rectangle \a fr in  widget coordinates.  Called by paintSection()*/void QHeader::paintSectionLabel( QPainter *p, int index, const QRect& fr ){    int section = mapToSection( index );    if ( section < 0 )	return;    QString s;    if ( d->labels[section] )	s = *(d->labels[section]);    else if ( orient == Horizontal )	s = tr("Col %1").arg(section);    else	s = tr("Row %1").arg(section);    int m = 0;    if ( style() == WindowsStyle  &&	 index==handleIdx && ( state == Pressed || state == Moving ) )	m = 1;    QRect r( fr.x() + QH_MARGIN+m, fr.y() + 2+m,	     fr.width() - 6, fr.height() - 4 );    int pw = 0;    if ( d->iconsets[section] ) {	QIconSet::Mode mode = isEnabled()?QIconSet::Normal:QIconSet::Disabled;	QPixmap pixmap = d->iconsets[section]->pixmap( QIconSet::Small, mode );	int pixw = pixmap.width();	pw = pixw;	int pixh = pixmap.height();	p->drawPixmap( r.left(), r.center().y()-pixh/2, pixmap );	r.setLeft( r.left() + pixw + 2 );    }    p->drawText ( r, AlignLeft|AlignVCenter|SingleLine, s );    int arrowWidth = orient == Qt::Horizontal ? height() / 2 : width() / 2;    int arrowHeight = fr.height() - 6;    int tw = p->fontMetrics().width( s ) + 16;    if ( d->sortColumn == section && pw + tw + arrowWidth + 2 < fr.width() ) {	p->save();	if ( d->sortDirection ) {	    QPointArray pa( 3 );	    int x = fr.x() + pw + tw;	    p->setPen( colorGroup().light() );	    p->drawLine( x + arrowWidth, 4, x + arrowWidth / 2, arrowHeight );	    p->setPen( colorGroup().dark() );	    pa.setPoint( 0, x + arrowWidth / 2, arrowHeight );	    pa.setPoint( 1, x, 4 );	    pa.setPoint( 2, x + arrowWidth, 4 );	    p->drawPolyline( pa );	} else {	    QPointArray pa( 3 );	    int x = fr.x() + pw + tw;	    p->setPen( colorGroup().light() );	    pa.setPoint( 0, x, arrowHeight );	    pa.setPoint( 1, x + arrowWidth, arrowHeight );	    pa.setPoint( 2, x + arrowWidth / 2, 4 );	    p->drawPolyline( pa );	    p->setPen( colorGroup().dark() );	    p->drawLine( x, arrowHeight, x + arrowWidth / 2, 4 );	}	p->restore();    }}/*!\reimp*/void QHeader::paintEvent( QPaintEvent *e ){    QPainter p( this );    p.setPen( colorGroup().buttonText() );    int pos = orient == Horizontal		     ? e->rect().left()		     : e->rect().top();    int id = mapToIndex( sectionAt( pos + offset() ) );    if ( id < 0 )	if ( pos > 0 )	    return;	else	    id = 0;    for ( int i = id; i < count(); i++ ) {	QRect r = sRect( i );	paintSection( &p, i, r );	if ( orient == Horizontal && r. right() >= e->rect().right() ||	     orient == Vertical && r. bottom() >= e->rect().bottom() )	    return;    }}/*!  As often the QHeader is used together with a list widget,  QHeader can indicate a sort order. This is done using an arrow at  the right edge of a section which points up or down. \a section  specifies in which section this arrow should be drawn, and \a  increasing, if the arrow should point to the bottom (TRUE) or the  the top (FALSE).  If \a section is -1, no arrow is drawn.  \sa QListView::setShowSortIndicator()*/void QHeader::setSortIndicator( int section, bool increasing ){    d->sortColumn = section;    d->sortDirection = increasing;    update();    updateGeometry();}/*!  Resizes the section \a section to \a s pixels.*/void QHeader::resizeSection( int section, int s ){    if ( section < 0 || section >= count() )	return;    d->sizes[ section ] = s;    if ( isUpdatesEnabled() ) {	d->calculatePositions();	update();    }}/*!  Returns the size of the \a section in pixels.*/int QHeader::sectionSize( int section ) const{    if ( section < 0 || section >= count() )	return 0;    return d->sizes[section];}/*!  Returns the position (in pixels) at which the \a section starts.  \sa offset()*/int QHeader::sectionPos( int section ) const{    if ( d->positionsDirty )	d->calculatePositions();    if ( section < 0 || section >= count()  )	return 0;    return d->positions[ d->s2i[section] ];}/*!  Returns the section which contains the position \a pos given in pixels.  \sa offset()*/int QHeader::sectionAt( int pos ) const{    return d->sectionAt( pos );}/*!  Returns the section which is displayed at the index \a index.*/int QHeader::mapToSection( int index ) const{    return ( index >= 0 && index < count() ) ? d->i2s[ index ] : -1;}/*!  Returns the index at which the section \a section is  currently displayed.*/int QHeader::mapToIndex( int section ) const{    return ( section >= 0 && section < count() ) ? d->s2i[ section ] : -1;}/*!  Moves the section \a section to be displayed at the index  \a toIndex.*/void QHeader::moveSection( int section, int toIndex ){    int fromIndex = mapToIndex( section );    if ( fromIndex == toIndex ||	 fromIndex < 0 || fromIndex > count() ||	 toIndex < 0 || toIndex > count() )	return;    int i;    int idx = d->i2s[fromIndex];    if ( fromIndex < toIndex ) {	for ( i = fromIndex; i < toIndex - 1; i++ ) {	    int t;	    d->i2s[i] = t = d->i2s[i+1];	    d->s2i[t] = i;	}	d->i2s[toIndex-1] = idx;	d->s2i[idx] = toIndex-1;    } else {	for ( i = fromIndex; i > toIndex ; i-- ) {	    int t;	    d->i2s[i] = t = d->i2s[i-1];	    d->s2i[t] = i;	}	d->i2s[toIndex] = idx;	d->s2i[idx] = toIndex;    }    d->calculatePositions();}/*!  Returns whether the section \a section is clickable or not.  If \a section is out of range (negative or larger than count() - 1),  TRUE is returned if all sections are clickable, else FALSE.  \sa setClickEnabled()*/bool QHeader::isClickEnabled( int section ) const{    if ( section >= 0 && section < count() ) {	return (bool)d->clicks[ section ];    }    for ( int i = 0; i < count(); ++i ) {	if ( !d->clicks[ i ] )	    return FALSE;    }    return TRUE;}/*!  Returns whether the section \a section is resizeable or not.  If \a section is out of range (negative or larger than count() - 1),  TRUE is returned if all sections are resizeable, else FALSE.  \sa setResizeEnabled()*/bool QHeader::isResizeEnabled( int section ) const{    if ( section >= 0 && section < count() ) {	return (bool)d->resize[ section ];    }    for ( int i = 0; i < count();++i ) {	if ( !d->resize[ i ] )	    return FALSE;    }    return TRUE;}/*!  Returns TRUE if the sections of the header can be moved around be the user,  otherwise FALSE.  \sa setMovingEnabled()*/bool QHeader::isMovingEnabled() const{    return d->move;}/*! reimp */void QHeader::setUpdatesEnabled( bool enable ){    if ( enable )	d->calculatePositions();    QWidget::setUpdatesEnabled( enable );}//#### what about lastSectionCoversAll?#endif // QT_NO_HEADER

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久新电视剧免费观看| 欧美亚洲一区二区在线观看| 欧美亚洲国产一区二区三区va| 欧美成人vr18sexvr| 亚洲大型综合色站| av电影天堂一区二区在线| 2017欧美狠狠色| 亚洲不卡av一区二区三区| 色综合欧美在线| 国产亚洲一二三区| 国产综合一区二区| 91精品国产综合久久国产大片| 亚洲精品成人悠悠色影视| 成人黄色大片在线观看| 久久人人97超碰com| 日本成人在线网站| 成人国产精品免费观看动漫| 91精品欧美一区二区三区综合在| 一区二区久久久| 国产成人8x视频一区二区| 日韩一区二区三区在线观看 | 久久精品国产久精国产爱| 国产91在线观看丝袜| 欧美疯狂性受xxxxx喷水图片| 国产偷国产偷精品高清尤物| 亚洲国产一区二区三区青草影视| 国产盗摄视频一区二区三区| 欧美日韩国产高清一区二区三区| 国产精品视频yy9299一区| 日韩激情一区二区| 国内精品写真在线观看| 丁香另类激情小说| 日韩一区二区三区免费看| 亚洲欧美一区二区视频| 日本亚洲最大的色成网站www| 国产成人一级电影| 欧美一区二区三区小说| 一区二区三区美女| 成人夜色视频网站在线观看| 精品国内二区三区| 日本美女一区二区三区| 欧美日本乱大交xxxxx| 国产精品久久久久久久久动漫| 裸体健美xxxx欧美裸体表演| 欧美视频精品在线| 香蕉成人啪国产精品视频综合网 | ㊣最新国产の精品bt伙计久久| 国产成人精品免费视频网站| 久久久久久电影| 国产成人亚洲综合色影视| 久久色在线观看| 国产麻豆视频一区| 日韩女优av电影在线观看| 亚洲高清不卡在线| av综合在线播放| 国产精品传媒入口麻豆| eeuss影院一区二区三区| 国产精品高潮呻吟| 97se亚洲国产综合自在线不卡| ...av二区三区久久精品| 91亚洲精品一区二区乱码| 最新国产成人在线观看| 色欲综合视频天天天| 亚洲精品免费看| 色欧美片视频在线观看在线视频| 亚洲精品乱码久久久久久黑人| 91浏览器入口在线观看| 亚洲一区二区三区四区中文字幕| 欧美最猛黑人xxxxx猛交| 亚洲成人一区二区在线观看| 欧美一区二区精品在线| 美腿丝袜亚洲色图| 久久香蕉国产线看观看99| 国产91清纯白嫩初高中在线观看| 久久欧美中文字幕| 国产成人亚洲精品狼色在线| 国产精品久久久久久久裸模| 色伊人久久综合中文字幕| 亚洲午夜成aⅴ人片| 欧美一区二区播放| 国产一区二区三区高清播放| 亚洲国产精品ⅴa在线观看| 91性感美女视频| 午夜婷婷国产麻豆精品| 精品国产一区二区三区av性色| 精品综合免费视频观看| 久久久www成人免费无遮挡大片| 国产69精品久久久久777| 亚洲精品国产品国语在线app| 欧美日韩精品欧美日韩精品一| 蜜桃视频一区二区| 国产精品国产三级国产| 成人一区二区三区在线观看| 洋洋av久久久久久久一区| 日韩一区二区三区视频在线| 国产精华液一区二区三区| 亚洲丝袜美腿综合| 7777精品久久久大香线蕉| 国产麻豆精品在线观看| 一区二区三区在线看| 日韩欧美一区二区免费| 成人毛片在线观看| 亚洲成av人片www| 久久久久久久久99精品| 欧美亚洲高清一区| 卡一卡二国产精品| 一区二区三区丝袜| 精品国产一区二区亚洲人成毛片| 91丝袜美腿高跟国产极品老师| 日本成人中文字幕在线视频 | 欧美性淫爽ww久久久久无| 精品一区二区免费视频| 亚洲欧洲成人精品av97| 日韩精品最新网址| 91官网在线观看| 国产剧情一区二区三区| 亚洲国产欧美在线人成| 中文子幕无线码一区tr| 91精品国产丝袜白色高跟鞋| 国产精品自在在线| 免费高清在线一区| 亚洲视频一区在线| 欧美成人精品二区三区99精品| 在线中文字幕不卡| 国产精品亚洲一区二区三区在线| 亚洲在线观看免费视频| 国产日本欧洲亚洲| 91精品国产综合久久久久久漫画| 91麻豆.com| 风间由美性色一区二区三区| 美女在线视频一区| 亚洲综合激情小说| 久久久久国色av免费看影院| 日韩网站在线看片你懂的| 欧美中文一区二区三区| 成人激情黄色小说| 国产乱对白刺激视频不卡| 日韩高清在线电影| 樱桃国产成人精品视频| 国产精品欧美久久久久无广告| 日韩无一区二区| 欧美老人xxxx18| 色88888久久久久久影院野外| 国产成人综合在线| 精品一区二区三区久久久| 一区二区三区在线免费| 1区2区3区精品视频| 国产嫩草影院久久久久| 欧美变态tickle挠乳网站| 欧美精品一二三四| 欧美丝袜第三区| 精品污污网站免费看| 91色综合久久久久婷婷| 成人精品在线视频观看| 狠狠色丁香婷婷综合久久片| 六月婷婷色综合| 另类调教123区| 看国产成人h片视频| 丝袜诱惑制服诱惑色一区在线观看 | 亚洲老妇xxxxxx| 国产精品第一页第二页第三页| 国产欧美视频一区二区三区| www激情久久| 26uuu久久综合| 日韩女同互慰一区二区| 欧美一区二区三区公司| 91精品国产色综合久久不卡电影| 色偷偷久久人人79超碰人人澡| 色婷婷国产精品综合在线观看| 91麻豆.com| 在线一区二区视频| 欧美视频精品在线| 欧美巨大另类极品videosbest | 亚洲人成小说网站色在线| 日韩一区在线看| 最新成人av在线| 亚洲免费资源在线播放| 亚洲精选一二三| 一区二区三区中文字幕电影| 亚洲精品乱码久久久久久久久| 亚洲天堂久久久久久久| 亚洲精品成人精品456| 亚洲一区自拍偷拍| 亚洲精品精品亚洲| 日本不卡一区二区三区高清视频| 免费观看久久久4p| 国内欧美视频一区二区| 国产不卡视频在线播放| 成人av网在线| 日本道在线观看一区二区| 欧美日韩色综合| 91精品国产麻豆国产自产在线| 日韩精品一区二区在线| 久久精品综合网| 国产日韩影视精品| 亚洲黄色小说网站| 日韩福利视频导航| 国产剧情一区二区| 91丨九色丨蝌蚪丨老版| 欧美欧美欧美欧美首页|