diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-13 17:43:45 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-15 10:30:04 +1200 |
commit | fe61f6b69e03d4700e28724e6977e9b365541724 (patch) | |
tree | 56626b89e24253f9df678b4d6a735d299696be33 /desktop-widgets/tab-widgets/maintab.ui | |
parent | 4bb002d1370a9eb4ebe5a1210b969edc5cdba893 (diff) | |
download | subsurface-fe61f6b69e03d4700e28724e6977e9b365541724.tar.gz |
Cleanup: Move dive-equipment tab into own translation units
Most tabs in the dive-information widget have there own translation
units and ui-files. Only the equipment tab was married with the
main tab. Move it out to get more reasonably sized translation units
and some isolation.
Currently, this needs ugly hacks when entering / checking for edit
mode: Access to MainTab is via the MainWindow. And vice/versa, when
accessing the DiveEquipmentTab from the MainTab, the former is
hardcoded as the first item of an array.
These hacks will soon be removed though, when making equipment
editing undoable. The tabs will then be independent.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.ui')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.ui | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.ui b/desktop-widgets/tab-widgets/maintab.ui index cc79634e6..24d21fece 100644 --- a/desktop-widgets/tab-widgets/maintab.ui +++ b/desktop-widgets/tab-widgets/maintab.ui @@ -491,83 +491,6 @@ </item> </layout> </widget> - <widget class="QWidget" name="equipmentTab"> - <attribute name="title"> - <string>Equipment</string> - </attribute> - <layout class="QVBoxLayout" name="verticalLayout_10"> - <item> - <widget class="QScrollArea" name="scrollArea_2"> - <property name="frameShape"> - <enum>QFrame::NoFrame</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Plain</enum> - </property> - <property name="widgetResizable"> - <bool>true</bool> - </property> - <widget class="QWidget" name="scrollAreaWidgetContents2"> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>523</width> - <height>739</height> - </rect> - </property> - <layout class="QGridLayout" name="equipmentTabScrollAreaLayout"> - <property name="leftMargin"> - <number>0</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>0</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - <property name="spacing"> - <number>2</number> - </property> - <item row="1" column="0"> - <widget class="QWidget" name="widget" native="true"> - <layout class="QVBoxLayout" name="cylinderWeightsLayout"> - <property name="spacing"> - <number>0</number> - </property> - <property name="leftMargin"> - <number>0</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>0</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <widget class="QSplitter" name="splitter"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <widget class="TableView" name="cylinders" native="true"/> - <widget class="TableView" name="weights" native="true"/> - </widget> - </item> - </layout> - </widget> - </item> - </layout> - </widget> - </widget> - </item> - </layout> - </widget> </widget> </item> </layout> @@ -586,12 +509,6 @@ <container>1</container> </customwidget> <customwidget> - <class>TableView</class> - <extends>QWidget</extends> - <header>desktop-widgets/tableview.h</header> - <container>1</container> - </customwidget> - <customwidget> <class>TagWidget</class> <extends>QPlainTextEdit</extends> <header>desktop-widgets/tagwidget.h</header> |