aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-06-27 15:33:43 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-27 20:57:10 +0800
commit8678e2d57c6e456952dc2d75857f60b0129ed0ff (patch)
tree09908a1f39c3e380932751fd12da3b370de1026f /qt-ui/mainwindow.h
parent937fef819a8d1a4b9a7f643f19317fe460457a14 (diff)
downloadsubsurface-8678e2d57c6e456952dc2d75857f60b0129ed0ff.tar.gz
Better positioning of the plus sign icons in the Equip. tab
There are a couple of problems with said icons: - When the Equip. tab is first seen, no relative event is monitored so that the correct position is updated and the icons are positioned. To solve that we connect the signal MainTab::currentChanged(int) and call MainTab::equipmentPlusUpdate(). - When the info-profile QSplitter resizes with a snap towards/from the edges of the main window, no resize handler is called such as MainTab::resizeEvent(). A solution is to monitor the resize of the info-profile splitter with MainWindow::on_infoProfileSplitter_splitterMoved() and again call MainTab::equipmentPlusUpdate() Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r--qt-ui/mainwindow.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index bac74689d..4890cb2ef 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -88,6 +88,9 @@ private slots:
void on_actionUserManual_triggered();
void on_actionDivePlanner_triggered();
+ /* monitor resize of the info-profile splitter */
+ void on_infoProfileSplitter_splitterMoved(int pos, int idx);
+
void current_dive_changed(int divenr);
void initialUiSetup();