mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-24 18:04:14 +08:00
Ref T643, disable interactive docking
This commit is contained in:
@@ -5,9 +5,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Main info area of swift</string>
|
<string>Main info area of swift</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="dockOptions">
|
|
||||||
<set>QMainWindow::AnimatedDocks</set>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="qw_centralWidgetEmptyUsedAsPadding">
|
<widget class="QWidget" name="qw_centralWidgetEmptyUsedAsPadding">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
@@ -26,8 +23,11 @@
|
|||||||
<height>33</height>
|
<height>33</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="features">
|
||||||
|
<set>QDockWidget::AllDockWidgetFeatures</set>
|
||||||
|
</property>
|
||||||
<property name="allowedAreas">
|
<property name="allowedAreas">
|
||||||
<set>Qt::TopDockWidgetArea</set>
|
<set>Qt::NoDockWidgetArea</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Cockpit</string>
|
<string>Cockpit</string>
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
<set>QDockWidget::AllDockWidgetFeatures</set>
|
<set>QDockWidget::AllDockWidgetFeatures</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="allowedAreas">
|
<property name="allowedAreas">
|
||||||
<set>Qt::TopDockWidgetArea</set>
|
<set>Qt::NoDockWidgetArea</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Aircraft</string>
|
<string>Aircraft</string>
|
||||||
@@ -171,7 +171,7 @@
|
|||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="allowedAreas">
|
<property name="allowedAreas">
|
||||||
<set>Qt::TopDockWidgetArea</set>
|
<set>Qt::NoDockWidgetArea</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>ATC stations</string>
|
<string>ATC stations</string>
|
||||||
@@ -246,7 +246,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="allowedAreas">
|
<property name="allowedAreas">
|
||||||
<set>Qt::TopDockWidgetArea</set>
|
<set>Qt::NoDockWidgetArea</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Users</string>
|
<string>Users</string>
|
||||||
@@ -315,7 +315,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="allowedAreas">
|
<property name="allowedAreas">
|
||||||
<set>Qt::TopDockWidgetArea</set>
|
<set>Qt::NoDockWidgetArea</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Text messages</string>
|
<string>Text messages</string>
|
||||||
@@ -364,7 +364,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="allowedAreas">
|
<property name="allowedAreas">
|
||||||
<set>Qt::TopDockWidgetArea</set>
|
<set>Qt::NoDockWidgetArea</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Simulator</string>
|
<string>Simulator</string>
|
||||||
@@ -490,7 +490,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="allowedAreas">
|
<property name="allowedAreas">
|
||||||
<set>Qt::TopDockWidgetArea</set>
|
<set>Qt::NoDockWidgetArea</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Weather</string>
|
<string>Weather</string>
|
||||||
@@ -550,7 +550,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<widget class="BlackGui::CDockWidgetInfoArea" name="dwp_Rendering">
|
<widget class="BlackGui::CDockWidgetInfoArea" name="dwp_Rendering">
|
||||||
<property name="allowedAreas">
|
<property name="allowedAreas">
|
||||||
<set>Qt::TopDockWidgetArea</set>
|
<set>Qt::NoDockWidgetArea</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Models</string>
|
<string>Models</string>
|
||||||
@@ -604,7 +604,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<widget class="BlackGui::CDockWidgetInfoArea" name="dwp_Interpolation">
|
<widget class="BlackGui::CDockWidgetInfoArea" name="dwp_Interpolation">
|
||||||
<property name="allowedAreas">
|
<property name="allowedAreas">
|
||||||
<set>Qt::TopDockWidgetArea</set>
|
<set>Qt::NoDockWidgetArea</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Interpolation</string>
|
<string>Interpolation</string>
|
||||||
@@ -665,7 +665,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="allowedAreas">
|
<property name="allowedAreas">
|
||||||
<set>Qt::TopDockWidgetArea</set>
|
<set>Qt::NoDockWidgetArea</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Settings</string>
|
<string>Settings</string>
|
||||||
@@ -734,7 +734,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="allowedAreas">
|
<property name="allowedAreas">
|
||||||
<set>Qt::TopDockWidgetArea</set>
|
<set>Qt::NoDockWidgetArea</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Log</string>
|
<string>Log</string>
|
||||||
@@ -794,7 +794,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="allowedAreas">
|
<property name="allowedAreas">
|
||||||
<set>Qt::TopDockWidgetArea</set>
|
<set>Qt::NoDockWidgetArea</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Radar</string>
|
<string>Radar</string>
|
||||||
|
|||||||
@@ -260,6 +260,12 @@ namespace BlackGui
|
|||||||
this->setFloating(floating);
|
this->setFloating(floating);
|
||||||
this->setAlwaysOnTop(m_alwaysOnTop && floating);
|
this->setAlwaysOnTop(m_alwaysOnTop && floating);
|
||||||
|
|
||||||
|
// disable the interactive docking
|
||||||
|
if (floating)
|
||||||
|
{
|
||||||
|
this->setAllowedAreas(Qt::NoDockWidgetArea);
|
||||||
|
}
|
||||||
|
|
||||||
if (shift && floating) { this->resetPosition(); }
|
if (shift && floating) { this->resetPosition(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user