From f0d04795e23606399414d074d78efe5aa0da7259 Mon Sep 17 00:00:00 2001
From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
Date: Sat, 2 Jan 2021 21:00:46 +0200
Subject: [PATCH] qt: Fix TxViewDelegate layout
This change (1) prevents overlapping date and amount strings,
and (2) guaranties that "eye" sign at the end of the watch-only
address/label is always visible.
---
src/qt/forms/overviewpage.ui | 3 +++
src/qt/overviewpage.cpp | 36 ++++++++++++++++++++++++++++++------
2 files changed, 33 insertions(+), 6 deletions(-)
diff --git a/src/qt/forms/overviewpage.ui b/src/qt/forms/overviewpage.ui
index 88172b0675..ee9d4a113c 100644
--- a/src/qt/forms/overviewpage.ui
+++ b/src/qt/forms/overviewpage.ui
@@ -517,6 +517,9 @@
Qt::ScrollBarAlwaysOff
+
+ QAbstractScrollArea::AdjustToContents
+
QAbstractItemView::NoSelection
diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp
index 3b3e5a2aeb..9f2e866272 100644
--- a/src/qt/overviewpage.cpp
+++ b/src/qt/overviewpage.cpp
@@ -22,6 +22,9 @@
#include
#include
+#include
+#include