summaryrefslogtreecommitdiff
path: root/net-p2p/transmission/files/transmission-3.00-horizontal-progress-bars.patch
blob: 63d8ca2fe2747cefa7b3cf381c7bbb4cf94a878e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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();