Commit Graph

107 Commits

Author SHA1 Message Date
Mike Gelfand 07912d230b Use PascalCase for Qt client filenames
Split FileTree.{h,cc} and FilterBar.{h,cc} files so that each class
is in its own file.

This breaks translations (some classes got renamed => context changed),
to be fixed by next commit (along with Tx sync).
2015-06-10 21:27:11 +00:00
Mike Gelfand 2321bc3fad Fix some issues revealed by coverity 2015-05-09 08:37:55 +00:00
Mike Gelfand 06d73853b9 Even better (and unified) torrent origin logic for GTK+, Qt and web clients 2015-04-22 21:04:49 +00:00
Mike Gelfand 9f8402697b Use C++11 range-based `for` loops (Qt client) 2015-04-18 14:41:06 +00:00
Mike Gelfand 9e66e5c443 Pass constant Prefs, TorrentFilter, TorrentModel objects where no modification is needed 2015-01-29 22:44:43 +00:00
Mike Gelfand d96ef13a89 Define QT_NO_CAST_FROM_ASCII (Qt client)
Use latin1 encoding most of the time where default encoding was used
before. Qt 4 assumes latin1 by default while Qt 5 uses utf-8 which is
not what we want.

Use utf-8 encoding in some places where default encoding was used before.
This includes strings coming from RPC.

Fix an issue with SortMode::names[] (filters.cc) where missing comma
between "sort-by-queue" and "sort-by-ratio" resulted in two array entries
being merged into solid "sort-by-queuesort-by-ratio" string and all the
following items being shifted compared to their enum counterparts.
2015-01-29 21:53:05 +00:00
Mike Gelfand beeb4521c0 Rework forms layout to workaround some stylesheet issues (Qt client) 2015-01-21 21:14:00 +00:00
Mike Gelfand 9866082907 Poke translations a bit (Qt client)
Add a bit more comments. Adjust some phrases for pluralization.
Mark menu shortcuts as not translatable (changing them doesn't do any
good but people start translating "Ctrl" as "Ktrl" etc. which breaks
the shortcuts).
Pull current translations from Transifex.
2015-01-18 02:09:44 +00:00
Mike Gelfand 6ff1875385 Add more information for translators (Qt client) 2015-01-12 06:18:52 +00:00
Mike Gelfand f73bfebd7b Move numeric units to the right of values (per KDE HIG)
Follow up commit to change the last phrase standing.
2015-01-11 21:10:46 +00:00
Mike Gelfand 17d6666b4c A bit of harmless refactoring
Prefer C++-style over C-style type casting.
Use qApp instead of QApplication/QCoreApplication::instance().
Use explicit QString::fromLatin1()/fromUtf8() where applicable.
2014-12-27 14:07:14 +00:00
Mike Gelfand 4f239d57e1 Move numeric units to the right of values (per KDE HIG)
Sync translations with the code. Adjust translations for changed phrases
(hopefully correct for the most of them).

One phrase still left untouched (Preferences -> Downloading), need to
think on better wording.
2014-12-22 03:06:09 +00:00
Mike Gelfand 629281a1e2 Fix license wording in Qt client .cc files to match the rest of the code. 2014-12-21 23:49:39 +00:00
Mike Gelfand 70c6087e94 Rework torrent details dialog in Qt client to load from .ui
Make squeeze labels (used for values on Information tab) display tooltip
on hover if their text doesn't fit. Make selective labels (same as in
GTK+ client) text selectable with keyboard in addition to mouse.
Prevent dialog width growth occured before to fit long error texts.
2014-12-14 18:12:21 +00:00
Mike Gelfand 6c02008280 Do not use printf-style formatting in C++ code 2014-12-14 15:34:31 +00:00
Mike Gelfand 365b28bc81 Strip needless const& specifiers on SIGNAL and SLOT arguments (Qt client) 2014-12-13 09:04:10 +00:00
Mike Gelfand 2adbb42763 Fix various cppcheck comments for Qt client code 2014-12-12 23:52:17 +00:00
Mike Gelfand 67dc1c8485 Strip spaces around :: in C++ code (Qt client) 2014-12-12 23:05:10 +00:00
Jordan Lee 5f2daaafb3 (trunk, gtk/qt/web) #5581: 'Inconsistent ordering of Upload and Download speed limits' -- fixed. 2014-01-20 23:56:06 +00:00
Jordan Lee 4b9626bb83 Licensing changes:
1. add the option the code to be used under GPLv2 or GPLv3; previously only GPLv2 was allowed

2. add the "proxy option" as described in GPLv3 so we can add future licenses without having to bulk-edit everything again :)

