From b31becd2d9710011f2a759dcfd72dcb30a8a09df Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 12 May 2014 20:51:39 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index b45b4e07b..aabd33125 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -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")); -- cgit v1.2.3-70-g09d2