diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp old mode 100644 new mode 100755 index eb664e7ca..d9371d34f --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -22,7 +22,8 @@ #include #include -#define DECORATION_SIZE 64 +#define DECORATION_SIZE 48 +#define ICON_OFFSET 16 #define NUM_ITEMS 3 class TxViewDelegate : public QAbstractItemDelegate @@ -41,11 +42,12 @@ public: QIcon icon = qvariant_cast(index.data(Qt::DecorationRole)); QRect mainRect = option.rect; + 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);