mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove silly macro to pretend that we were doing things the right way.
That macro was useless, I should have been drunk when I wrote it, and I don't drink. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1e25a7c234
commit
b31becd2d9
1 changed files with 4 additions and 11 deletions
|
@ -1624,17 +1624,10 @@ ExpanderGraphics::ExpanderGraphics(QGraphicsItem *parent) : QGraphicsRectItem(pa
|
|||
leftWing(new QGraphicsPixmapItem(this)),
|
||||
rightWing(new QGraphicsPixmapItem(this))
|
||||
{
|
||||
QPixmap p;
|
||||
#define CREATE(item, pixmap) \
|
||||
p = QPixmap(QString(pixmap)); \
|
||||
item->setPixmap(p);
|
||||
|
||||
CREATE(icon, ":icon_time");
|
||||
CREATE(bg, ":round_base");
|
||||
CREATE(leftWing, ":left_wing");
|
||||
CREATE(rightWing, ":right_wing");
|
||||
#undef CREATE
|
||||
|
||||
icon->setPixmap(QPixmap(":icon_time"));
|
||||
bg->setPixmap(QPixmap(":round_base"));
|
||||
leftWing->setPixmap(QPixmap(":left_wing"));
|
||||
rightWing->setPixmap(QPixmap(":right_wing"));
|
||||
decreaseBtn->setPixmap(QPixmap(":arrow_down"));
|
||||
increaseBtn->setPixmap(QPixmap(":arrow_up"));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue