summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-12 15:54:55 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-12 15:54:55 -0300
commit7e9d6e28297432d4a15721a49a9dd0c0d067ce7e (patch)
tree40c5702060c1e5d5169d4473d5bb2911778d2f28 /qt-ui/mainwindow.h
parent9993d4996659b2d6c07f283895acb6409012ea9c (diff)
downloadsubsurface-7e9d6e28297432d4a15721a49a9dd0c0d067ce7e.tar.gz
Fixed the show / hide dialog shortcuts to take the splitter into consideration
Fixed the show / hide dialog shortcuts to take the splitter into consideration, So, here's the deal. We have a few QSplitters that takes care of helping us with the size of a few widgets, they are ok, and we should continue using them to manage the visibility of them too. But the way that we did before was to widget->hide(); something, and if you hided something using the splitter, by holding it's handle and collapsing the widget, then you used the 'ctrl+number' shortcut to show it, it whould only show a gray panel. This patch makes everything behave using the splitters. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r--qt-ui/mainwindow.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index f3024ef8d..0b3812469 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -8,13 +8,13 @@
#define MAINWINDOW_H
#include <QMainWindow>
-#include <QModelIndex>
#include <QAction>
struct DiveList;
class QSortFilterProxyModel;
class DiveTripModel;
+
namespace Ui
{
class MainWindow;
@@ -35,6 +35,8 @@ class MainWindow : public QMainWindow
{
Q_OBJECT
public:
+ enum {COLLAPSED, EXPANDED};
+
MainWindow();
ProfileGraphicsView *graphics();
MainTab *information();
@@ -71,6 +73,7 @@ private Q_SLOTS:
void on_actionViewList_triggered();
void on_actionViewProfile_triggered();
void on_actionViewInfo_triggered();
+ void on_actionViewGlobe_triggered();
void on_actionViewAll_triggered();
void on_actionPreviousDC_triggered();
void on_actionNextDC_triggered();
@@ -102,6 +105,7 @@ private:
void redrawProfile();
void file_save();
void file_save_as();
+ void setupSplitters();
};
MainWindow *mainWindow();