From bcb148eeab0ce316f2c7f14c382b1b803fe0a195 Mon Sep 17 00:00:00 2001 From: crowning- Date: Sun, 22 Mar 2015 21:29:29 +0100 Subject: [PATCH] Placement of transaction-amount adjusted (unconfirmed transactions didn't fit) --- src/qt/overviewpage.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index 0d67a8535..d9371d34f 100755 --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -23,6 +23,7 @@ #include #define DECORATION_SIZE 48 +#define ICON_OFFSET 16 #define NUM_ITEMS 3 class TxViewDelegate : public QAbstractItemDelegate @@ -41,12 +42,12 @@ public: QIcon icon = qvariant_cast(index.data(Qt::DecorationRole)); QRect mainRect = option.rect; - mainRect.moveLeft(16); + mainRect.moveLeft(ICON_OFFSET); QRect decorationRect(mainRect.topLeft(), QSize(DECORATION_SIZE, DECORATION_SIZE)); int xspace = DECORATION_SIZE + 8; int ypad = 6; int halfheight = (mainRect.height() - 2*ypad)/2; - QRect amountRect(mainRect.left() + xspace, mainRect.top()+ypad, mainRect.width() - xspace, halfheight); + QRect amountRect(mainRect.left() + xspace, mainRect.top()+ypad, mainRect.width() - xspace - ICON_OFFSET, halfheight); QRect addressRect(mainRect.left() + xspace, mainRect.top()+ypad+halfheight, mainRect.width() - xspace, halfheight); icon.paint(painter, decorationRect);