mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
86bc3bd58f
commit
d66e4b5236
6 changed files with 61 additions and 12 deletions
|
|
@ -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<QString, QPixmap> 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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue