summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2022-10-24 11:25:26 -0400
committerMike Gilbert <floppym@gentoo.org>2022-10-24 11:25:26 -0400
commitbd8ba891e5de806c0725eab7e22753bb0c6b262d (patch)
tree9c1c5775ea130e47bfeba4e875ae377bfe49904e /net-p2p
parentapp-admin/rsyslog: add hostname log patch (diff)
downloadgentoo-bd8ba891e5de806c0725eab7e22753bb0c6b262d.tar.gz
gentoo-bd8ba891e5de806c0725eab7e22753bb0c6b262d.tar.bz2
gentoo-bd8ba891e5de806c0725eab7e22753bb0c6b262d.zip
net-p2p/transmission: fix progress bars in Qt UI
Closes: https://bugs.gentoo.org/878099 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission/files/transmission-3.00-horizontal-progress-bars.patch36
-rw-r--r--net-p2p/transmission/transmission-3.00-r5.ebuild (renamed from net-p2p/transmission/transmission-3.00-r4.ebuild)1
2 files changed, 37 insertions, 0 deletions
diff --git a/net-p2p/transmission/files/transmission-3.00-horizontal-progress-bars.patch b/net-p2p/transmission/files/transmission-3.00-horizontal-progress-bars.patch
new file mode 100644
index 000000000000..63d8ca2fe274
--- /dev/null
+++ b/net-p2p/transmission/files/transmission-3.00-horizontal-progress-bars.patch
@@ -0,0 +1,36 @@
+https://bugs.gentoo.org/878099
+https://github.com/transmission/transmission/issues/3150
+
+--- a/qt/FileTreeDelegate.cc
++++ a/qt/FileTreeDelegate.cc
+@@ -49,7 +49,7 @@
+ if (column == FileTreeModel::COL_PROGRESS)
+ {
+ QStyleOptionProgressBar p;
+- p.state = option.state | QStyle::State_Small;
++ p.state = option.state | QStyle::State_Horizontal | QStyle::State_Small;
+ p.direction = qApp->layoutDirection();
+ p.rect = option.rect;
+ p.rect.setSize(QSize(option.rect.width() - 4, option.rect.height() - 8));
+--- a/qt/TorrentDelegate.cc
++++ a/qt/TorrentDelegate.cc
+@@ -545,7 +545,7 @@
+ progressBarState = QStyle::State_None;
+ }
+
+- progressBarState |= QStyle::State_Small;
++ progressBarState |= QStyle::State_Horizontal | QStyle::State_Small;
+
+ QIcon::Mode const emblemIm = isItemSelected ? QIcon::Selected : QIcon::Normal;
+ QIcon const emblemIcon = tor.hasError() ? getWarningEmblem() : QIcon();
+--- a/qt/TorrentDelegateMin.cc
++++ a/qt/TorrentDelegateMin.cc
+@@ -218,7 +218,7 @@
+ progressBarState = QStyle::State_None;
+ }
+
+- progressBarState |= QStyle::State_Small;
++ progressBarState |= QStyle::State_Horizontal | QStyle::State_Small;
+
+ QIcon::Mode const emblemIm = isItemSelected ? QIcon::Selected : QIcon::Normal;
+ QIcon const emblemIcon = tor.hasError() ? getWarningEmblem() : QIcon();
diff --git a/net-p2p/transmission/transmission-3.00-r4.ebuild b/net-p2p/transmission/transmission-3.00-r5.ebuild
index 2b31213bed1f..6a12e5a07a73 100644
--- a/net-p2p/transmission/transmission-3.00-r4.ebuild
+++ b/net-p2p/transmission/transmission-3.00-r5.ebuild
@@ -68,6 +68,7 @@ RDEPEND="${COMMON_DEPEND}
PATCHES=(
"${FILESDIR}"/cmake-unused-command-line.patch
"${FILESDIR}"/transmission-3.00-openssl-3.patch
+ "${FILESDIR}"/transmission-3.00-horizontal-progress-bars.patch
)
src_configure() {