Profile: remove old picture event handling code
We now handle pictures differently. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f1f16b224b
commit
7f783e2147
@ -64,10 +64,6 @@ void DiveEventItem::setupPixmap()
|
||||
setPixmap(EVENT_PIXMAP(":flag"));
|
||||
} else if (strcmp(internalEvent->name, "heading") == 0) {
|
||||
setPixmap(EVENT_PIXMAP(":flag"));
|
||||
} else if (internalEvent->type == 123) {
|
||||
QPixmap picture;
|
||||
picture.load(internalEvent->name);
|
||||
setPixmap(picture.scaled(100, 100, Qt::KeepAspectRatio, Qt::SmoothTransformation));
|
||||
} else {
|
||||
setPixmap(EVENT_PIXMAP(":warning"));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user