From eec33847b25dc6e27f8c958aec414ff241b343d8 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sat, 8 Apr 2017 18:02:44 +0200 Subject: [PATCH] UI layout mapping form --- src/blackgui/components/dbmappingcomponent.ui | 12 +- src/blackgui/editors/modelmappingform.ui | 127 ++++++++---------- src/blackgui/share/qss/stdwidget.qss | 5 +- 3 files changed, 68 insertions(+), 76 deletions(-) diff --git a/src/blackgui/components/dbmappingcomponent.ui b/src/blackgui/components/dbmappingcomponent.ui index e100774c0..9b4d4382c 100644 --- a/src/blackgui/components/dbmappingcomponent.ui +++ b/src/blackgui/components/dbmappingcomponent.ui @@ -250,7 +250,7 @@ 0 - 110 + 100 @@ -331,17 +331,17 @@ + + BlackGui::Views::CAircraftModelView + QTableView +
blackgui/views/aircraftmodelview.h
+
BlackGui::Editors::CAircraftModelForm QFrame
blackgui/editors/aircraftmodelform.h
1
- - BlackGui::Views::CAircraftModelView - QTableView -
blackgui/views/aircraftmodelview.h
-
BlackGui::Editors::CModelMappingForm QFrame diff --git a/src/blackgui/editors/modelmappingform.ui b/src/blackgui/editors/modelmappingform.ui index 82a813675..59377590e 100644 --- a/src/blackgui/editors/modelmappingform.ui +++ b/src/blackgui/editors/modelmappingform.ui @@ -6,19 +6,13 @@ 0 0 - 429 + 417 107 Model editor - - QFrame::NoFrame - - - QFrame::Plain - 4 @@ -27,20 +21,20 @@ 0 - 0 + 2 0 - 0 + 2 Simulator model - + 3 @@ -53,26 +47,20 @@ 3 - - - - - 10 - 0 - - - - QFrame::StyledPanel - - - QFrame::Raised + + 4 + + + + + Model description - - - - Model key + + + + Updated: @@ -83,13 +71,10 @@ - - - - Description: - - - le_Description + + + + Model key @@ -103,6 +88,16 @@ + + + + Description: + + + le_Description + + + @@ -123,6 +118,13 @@ + + + + File: + + + @@ -133,13 +135,6 @@ - - - - File: - - - @@ -150,17 +145,26 @@ - - - - Updated: + + + + + 10 + 0 + - - - - Model description + + + + + 0 + 22 + + + + Qt::StrongFocus @@ -187,25 +191,18 @@ - - - - Qt::StrongFocus - - - QFrame::StyledPanel - - - QFrame::Raised - - - + + BlackGui::Components::CSimulatorSelector + QFrame +
blackgui/components/simulatorselector.h
+ 1 +
BlackGui::CLabelAndIcon QFrame @@ -218,12 +215,6 @@
blackgui/editors/validationindicator.h
1
- - BlackGui::Components::CSimulatorSelector - QFrame -
blackgui/components/simulatorselector.h
- 1 -
BlackGui::Components::CModelModeSelector QFrame diff --git a/src/blackgui/share/qss/stdwidget.qss b/src/blackgui/share/qss/stdwidget.qss index 286e9e142..a6648c09c 100644 --- a/src/blackgui/share/qss/stdwidget.qss +++ b/src/blackgui/share/qss/stdwidget.qss @@ -276,7 +276,8 @@ QPlainTextEdit { QGroupBox { border: 1px solid green; - margin-top: 2ex; /* the x-height of the relevant font, leave space at the top for the title */ + margin-top: 2.5ex; /* the x-height of the relevant font, leave space at the top for the title */ + padding-top: 2.5ex; border-radius: 5px; background: black; /* background is background color here */ background-image: url(:/textures/icons/textures/texture-inner.jpg); @@ -291,7 +292,7 @@ QGroupBox::title { left: 5px; subcontrol-origin: margin; subcontrol-position: middle left; /* position at the top center */ - padding: 0px 10px; + padding: 0px 10px 0px 10px; background-color: darkblue; border: 1px solid green; border-radius: 5px;