diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-09-29 23:19:11 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-03 10:01:13 -0700 |
commit | f5fe6839c7672f775e35068f46fbb2d2e41b8bf5 (patch) | |
tree | 37fe93300f9fb809677d1ad3308ca0d76355b8b6 /desktop-widgets/tripselectiondialog.ui | |
parent | f4ee8934243d6c924d810b5b2ec5a6c1f3b492f8 (diff) | |
download | subsurface-f5fe6839c7672f775e35068f46fbb2d2e41b8bf5.tar.gz |
desktop: add trip selection dialog
A simple dialog to select a trip. Simply fill a QListWidget without
the model/view rigmarole. So much less painful! Of course that means
that the dialog has to be regenerated everytime it is used.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tripselectiondialog.ui')
-rw-r--r-- | desktop-widgets/tripselectiondialog.ui | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/desktop-widgets/tripselectiondialog.ui b/desktop-widgets/tripselectiondialog.ui new file mode 100644 index 000000000..ae3946b04 --- /dev/null +++ b/desktop-widgets/tripselectiondialog.ui @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>TripSelectionDialog</class> + <widget class="QDialog" name="TripSelectionDialog"> + <property name="windowModality"> + <enum>Qt::WindowModal</enum> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>560</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Select trip</string> + </property> + <property name="windowIcon"> + <iconset> + <normalon>:subsurface-icon</normalon> + </iconset> + </property> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QListWidget" name="trips"> + </widget> + </item> + <item> + <widget class="QDialogButtonBox" name="buttonBox"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="standardButtons"> + <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> + </property> + </widget> + </item> + </layout> + </widget> + <resources> + <include location="../subsurface.qrc"/> + </resources> + <connections> + <connection> + <sender>buttonBox</sender> + <signal>accepted()</signal> + <receiver>TripSelectionDialog</receiver> + <slot>accept()</slot> + <hints> + <hint type="sourcelabel"> + <x>248</x> + <y>254</y> + </hint> + <hint type="destinationlabel"> + <x>157</x> + <y>274</y> + </hint> + </hints> + </connection> + <connection> + <sender>buttonBox</sender> + <signal>rejected()</signal> + <receiver>TripSelectionDialog</receiver> + <slot>reject()</slot> + <hints> + <hint type="sourcelabel"> + <x>316</x> + <y>260</y> + </hint> + <hint type="destinationlabel"> + <x>286</x> + <y>274</y> + </hint> + </hints> + </connection> + </connections> +</ui> |