mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Show/Hide pictures working.
This code hoocks the pictures with the preferences change. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a00d8101c5
commit
b9d04c0cf4
4 changed files with 11 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue