diff options
Diffstat (limited to 'qt-ui/profile/divepixmapitem.cpp')
-rw-r--r-- | qt-ui/profile/divepixmapitem.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/profile/divepixmapitem.cpp b/qt-ui/profile/divepixmapitem.cpp index d2f3a692a..dd002e5f1 100644 --- a/qt-ui/profile/divepixmapitem.cpp +++ b/qt-ui/profile/divepixmapitem.cpp @@ -1,6 +1,7 @@ #include "divepixmapitem.h" #include "animationfunctions.h" #include <divepicturewidget.h> +#include <preferences.h> #include <QPen> #include <QBrush> @@ -22,6 +23,13 @@ DivePictureItem::DivePictureItem(int row, QObject *parent): DivePixmapItem(paren #endif rowOnModel = row; setScale(0.2); + connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged())); + setVisible(prefs.show_pictures_in_profile); +} + +void DivePictureItem::settingsChanged() +{ + setVisible(prefs.show_pictures_in_profile); } void DivePictureItem::setPixmap(const QPixmap &pix) |