From fe61f6b69e03d4700e28724e6977e9b365541724 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 13 Apr 2019 17:43:45 +0200 Subject: 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 --- desktop-widgets/tab-widgets/TabDiveEquipment.ui | 83 +++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 desktop-widgets/tab-widgets/TabDiveEquipment.ui (limited to 'desktop-widgets/tab-widgets/TabDiveEquipment.ui') diff --git a/desktop-widgets/tab-widgets/TabDiveEquipment.ui b/desktop-widgets/tab-widgets/TabDiveEquipment.ui new file mode 100644 index 000000000..08dd32698 --- /dev/null +++ b/desktop-widgets/tab-widgets/TabDiveEquipment.ui @@ -0,0 +1,83 @@ + + + TabDiveEquipment + + + Equipment + + + + + + QFrame::NoFrame + + + QFrame::Plain + + + true + + + + + 0 + 0 + 523 + 739 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 2 + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Qt::Vertical + + + + + + + + + + + + + + + + + -- cgit v1.2.3-70-g09d2