|
1 | 1 | /******************************************************************************* |
2 | 2 | ** Qt Advanced Docking System |
3 | 3 | ** Copyright (C) 2017 Uwe Kindler |
4 | | -** |
| 4 | +** |
5 | 5 | ** This library is free software; you can redistribute it and/or |
6 | 6 | ** modify it under the terms of the GNU Lesser General Public |
7 | 7 | ** License as published by the Free Software Foundation; either |
8 | 8 | ** version 2.1 of the License, or (at your option) any later version. |
9 | | -** |
| 9 | +** |
10 | 10 | ** This library is distributed in the hope that it will be useful, |
11 | 11 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | 12 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | 13 | ** Lesser General Public License for more details. |
14 | | -** |
| 14 | +** |
15 | 15 | ** You should have received a copy of the GNU Lesser General Public |
16 | 16 | ** License along with this library; If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ******************************************************************************/ |
@@ -62,12 +62,12 @@ CDockInsertParam dockAreaInsertParameters(DockWidgetArea Area) |
62 | 62 | { |
63 | 63 | switch (Area) |
64 | 64 | { |
65 | | - case TopDockWidgetArea: return QPair<Qt::Orientation, bool>(Qt::Vertical, false); |
66 | | - case RightDockWidgetArea: return QPair<Qt::Orientation, bool>(Qt::Horizontal, true); |
| 65 | + case TopDockWidgetArea: return CDockInsertParam(Qt::Vertical, false); |
| 66 | + case RightDockWidgetArea: return CDockInsertParam(Qt::Horizontal, true); |
67 | 67 | case CenterDockWidgetArea: |
68 | | - case BottomDockWidgetArea: return QPair<Qt::Orientation, bool>(Qt::Vertical, true); |
69 | | - case LeftDockWidgetArea: return QPair<Qt::Orientation, bool>(Qt::Horizontal, false); |
70 | | - default: QPair<Qt::Orientation, bool>(Qt::Vertical, false); |
| 68 | + case BottomDockWidgetArea: return CDockInsertParam(Qt::Vertical, true); |
| 69 | + case LeftDockWidgetArea: return CDockInsertParam(Qt::Horizontal, false); |
| 70 | + default: CDockInsertParam(Qt::Vertical, false); |
71 | 71 | } // switch (Area) |
72 | 72 |
|
73 | 73 | return CDockInsertParam(Qt::Vertical, false); |
|
0 commit comments