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

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

?? qmainwindow.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
    QMainWindow *win;    int pressedHandle;    bool pressed;#ifndef QT_NO_TOOLTIP    QHideToolTip *tip;    friend class QHideToolTip;#endif};#ifndef QT_NO_TOOLTIPvoid QHideToolTip::maybeTip( const QPoint &pos ){    if ( !parentWidget() )	return;    QHideDock *dock = (QHideDock*)parentWidget();    if ( !dock->d->hidden || dock->d->hidden->isEmpty() )	return;    QMainWindowPrivate::ToolBar *tb;    int x = 0;    int i = 0;    for ( tb = dock->d->hidden->first(); tb; tb = dock->d->hidden->next(), ++i ) {	if ( !tb->t->isVisible() )	    continue;	if ( pos.x() >= x && pos.x() <= x + 30 ) {	    if ( !tb->t->label().isEmpty() )		tip( QRect( x, 0, 30, dock->height() ), tb->t->label() );	    return;	}	x += 30;    }}#endif//************************************************************************************************// ------------------------ static internal functions  -----------------------//************************************************************************************************static QRect findRectInDockingArea( QMainWindowPrivate *d, QMainWindow::ToolBarDock dock,				    const QPoint &pos, QToolBar *tb ){    Qt::Orientation o = dock == QMainWindow::Top || dock == QMainWindow::Bottom ?			Qt::Horizontal : Qt::Vertical;    bool swap = o != tb->orientation();    QPoint offset( 0, 0 );    if ( swap ) {	if ( o == Qt::Horizontal )	    offset = QPoint( tb->height() / 2, 0 );	else	    offset = QPoint( 0, tb->width() / 2 );    }    return QRect( pos - d->cursorOffset - offset,		  swap ? QSize( tb->height(), tb->width() ) : tb->size() );}static void saveToolLayout( QMainWindowPrivate *d, QMainWindow::ToolBarDock dock, QToolBar *tb ){    QMainWindowPrivate::ToolBarDock * dl = 0;    switch ( dock ) {    case QMainWindow::Left:	dl = d->left;	break;    case QMainWindow::Right:	dl = d->right;	break;    case QMainWindow::Top:	dl = d->top;	break;    case QMainWindow::Bottom:	dl = d->bottom;	break;    case QMainWindow::Unmanaged:	dl = d->unmanaged;	break;    case QMainWindow::Minimized:	dl = d->hidden;	break;    case QMainWindow::TornOff:	dl = d->tornOff;	break;    }    if ( !dl )	return;    QMainWindowPrivate::ToolBarDock *dummy;    QMainWindowPrivate::ToolBar *t = 0;    t = d->findToolbar( tb, dummy );    int i = dl->findRef( t );    if ( i == -1 )	return;    if ( i + 1 < (int)dl->count() && !dl->at( i + 1 )->nl ) {	if ( t->nl )	    dl->at( i + 1 )->nl = t->nl;	else if ( i - 1 >= 0 )	    dl->at( i + 1 )->nl = tb_pos( dl->at( i - 1 )->t, dl->at( i - 1 )->t->orientation(), TRUE ) !=				  tb_pos( dl->at( i + 1 )->t, dl->at( i + 1 )->t->orientation(), TRUE );    }}static void findNewToolbarPlace( QMainWindowPrivate *d, QToolBar *tb, QMainWindow::ToolBarDock dock,				 const QRect &dockArea, QToolBar *&relative, int &ipos ){    relative = 0;    Qt::Orientation o = dock == QMainWindow::Top || dock == QMainWindow::Bottom ?			Qt::Horizontal : Qt::Vertical;    QMainWindowPrivate::ToolBarDock * dl = 0;    int dy = 0;    switch ( dock ) {    case QMainWindow::Left:	dl = d->left;	if ( d->lLeft )	    dy = d->lLeft->geometry().y() + ( d->top && !d->top->isEmpty() ? 8 : 0 );	if ( d->lLeft && d->lastTopHeight != -1 && !dy )	    dy = d->lastTopHeight;	else	    d->lastTopHeight = dy;	break;    case QMainWindow::Right:	dl = d->right;	if ( d->lRight )	    dy = d->lRight->geometry().y() + ( d->top && !d->top->isEmpty() ? 8 : 0 );	if ( d->lRight && d->lastTopHeight != -1 && !dy )	    dy = d->lastTopHeight;	else	    d->lastTopHeight = dy;	break;    case QMainWindow::Top:	dl = d->top;	dy = -9;	break;    case QMainWindow::Bottom:	dl = d->bottom;	dy = -9;	break;    case QMainWindow::Unmanaged:	dl = d->unmanaged;	break;    case QMainWindow::Minimized:	dl = d->hidden;	break;    case QMainWindow::TornOff:	dl = d->tornOff;	break;    }    QList<QMainWindowPrivate::ToolBar> bars;    QMap<QRect, QList<QMainWindowPrivate::ToolBar> > rows;    QMainWindowPrivate::ToolBar *first = 0, *last = 0;    QMainWindowPrivate::ToolBar *t = dl->first();    int oldPos = dl->first() ? tb_pos( dl->first()->t, o, TRUE ) : 0;    bool makeNextNl = FALSE;    bool hadNl = FALSE;    while ( t ) {	if ( !t->t->isVisibleTo( t->t->parentWidget() ) ) {	    t = dl->next();	    continue;	}	if ( t->t == tb )	    hadNl = t->nl;	else	    last = t;	if ( !first && t->t != tb )	    first = t;	int pos = tb_pos( t->t, o, TRUE );	if ( pos != oldPos ) {	    QRect r;	    if ( o == Qt::Horizontal ) { 		r = QRect( dockArea.x(), QMAX( oldPos, dockArea.y() ), 			   dockArea.width(),			   bars.last() ? bars.last()->t->height() : pos - oldPos - dockArea.y() );	    } else {		r = QRect( QMAX( oldPos, dockArea.x() ), dockArea.y(),			   bars.last() ? bars.last()->t->width() : pos - oldPos - dockArea.x(),			   dockArea.height() );	    }	    rows[ r ] = bars;	    bars.clear();	    bars.append( t );	    if ( t->t == tb ) {		makeNextNl = TRUE;		t->nl = FALSE;	    } else {		makeNextNl = FALSE;		t->nl = TRUE;	    }	    oldPos = pos;	} else {	    if ( !makeNextNl ) {		t->nl = FALSE;	    } else {		t->nl = TRUE;	    }	    makeNextNl = FALSE;	    bars.append( t );	}	t = dl->next();    }    if ( !bars.isEmpty() ) {	    QRect r;	    if ( o == Qt::Horizontal ) {		r = QRect( dockArea.x(), bars.last()->t->y(), dockArea.width(), bars.last()->t->height() );	    } else {		r = QRect( bars.last()->t->x(), dockArea.y(), bars.last()->t->width(), dockArea.height() );	    }	    rows[ r ] = bars;	    bars.clear();    }    QMainWindowPrivate::ToolBarDock *dummy;    t = d->findToolbar( tb, dummy );    QMainWindowPrivate::ToolBar *me = t;    t->extraOffset = rect_pos( d->oldPosRect, o ) + rect_pos( dockArea, o ) - dy;    if ( rows.isEmpty() ) {	relative = 0;    } else {	QMap<QRect, QList<QMainWindowPrivate::ToolBar> >::Iterator it = rows.begin();#ifdef QMAINWINDOW_DEBUG	qDebug( "compare (%d, %d, %d, %d) ...",		d->oldPosRect.x(), d->oldPosRect.y(),		d->oldPosRect.width(), d->oldPosRect.height() );#endif	for ( ; it != rows.end(); ++it ) {#ifdef QMAINWINDOW_DEBUG	    qDebug( "  ... width (%d, %d, %d, %d)",		    it.key().x(), it.key().y(),		    it.key().width(), it.key().height() );#endif	    if ( it.key().intersects( d->oldPosRect ) ) {		QRect ir = it.key().intersect( d->oldPosRect );		if ( rect_extend( ir, o, TRUE ) < 3 )		    continue;		int div = 4;		int mul = 3;		if ( d->opaque ) {		    mul = 2;		    div = 5;		}		bool contains = it.key().contains( d->oldPosRect );		QRect oldPosRect( d->oldPosRect ); // g++ 2.7.2.3 bug		if ( !contains && rect_extend( oldPosRect, o, TRUE ) > rect_extend( it.key(), o, TRUE ) &&		     rect_pos( oldPosRect, o, TRUE ) < rect_pos( it.key(), o, TRUE ) &&		     rect_pos( oldPosRect, o, TRUE ) + rect_extend( oldPosRect, o, TRUE ) >		     rect_pos( it.key(), o, TRUE ) + rect_extend( it.key(), o, TRUE ) )		    contains = TRUE;		if ( !contains && rect_extend( ir, o, TRUE ) < ( mul * rect_extend( it.key(), o, TRUE ) ) / div ) {		    if ( rect_pos( ir, o, TRUE ) <= rect_pos( it.key(), o, TRUE ) ) {#ifdef QMAINWINDOW_DEBUG			qDebug( "above" );#endif			relative = ( *it ).first()->t;			ipos = QMainWindowPrivate::Above;			QMainWindowPrivate::ToolBar *l = ( *it ).first();			if ( relative == tb && ( *it ).next() ) {			    relative = ( *it ).current()->t;			} else if ( relative == tb ) {			    ipos = QMainWindowPrivate::SameIndex;			    l->nl = TRUE;			}		    } else {#ifdef QMAINWINDOW_DEBUG			qDebug( "below" );#endif			relative = ( *it ).first()->t;			ipos = QMainWindowPrivate::Below;			QMainWindowPrivate::ToolBar *l = ( *it ).first();			if ( relative == tb && ( *it ).next() ) {			    relative = ( *it ).current()->t;			} else if ( relative == tb ) {			    ipos = QMainWindowPrivate::SameIndex;			    l->nl = TRUE;			}		    }		} else {#ifdef QMAINWINDOW_DEBUG		    qDebug( "insinde" );#endif		    bars = *it;		    t = bars.first();		    QMainWindowPrivate::ToolBar *b = 0, *last = 0;		    bool hasMyself = FALSE;		    while ( t ) {			if ( t->t == tb ) {			    hasMyself = TRUE;			    t = bars.next();			    continue;			}			if ( tb_pos( t->t, o ) + tb_extend( t->t, o ) / 2 < rect_pos( d->oldPosRect, o ) ) {			    b = t;			    t = bars.next();			    continue;			}			last = t;			break;		    }		    if ( !b && hadNl && me )			me->nl = TRUE;		    if ( !b && last ) {			relative = last->t;			ipos = QMainWindowPrivate::Before;#ifdef QMAINWINDOW_DEBUG			qDebug( "...before" );#endif		    } else if ( b ) {			relative = b->t;			ipos = QMainWindowPrivate::After;#ifdef QMAINWINDOW_DEBUG			qDebug( "...after" );#endif		    }		    if ( !relative && hasMyself ) {#ifdef QMAINWINDOW_DEBUG			qDebug( "...no relative and have myself => self index" );#endif			relative = tb;			ipos = QMainWindowPrivate::SameIndex;		    } else if ( !relative ) {#ifdef QMAINWINDOW_DEBUG			qDebug( "AUTSCH!!!!!!!!!!" );#endif		    }		}		return;	    }	}    }    if ( rect_pos( d->oldPosRect, o, TRUE ) < rect_pos( dockArea, o, TRUE ) && first ) {	relative = first->t;	ipos = QMainWindowPrivate::Above;    } else if ( rect_pos( d->oldPosRect, o, TRUE ) + rect_extend( d->oldPosRect, o, TRUE ) >		rect_pos( dockArea, o, TRUE ) + rect_extend( d->oldPosRect, o, TRUE ) && last ) {	relative = last->t;	ipos = QMainWindowPrivate::Below;    } else {	relative = 0;	ipos = QMainWindowPrivate::Before;    }}#endif// NOT REVISED/*! \class QMainWindow qmainwindow.h  \brief The QMainWindow class provides a typical application window,  with a menu bar, some tool bars and a status bar.  \ingroup application  In addition, you need the large central widget, which you supply and  tell QMainWindow about using setCentralWidget(), and perhaps a few  tool bars, which you can add using addToolBar().  The central widget is not touched by QMainWindow.  QMainWindow  manages its geometry, and that is all.  For example, the  application/application.cpp example (an editor) sets a QMultiLineEdit  to be the central widget.  QMainWindow automatically detects the creation of a menu bar or  status bar if you specify the QMainWindow as parent, or you can use  the provided menuBar() and statusBar() functions.  menuBar() and  statusBar() create a suitable widget if one doesn't exist, and  updates the window's layout to make space.  QMainWindow also provides a QToolTipGroup connected to the status  bar.  toolTipGroup() provides access to the QToolTipGroup, but there  is no way to set the tool tip group.  The QMainWindow allows by default toolbars in all docking areas.  You can use setDockEnabled() to enable and disable docking areas  for toolbars. Currently, only \c Top, \c Left, \c Right, \c Bottom  and \c Minimized are meaningful.  Several functions let you change the appearance of a QMainWindow  globally: <ul>  <li> setRightJustification() determines whether QMainWindow  should ensure that the toolbars fill the available space  (see also QToolBar::setHorizontalStretchable() and QToolBar::setVerticalStretchable()),  <li>  setUsesBigPixmaps() determines whether QToolButton (and other  classes) should draw small or large pixmaps (see QIconSet for more  about that),  <li> setUsesTextLabel() determines whether the toolbar buttons (and  other classes), should display a textlabel in addition to pixmaps (see  QToolButton for more about that).  </ul>  Toolbars can be dragged by the user into each enabled docking area  and inside each docking area to change the order of the toolbars  there. This feature can be enabled and disabled using setToolBarsMovable().  By default this feature is enabled. If the \c Minimized dock is enabled the user  can hide(minimize)/show(restore) a toolbar with a click on the toolbar handle. The handles of  all minimized toolbars are drawn below the menu bar in one row, and if the user  moves the mouse cursor onto such a handle, the label of the toolbar  is displayed in a tool tip (see QToolBar::label()). So if you enable the Minimized dock,  you should specify a meaningful label for each toolbar.  Normally toolbars are moved transparently (this means while the user  drags one, a rectangle is drawn on the screen). With setOpaqueMoving()  it's possible to switch between opaque and transparent moving  of toolbars.  The main window's menubar is static (on the top) by default. If you want a movable  menubar, create a QMenuBar as stretchable widget inside its  own movable toolbar and restrict this toolbar to only live within the  Top or Bottom dock:  \code  QToolBar *tb = new QToolBar( this );  addToolBar( tb, tr( "Menubar" ), Top, FALSE );  QMenuBar *mb = new QMenuBar( tb );  mb->setFrameStyle( QFrame::NoFrame );  tb->setStretchableWidget( mb );  setDockEnabled( tb, Left, FALSE );  setDockEnabled( tb, Right, FALSE );  \endcode  An application with multiple toolbars can choose to save the current  toolbar layout in order to restore it in the next session. To do so,  use getLocation() on each toolbar, store the data and restore the  layout using moveToolBar() on each toolbar again. When restoring,  ensure to move the toolbars in exactly the same order in which you  got the information.  For multi-document interfaces (MDI), use a QWorkspace as central  widget.  <img src=qmainwindow-m.png> <img src=qmainwindow-w.png>  \sa QToolBar QStatusBar QMenuBar QToolTipGroup QDialog*//*!  \enum QMainWindow::ToolBarDock  Each toolbar can be in one of the following positions:  <ul>    <li>\c Top - above the central widget, below the menubar.    <li>\c Bottom - below the central widget, above the status bar.    <li>\c Left - to the left of the central widget.    <li>\c Right - to the left of the central widget.    <li>\c Minimized - the toolbar is not shown - all handles of minimized toolbars    are drawn in one row below the menu bar.  </ul>  Other values are also defined for future expansion.*//*!  Constructs an empty main window. */QMainWindow::QMainWindow( QWidget * parent, const char * name, WFlags f )    : QWidget( parent, name, f ){    d = new QMainWindowPrivate;#ifndef QT_NO_TOOLBAR    d->hideDock = new QHideDock( this, d );    d->opaque = FALSE;#endif    installEventFilter( this );}/*! Destructs the object and frees any allocated resources.*/QMainWindow::~QMainWindow(){    delete layout();    delete d;}#ifndef QT_NO_MENUBAR/*!  Sets this main window to use the menu bar \a newMenuBar.  The old menu bar, if there was any, is deleted along with its  contents.  \sa menuBar()*/void QMainWindow::setMenuBar( QMenuBar * newMenuBar ){    if ( !newMenuBar )	return;    if ( d->mb )	delete d->mb;    d->mb = newMenuBar;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久久久久快鸭 | 国产欧美久久久精品影院| 日韩电影在线免费| 日韩精品自拍偷拍| 国产综合一区二区| 国产欧美一区二区精品性色超碰 | 欧美一级高清大全免费观看| 午夜精品免费在线观看| 欧美精品久久一区二区三区| 日韩国产在线一| 日韩视频免费直播| 国产成人亚洲综合a∨婷婷| 国产欧美日韩久久| 91视视频在线直接观看在线看网页在线看| 综合久久久久综合| 欧美日韩久久一区二区| 美腿丝袜一区二区三区| 久久久久久久久蜜桃| 成人不卡免费av| 亚洲男人电影天堂| 在线综合视频播放| 福利一区二区在线观看| 亚洲免费在线看| 欧美一区二区日韩一区二区| 国产老妇另类xxxxx| 亚洲欧美另类综合偷拍| 日韩欧美国产麻豆| 91论坛在线播放| 美女在线一区二区| 国产精品久久久99| 欧美一区二区福利在线| 不卡一区二区三区四区| 亚洲成人福利片| 久久久99久久| 91精品国产综合久久久蜜臀粉嫩| 国产精品456| 亚洲成人手机在线| 欧美韩国日本综合| 日韩一区二区三| 色天天综合色天天久久| 国产精品中文字幕一区二区三区| 一级日本不卡的影视| 久久久久久久久久久久电影| 欧美在线制服丝袜| 久久se精品一区精品二区| 一区二区三区在线看| www国产亚洲精品久久麻豆| 日本韩国欧美三级| 国产99久久久久| 麻豆91在线看| 亚洲va中文字幕| 国产精品看片你懂得| 欧美成人性战久久| 欧美日韩免费高清一区色橹橹| 成人午夜视频网站| 狠狠色丁香婷综合久久| 日本强好片久久久久久aaa| 一区二区欧美在线观看| 国产精品福利一区二区三区| 国产日本亚洲高清| 精品国产污网站| 欧美一区二区三区视频免费 | 久久精品99国产精品日本| 亚洲综合男人的天堂| 欧美激情一区二区三区不卡| 久久综合一区二区| 日韩欧美视频一区| 欧美一区午夜精品| 欧美欧美午夜aⅴ在线观看| 一本大道综合伊人精品热热 | 亚洲综合在线观看视频| 国产精品青草综合久久久久99| 精品日产卡一卡二卡麻豆| 69堂国产成人免费视频| 欧美日韩激情一区二区三区| 日本黄色一区二区| 欧美一区三区四区| 欧美日韩不卡一区二区| 7777精品伊人久久久大香线蕉的 | 亚洲色图丝袜美腿| 亚洲欧美aⅴ...| 一区二区视频在线看| 亚洲精品水蜜桃| 一区二区久久久久久| 亚洲国产综合视频在线观看| 午夜精品视频在线观看| 青青草国产成人av片免费| 蜜桃视频免费观看一区| 国产乱子轮精品视频| 国产精品911| 一本色道综合亚洲| 欧美精品自拍偷拍| 久久综合色综合88| 国产精品毛片无遮挡高清| 亚洲综合自拍偷拍| 久久黄色级2电影| 国产成人av影院| 99国产精品久久久久久久久久| 91麻豆免费看| 欧美绝品在线观看成人午夜影视| 日韩欧美一区在线| 国产精品免费视频一区| 综合分类小说区另类春色亚洲小说欧美| 亚洲免费观看高清完整版在线| 性久久久久久久久久久久| 精品一区二区在线播放| 成人小视频免费观看| 欧美日韩国产大片| 精品99一区二区| 亚洲人精品午夜| 日韩电影在线免费| 成人午夜精品一区二区三区| 欧美亚洲丝袜传媒另类| 久久一日本道色综合| 亚洲免费三区一区二区| 麻豆精品精品国产自在97香蕉| 成人午夜av电影| 欧美三级在线看| 国产校园另类小说区| 亚洲在线中文字幕| 国产一区二区毛片| 欧美性欧美巨大黑白大战| 国产视频一区在线播放| 亚洲午夜免费视频| 粉嫩嫩av羞羞动漫久久久| 4438x亚洲最大成人网| 日本一区二区三区高清不卡| 五月婷婷综合网| 91香蕉国产在线观看软件| 日韩美女一区二区三区四区| 亚洲精品国产无天堂网2021| 国产精品自拍网站| 欧美日韩国产综合一区二区 | 欧美视频在线观看一区二区| 久久精品视频在线免费观看| 午夜婷婷国产麻豆精品| 成人app在线| 精品1区2区在线观看| 亚洲综合免费观看高清完整版在线 | 亚洲第一成年网| 成人av在线播放网址| 欧美刺激脚交jootjob| 亚洲 欧美综合在线网络| 成人精品电影在线观看| 26uuu国产日韩综合| 日本成人在线电影网| 欧美亚洲日本国产| 综合av第一页| 风间由美一区二区av101| 2024国产精品| 91欧美一区二区| 亚洲精品国产品国语在线app| 精品亚洲aⅴ乱码一区二区三区| 欧美男女性生活在线直播观看| 色av综合在线| 中文字幕一区二区三区色视频| 国产最新精品免费| 91精品国产高清一区二区三区| 亚洲尤物视频在线| 99热在这里有精品免费| 中文字幕电影一区| 国产福利精品一区| 欧美激情一区不卡| 国产91精品露脸国语对白| 亚洲精品一线二线三线无人区| 蜜桃视频免费观看一区| 日韩欧美的一区二区| 免费欧美在线视频| 91精品国产麻豆| 免费观看一级欧美片| 日韩欧美中文一区| 激情国产一区二区| 久久久99久久| 国产成人啪午夜精品网站男同| 国产午夜亚洲精品午夜鲁丝片| 国产一区二区三区在线观看精品| 欧美精品一区二区在线观看| 国产综合久久久久久鬼色 | 国产一区二区三区不卡在线观看| 欧美成人午夜电影| 国产乱码精品一区二区三区忘忧草| 久久久久国产精品免费免费搜索| 国产精品资源在线看| 中文字幕一区二区三区四区| 91高清在线观看| 日韩精品亚洲专区| 亚洲精品在线免费播放| 成人中文字幕合集| 亚洲黄色尤物视频| 欧美精品久久久久久久多人混战 | 亚洲一区在线观看免费观看电影高清 | 91免费视频网| 午夜精品成人在线| 久久亚洲影视婷婷| av激情综合网| 奇米777欧美一区二区| 国产欧美日韩卡一| 欧美日韩一级二级| 国产乱子伦视频一区二区三区| 国产精品动漫网站|