From d66e4b5236441f3ac83a314055e4981571197d86 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 7 Feb 2014 16:34:42 -0200 Subject: Fix the 'Empty' profile state that was broken for ages. Show a nice poster that Luisa did for Subsurface ( we have a few other options that I'm waiting her to send. ) Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'qt-ui/profile/profilewidget2.h') diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h index b837376d3..ebc45f48a 100644 --- a/qt-ui/profile/profilewidget2.h +++ b/qt-ui/profile/profilewidget2.h @@ -55,14 +55,13 @@ public: public slots: // Necessary to call from QAction's signals. void settingsChanged(); + void setEmptyState(); + void setProfileState(); + protected: virtual void resizeEvent(QResizeEvent* event); virtual void wheelEvent(QWheelEvent* event); virtual void mouseMoveEvent(QMouseEvent* event); - -signals: - void startProfileState(); - void startEmptyState(); private: /*methods*/ void fixBackgroundPos(); void scrollViewTo(const QPoint& pos); @@ -74,7 +73,9 @@ private: DivePlotDataModel *dataModel; State currentState; int zoomLevel; - DivePixmapItem *background ; + QHash backgrounds; + DivePixmapItem *background; + QString backgroundFile; ToolTipItem *toolTipItem; // All those here should probably be merged into one structure, // So it's esyer to replicate for more dives later. -- cgit v1.2.3-70-g09d2