Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/qt3support/widgets/q3dockarea.cpp

    r2 r561  
    22**
    33** 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])
    56**
    67** This file is part of the Qt3Support module of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    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.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    474474
    475475    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.
    482481
    483482    \img qmainwindow-qdockareas.png QMainWindow's Q3DockAreas
    484483
    485484    \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.
    494495
    495496    The Q3DockArea class maintains a position list of all its child
     
    10191020            dw->setNewLine(false);
    10201021    }
     1022
    10211023    layout->activate();
    10221024}
     
    11381140    if (accept)
    11391141        forbiddenWidgets.removeAll(dw);
    1140     else if (forbiddenWidgets.contains(dw))
     1142    else if (forbiddenWidgets.contains(dw))
    11411143        forbiddenWidgets.append(dw);
    11421144}
Note: See TracChangeset for help on using the changeset viewer.