transmission/qt
Mike Gelfand be74cb6356
Qt 6 support (#2069)
* Bump minimum Qt version to 5.6

* Switch from QRegExp to QRegularExpression

While still available, QRegExp has been moved to Qt6::Core5Compat module
and is not part of Qt6::Core.

* Use qIsEffectiveTLD instead of QUrl::topLevelDomain

The latter is not part of Qt6::Core. The former is a private utility in
Qt6::Network; using it for now, until (and if) we switch to something
non-Qt-specific.

* Use QStyle::State_Horizontal state when drawing progress bars

Although available for a long time, this state either didn't apply to
progress bars before Qt 6, or was deduced based on bar size. With Qt 6,
failing to specify it results in bad rendering.

* Don't use QStringRef (and associated methods)

While still available, QStringRef has been moved to Qt6::Core5Compat
module and is not part of Qt6::Core. Related method (e.g.
QString::midRef) have been removed in Qt 6.

* Use Qt::ItemIsAutoTristate instead of Qt::ItemIsTristate

The latter was deprecated and replaced with the former in Qt 5.6.

* Don't use QApplication::globalStrut

This property has been deprecated in Qt 5.15 and removed in Qt 6.

* Use QImage::fromHICON instead of QtWin::fromHICON

WinExtras module (providind the latter helper) has been removed in Qt 6.

* Use QStringDecoder instead of QTextCodec

While still available, QTextCodec has been moved to Qt6::Core5Compat
module and is not part of Qt6::Core.

* Don't forward-declare QStringList

Instead of being a standalone class, its definition has changed to
QList<QString> template specialization in Qt 6.

* Use explicit (since Qt 6) QFileInfo constructor

* Use QDateTime's {to,from}SecsSinceEpoch instead of {to,from}Time_t

The latter was deprecated in Qt 5.8 and removed in Qt 6.

* Don't use QFuture<>'s operator==

It has been removed in Qt 6. Since the original issue this code was
solving was caused by future reuse, just don't reuse futures and create
new finished ones when necessary.

* Use std::vector<> instead of QVector<>

The latter has been changed to a typedef for QList<>, which might not be
what one wants, and which also changed behavior a bit leading to
compilation errors.

* Don't use + for flags, cast to int explicitly

Operator+ for enum values has been deleted in Qt 6, so using operator|
instead. Then, there's no conversion from QFlags<> to QVariant, so need
to cast to int.

* Support Qt 6 in CMake and for MSI packaging

* Remove extra (empty) CMake variable use when constructing Qt target names

* Simplify logic in tr_qt_add_translation CMake helper

Co-authored-by: Charles Kerr <charles@charleskerr.com>
2021-11-04 00:20:11 +03:00
..
icons lossless compression of images saved 72KB 2017-06-03 23:52:34 +01:00
translations Sync existing translations with Transifex 2020-11-03 20:26:30 +03:00
.clang-tidy build: silence new clang-tidy 13 warnings (#1982) 2021-10-17 19:48:33 -05:00
AboutDialog.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
AboutDialog.h feat: add remote server version to the about dialog (#1603) 2021-01-24 11:43:14 -06:00
AboutDialog.ui Switch to HTTPS links, adjust wiki links where possible 2018-01-16 01:12:59 +03:00
AddData.cc refactor: prefer "using" over "typedef" (#1883) 2021-10-06 09:26:07 -05:00
AddData.h Sonarcloud warnings 3 (#1498) 2020-11-01 19:13:32 -06:00
Application.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
Application.h fixup! Add a "Start Now" action to the notification window in the Qt client (#848) (#2026) 2021-10-24 18:52:50 -05:00
BaseDialog.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
CMakeLists.txt refactor: remove exit-time destructors from transmission-qt (#1395) 2020-08-15 10:42:51 -05:00
ColumnResizer.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
ColumnResizer.h Sonarcloud warnings 3 (#1498) 2020-11-01 19:13:32 -06:00
ComInteropHelper.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
ComInteropHelper.h sonarcloud warnings 9 (#1511) 2020-11-08 21:31:02 -06:00
CustomVariantType.h Sonarcloud warnings 3 (#1498) 2020-11-01 19:13:32 -06:00
DBusInteropHelper.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
DBusInteropHelper.h sonarcloud warnings 9 (#1511) 2020-11-08 21:31:02 -06:00
DetailsDialog.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
DetailsDialog.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
DetailsDialog.ui Set idle seed limit range to 1..40320 (4 weeks tops) in all clients 2017-07-05 21:07:16 +03:00
FaviconCache.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
FaviconCache.h refactor: use nullptr instead of NULL (#1884) 2021-10-06 11:32:17 -05:00
FileTreeDelegate.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
FileTreeDelegate.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
FileTreeItem.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
FileTreeItem.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
FileTreeModel.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
FileTreeModel.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
FileTreeView.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
FileTreeView.h refactor: fix more sonarcloud warnings (#1508) 2020-11-05 16:46:21 -06:00
FilterBar.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
FilterBar.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
FilterBarComboBox.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
FilterBarComboBox.h refactor: fix more sonarcloud warnings (#1508) 2020-11-05 16:46:21 -06:00
FilterBarComboBoxDelegate.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
FilterBarComboBoxDelegate.h refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
Filters.cc refactor: remove exit-time destructors from transmission-qt (#1395) 2020-08-15 10:42:51 -05:00
Filters.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
Formatter.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
Formatter.h sonarcloud warnings 9 (#1511) 2020-11-08 21:31:02 -06:00
FreeSpaceLabel.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
FreeSpaceLabel.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
IconCache.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
IconCache.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
IconToolButton.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
IconToolButton.h chore: sonarcloud warnings 2 (#1496) 2020-11-01 15:47:57 -06:00
InteropHelper.cc sonarcloud warnings 9 (#1511) 2020-11-08 21:31:02 -06:00
InteropHelper.h sonarcloud warnings 9 (#1511) 2020-11-08 21:31:02 -06:00
InteropObject.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
InteropObject.h sonarcloud warnings 9 (#1511) 2020-11-08 21:31:02 -06:00
LicenseDialog.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
LicenseDialog.h chore: sonarcloud warnings 2 (#1496) 2020-11-01 15:47:57 -06:00
LicenseDialog.ui Bump copyright to 2020 (some more places) (#1206) 2020-05-02 12:26:42 -05:00
Macros.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
MainWindow.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
MainWindow.h Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
MainWindow.ui Qt: Add tooltips for Options, Statistics buttons (#501) 2021-08-07 14:21:06 +03:00
MakeDialog.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
MakeDialog.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
MakeDialog.ui Add support for creating torrents with a source flag (#443) 2021-10-18 18:05:39 -05:00
MakeProgressDialog.ui Use PascalCase for Qt client filenames 2015-06-10 21:27:11 +00:00
OptionsDialog.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
OptionsDialog.h Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
OptionsDialog.ui Use PascalCase for Qt client filenames 2015-06-10 21:27:11 +00:00
PathButton.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
PathButton.h sonarcloud warnings 9 (#1511) 2020-11-08 21:31:02 -06:00
Prefs.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
Prefs.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
PrefsDialog.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
PrefsDialog.h sonarcloud warnings 9 (#1511) 2020-11-08 21:31:02 -06:00
PrefsDialog.ui Qt: Move icon after "Alternative Speed Limits" label (#503) 2021-08-07 17:57:59 +03:00
README.txt Merge branch '2.9x' 2018-01-25 03:07:52 +03:00
RelocateDialog.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
RelocateDialog.h sonarcloud warnings 9 (#1511) 2020-11-08 21:31:02 -06:00
RelocateDialog.ui Use PascalCase for Qt client filenames 2015-06-10 21:27:11 +00:00
RpcClient.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
RpcClient.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
RpcQueue.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
RpcQueue.h Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
Session.cc fix: details dialog "available" percent can be off (#2025) 2021-10-23 23:45:10 -05:00
Session.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
SessionDialog.cc fixup! refactor: use qt5's connect api (#1491) (#2024) 2021-10-23 22:28:16 -05:00
SessionDialog.h sonarcloud warnings 9 (#1511) 2020-11-08 21:31:02 -06:00
SessionDialog.ui Fix session dialog not showing up after first close 2015-09-01 20:39:34 +00:00
Speed.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
SqueezeLabel.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
SqueezeLabel.h chore: sonarcloud warnings 2 (#1496) 2020-11-01 15:47:57 -06:00
StatsDialog.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
StatsDialog.h refactor: use qt5's connect api (#1491) 2020-10-31 13:56:12 -05:00
StatsDialog.ui Create dialogs on demand, don't keep them ready all the time 2015-07-30 06:18:02 +00:00
StyleHelper.cc Update to Uncrustify 0.68.1 2019-02-15 09:21:48 +03:00
StyleHelper.h Adjust uncrustify config, reformat all but Mac client 2017-04-20 10:01:22 +03:00
Torrent.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
Torrent.h Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
TorrentDelegate.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
TorrentDelegate.h Sonarcloud warnings 3 (#1498) 2020-11-01 19:13:32 -06:00
TorrentDelegateMin.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
TorrentDelegateMin.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
TorrentFilter.cc feat: allow filtering torrents by info hash in qt client (#1763) 2021-08-27 12:58:47 -05:00
TorrentFilter.h Sonarcloud warnings 3 (#1498) 2020-11-01 19:13:32 -06:00
TorrentModel.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
TorrentModel.h Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
TorrentView.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
TorrentView.h chore: sonarcloud warnings 2 (#1496) 2020-11-01 15:47:57 -06:00
TrackerDelegate.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
TrackerDelegate.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
TrackerModel.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
TrackerModel.h Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
TrackerModelFilter.cc Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
TrackerModelFilter.h Sonarcloud warnings 3 (#1498) 2020-11-01 19:13:32 -06:00
Typedefs.h qt client speedups 2019-11-11 19:37:05 -06:00
Utils.cc Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
Utils.h Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
VariantHelpers.cc refactor: tr_variant*Str() functions now take a std::string_view (#1990) 2021-10-19 21:30:50 -05:00
VariantHelpers.h Qt 6 support (#2069) 2021-11-04 00:20:11 +03:00
WatchDir.cc refactor: prefer "using" over "typedef" (#1883) 2021-10-06 09:26:07 -05:00
WatchDir.h refactor: fix more sonarcloud warnings (#1508) 2020-11-05 16:46:21 -06:00
application.qrc (qt) #4917 'request for 256x256 icon for transmission-qt': patch by krab 2013-01-22 19:00:40 +00:00
my-valgrind.sh Refactor shell scripts with syntax and styling fixes 2019-01-16 03:22:29 +08:00
qtr.ico (trunk) more win32 fixes from rb07 in #3311 2010-06-22 00:12:52 +00:00
qtr.rc (trunk) more win32 fixes from rb07 in #3311 2010-06-22 00:12:52 +00:00
transmission-qt.1 fixup! (trunk) update credits (#1205) 2020-05-02 11:42:18 -05:00
transmission-qt.desktop Correct Qt client desktop file name and add keywords 2017-02-04 15:03:49 +01:00
transmission-qt.idl Add ActiveQt-based COM interop helper 2015-12-16 20:01:03 +00:00
transmission-qt.tlb.rc Add ActiveQt-based COM interop helper 2015-12-16 20:01:03 +00:00
transmission_en.qm (trunk qt, gtk) some string changes: minor Gnome HiGification. omit unnecessary words. use less jargon. 2009-06-23 00:24:37 +00:00

README.txt

VOLUNTEERS WANTED

   - Qt developers and translators are needed
   - If you find a bug, please report it at https://github.com/transmission/transmission

ABOUT TRANSMISSION-QT

   Transmission-qt is a GUI for Transmission loosely based on the GTK+ client.

   This is the only Transmission client that can act as its own self-contained
   session (as the GTK+ and Mac clients do), and can also connect to a remote
   session (as the web client and transmission-remote terminal client do).

   Use Case 1: If you like to run BitTorrent for awhile from your desktop,
   then the Mac, GTK+, and Qt clients are a good match.

   Use Case 2: If you like to leave BitTorrent running nonstop on your
   computer or router, and want to control it from your desktop or
   from a remote site, then transmission-remote and the web and Qt clients
   are a good match.

   To use the Qt client as a remote, in the menu go to Edit > Change Session

   The Qt client is also the most likely to wind up running on Windows,
   though that's not a high priority at the moment...

BUILDING ON WINDOWS

   rb07 has a writeup of this on the Transmission wiki:
   https://trac.transmissionbt.com/wiki/BuildingTransmissionQtWindows

BUILDING ON OS X

   nnc has a writeup of this on the Transmission wiki:
   https://trac.transmissionbt.com/wiki/BuildingTransmissionQtMac

BUILDING ON UNIX

   1. Prerequisites: Qt >= 4.8 and its development packages
   2. Build Transmission as normal
   3. In the qt/ directory, type "qmake qtr.pro" (or "qmake-qt4 qtr.pro", or "qmake-qt5 qtr.pro")
   4. In the qt/ directory, type "make"
   5. In the qt/ directory, as root, type "INSTALL_ROOT=/usr make install"
      (Feel free to replace /usr with /usr/local or /opt or whatever)