Different Icon for a Bookmark Event.

This patch adds a different icon for a Bookmark Event, and it
also cleaned a lot of code. :)

See #300

[Dirk Hohndel: made the two icons slightly bigger]

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2013-12-04 23:53:53 -02:00 committed by Dirk Hohndel
parent d3a56c137b
commit 441838def0
4 changed files with 9 additions and 32 deletions

View file

@ -97,7 +97,7 @@ private:
int paint_direction;
};
class EventItem : public QGraphicsPolygonItem
class EventItem : public QGraphicsPixmapItem
{
public:
explicit EventItem(struct event *ev, QGraphicsItem* parent = 0, bool grayscale = FALSE);
@ -106,7 +106,6 @@ public:
private:
ToolTipItem *controller;
QString text;
QIcon icon;
bool isGrayscale;
QColor getColor(const color_indice_t i);