3. remove the awkward "exception for MIT code in Mac client" clause; it was unnecessary and confusing.
2014-01-19 01:09:44 +00:00
Jordan Lee 4904b923fb (trunk) restore copyright year as suggested in email by rms 2014-01-18 20:56:57 +00:00
Jordan Lee 2855e83e45 (trunk, qt) #4813: allow launching files in Qt interface 2013-09-08 19:03:25 +00:00
Jordan Lee 3cf26eb273 revert quint64/quint32/qint64/qint32 use to inttypes to match libtransmission's API 2013-08-29 00:37:37 +00:00
Jordan Lee f3d35b0da3 instead of inttypes, use Qt integral types -- eg, s/uint64_t/quint64/ 2013-08-24 19:42:51 +00:00
Jordan Lee 28fe36f1f8 #include limits.h where we use it, and don't where we don't 2013-08-24 17:53:45 +00:00
Jordan Lee 1c79173459 support qt5 in transmission-qt 2013-07-27 21:58:14 +00:00
Jordan Lee 7f8415d59e (qt) copyediting: whitespace/indentation 2013-02-03 19:13:04 +00:00
Jordan Lee 95541c4ebe (qt) #5270 'Details > Comment field loses selection': fixed 2013-02-03 18:36:10 +00:00
Jordan Lee ea6228d81b (qt) #5252: disable file editing in the options dialog. remove keyboard shortcuts that conflicted with renaming files in file-tree.c. fix refresh issue in the file-tree when renaming files. 2013-01-28 07:01:58 +00:00
Jordan Lee 6123bb5359 (qt) copyediting: modify more files to the new indentation/whitespace formatting 2013-01-26 01:19:54 +00:00
Jordan Lee f75027d5e9 make all the log functions/structs/enums use a single 'tr_log' namespace, such as tr_logGetQueue, tr_logAddInfo, tr_logIsLevelActive 2013-01-25 23:34:20 +00:00
Jordan Lee dd955b121e (trunk) #1220 'change top folder names' -- add file-renaming to the Qt client 2013-01-20 01:31:58 +00:00
Jordan Lee a3c184c521 (qt) #5213 "Incomplete update of details.cc" from rb07 2013-01-06 15:30:41 +00:00
Jordan Lee c1559f3cc4 (trunk, libT) first drop of the tr_quark patch. 2012-12-22 20:35:19 +00:00
Jordan Lee e96ed247fe refactor libtransmission's tr_benc class as tr_variant. 2012-12-14 04:34:42 +00:00
Jordan Lee f569bae99c (trunk qt) fix minor bugs in the torrent details dialog's info tab. 2011-11-05 15:45:38 +00:00
Jordan Lee 98232d246b (trunk qt) fix text alignment issue in the inspector's peers tab's speed and percentage columns 2011-08-20 05:45:11 +00:00
Jordan Lee d4525b5f95 (trunk qt) #4064 "add uTP codetip to torrnet peers details in" -- done. 2011-02-26 14:02:27 +00:00
Jordan Lee 8d06a961b2 (trunk qt) #3899 "typo in qt/details.cc" -- fixed. patch by cantabile 2011-01-13 19:12:18 +00:00
Charles Kerr edd14bd8d6 (trunk qt) #2050 "properties dialog changes seem to undo themselves" -- fixed. 2010-12-08 16:23:21 +00:00
Charles Kerr ec0a4dd269 (trunk qt) #3814 "Crash when opening properties dialog on a torrent before all its stats have been fetched" -- fixed. 2010-12-08 15:45:43 +00:00
Charles Kerr 3f9b6a3aaa (trunk qt) #3772 "users' changes in the Preferences and Properties dialog get applied before they're done editing" -- fixed. 2010-12-04 00:19:52 +00:00
Charles Kerr 2087241a62 (trunk qt) #3706 "improve torrent details" -- committed patch from Longinus00 2010-11-27 22:42:47 +00:00
Charles Kerr ffe54a20ed (trunk) #3698 "creation date of magnet links are set before the epoch." -- fixed. 2010-11-08 19:16:03 +00:00
Daniel Lee fe31e1a515 (trunk) #3574:Potential crash in tracker view when changing options 2010-09-22 02:22:03 +00:00
Charles Kerr 71d0b05524 (trunk qt,gtk) #3549 "torrent properties window doesn't fix netbook screen" -- merge the "Uploaded" and "Ratio" rows to save a little vertical space 2010-09-19 17:33:25 +00:00
Daniel Lee 603937184b (qt) Don't lose selection when changing to and from compact mode. 2010-09-18 15:51:38 +00:00
Charles Kerr bf0e84f266 (trunk) #3549 "torrent properties window does not fit netbook screen" -- fixed 2010-09-17 05:43:06 +00:00
Daniel Lee ac53f4792f switch trackerRemove and trackerReplace rpc calls to use tracker id instead of announce urls as identifiers 2010-09-14 06:23:48 +00:00
Daniel Lee 0046f49fb5 fix last activity display in qt client 2010-09-14 04:08:24 +00:00