diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-05-12 20:51:39 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-20 14:27:31 +0900 |
commit | b31becd2d9710011f2a759dcfd72dcb30a8a09df (patch) | |
tree | 58ed371037d4c6c223b2ba8c25db8a77e1114a10 | |
parent | 1e25a7c2343a5909c7e32a70e31ade2deccc5041 (diff) | |
download | subsurface-b31becd2d9710011f2a759dcfd72dcb30a8a09df.tar.gz |
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>
-rw-r--r-- | qt-ui/diveplanner.cpp | 15 |
1 files 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")); |