transmission: qt4 build patches from OpenBSD.
This commit is contained in:
parent
96815f2454
commit
38dcd73aad
2 changed files with 41 additions and 0 deletions
27
srcpkgs/transmission/patches/patch-qt_favicon_cc
Normal file
27
srcpkgs/transmission/patches/patch-qt_favicon_cc
Normal file
|
@ -0,0 +1,27 @@
|
|||
--- qt/favicon.cc.orig Fri Aug 9 04:45:47 2013
|
||||
+++ qt/favicon.cc Thu Aug 22 16:39:50 2013
|
||||
@@ -14,7 +14,12 @@
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkReply>
|
||||
#include <QNetworkRequest>
|
||||
+
|
||||
+#if QT_VERSION >= 0x050000
|
||||
#include <QStandardPaths>
|
||||
+#else
|
||||
+#include <QDesktopServices>
|
||||
+#endif
|
||||
|
||||
#include "favicon.h"
|
||||
|
||||
@@ -40,7 +45,11 @@ Favicons :: ~Favicons( )
|
||||
QString
|
||||
Favicons :: getCacheDir( )
|
||||
{
|
||||
+#if QT_VERSION >= 0x050000
|
||||
const QString base = QStandardPaths::writableLocation (QStandardPaths::CacheLocation);
|
||||
+#else
|
||||
+ const QString base = QDesktopServices::storageLocation( QDesktopServices::CacheLocation );
|
||||
+#endif
|
||||
return QDir( base ).absoluteFilePath( "favicons" );
|
||||
}
|
||||
|
14
srcpkgs/transmission/patches/patch-qt_file-tree_cc
Normal file
14
srcpkgs/transmission/patches/patch-qt_file-tree_cc
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- qt/file-tree.cc.orig Fri Aug 9 04:45:54 2013
|
||||
+++ qt/file-tree.cc Thu Aug 22 16:40:53 2013
|
||||
@@ -885,7 +885,11 @@ FileTreeView :: FileTreeView (QWidget * parent, bool i
|
||||
for (int i=0; i<NUM_COLUMNS; ++i)
|
||||
{
|
||||
setColumnHidden (i, (i<FIRST_VISIBLE_COLUMN) || (LAST_VISIBLE_COLUMN<i));
|
||||
+#if QT_VERSION >= 0x050000
|
||||
header()->setSectionResizeMode(i, QHeaderView::Interactive);
|
||||
+#else
|
||||
+ header()->setResizeMode(i, QHeaderView::Interactive);
|
||||
+#endif
|
||||
}
|
||||
|
||||
connect (this, SIGNAL(clicked(const QModelIndex&)),
|
Loading…
Reference in a new issue