Changeset 561 for trunk/src/qt3support/widgets/q3dockarea.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/qt3support/widgets/q3dockarea.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the Qt3Support module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 474 474 475 475 QMainWindow contains four Q3DockAreas which you can use for your 476 Q3ToolBars and Q3DockWindows, so in most situations you do not need 477 to use the Q3DockArea class directly. Although QMainWindow contains 478 support for its own dock areas it isn't convenient for adding new 479 Q3DockAreas. If you need to create your own dock areas we suggest 480 that you create a subclass of QWidget and add your Q3DockAreas to 481 your subclass. 476 Q3ToolBars and Q3DockWindows, so in most situations you do not 477 need to use the Q3DockArea class directly. Although QMainWindow 478 contains support for its own dock areas, you can't add new ones. 479 You also can't add a Q3DockArea to your own subclass of QWidget. 480 It won't be shown. 482 481 483 482 \img qmainwindow-qdockareas.png QMainWindow's Q3DockAreas 484 483 485 484 \target lines 486 \e Lines. Q3DockArea uses the concept of lines. A line is a 487 horizontal region which may contain dock windows side-by-side. A 488 dock area may have room for more than one line. When dock windows 489 are docked into a dock area they are usually added at the right 490 hand side of the top-most line that has room (unless manually 491 placed by the user). When users move dock windows they may leave 492 empty lines or gaps in non-empty lines. Qt::Dock windows can be lined 493 up to minimize wasted space using the lineUp() function. 485 \section1 Lines. 486 487 Q3DockArea uses the concept of lines. A line is a horizontal 488 region which may contain dock windows side-by-side. A dock area 489 may have room for more than one line. When dock windows are docked 490 into a dock area they are usually added at the right hand side of 491 the top-most line that has room (unless manually placed by the 492 user). When users move dock windows they may leave empty lines or 493 gaps in non-empty lines. Qt::Dock windows can be lined up to 494 minimize wasted space using the lineUp() function. 494 495 495 496 The Q3DockArea class maintains a position list of all its child … … 1019 1020 dw->setNewLine(false); 1020 1021 } 1022 1021 1023 layout->activate(); 1022 1024 } … … 1138 1140 if (accept) 1139 1141 forbiddenWidgets.removeAll(dw); 1140 else if ( forbiddenWidgets.contains(dw))1142 else if (forbiddenWidgets.contains(dw)) 1141 1143 forbiddenWidgets.append(dw); 1142 1144 }
Note:
See TracChangeset
for help on using the changeset viewer.