Commit Graph

597 Commits

Author SHA1 Message Date
Mike Gelfand 0620e94e27 #5774: Fix alternative speed limits scheduled times (once more) 2015-02-06 20:08:36 +00:00
Mike Gelfand 7c53ebb9d7 Per-pixel vertical scroll in all the views (Qt client) 2015-01-31 17:40:44 +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 49e16e64a6 Fix build on Windows (blindly) 2015-01-29 22:10:00 +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 ae72695d0c Revert unintended changes (debug output) 2015-01-28 23:08:41 +00:00
Mike Gelfand e707e8d4c5 Treat command-line arguments as UTF-8-encoded; hide char* Prefs setter, require explicit conversion 2015-01-28 22:57:46 +00:00
Mike Gelfand 6b79473d9f Use TrPathButton in preferences dialog 2015-01-25 19:55:05 +00:00
Mike Gelfand cade70172e Fix tab order in preferences dialog (Qt client) 2015-01-25 18:16:30 +00:00
Mike Gelfand a18d818882 Rework preferences dialog in Qt client to load from .ui 2015-01-25 15:47:03 +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 9b8c6bc0f0 Improve tracker list look (torrent properties dialog), support RTL layout 2015-01-20 23:28:38 +00:00
Mike Gelfand 34c42d4ad8 Small follow-up translation fixes (HTML formatting mess in tracker delegate mostly) 2015-01-18 13:19:30 +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 efc04fdd77 Improve overall look of torrents in main window
Refactor and use the same code to calculate element positions in
sizeHint () and paint () to prevent discrepancies.
While we are at it, properly support RTL layout.
2015-01-17 16:59:42 +00:00
Mike Gelfand 3c73d74cbb Fallback to message box warning icon if emblem-important is not provided by the icon theme 2015-01-17 13:49:02 +00:00
Mike Gelfand 9eea4ada83 Improve the look of torrents with errors a bit (Qt client)
Display emblem over mime icon if torrent has error(s) to indicate the
issue.
Use normal text color instead of red when drawing selected item: there
is no easy way to be sure that red color looks nice on selection
background, and most of the time it doesn't. Using red color for non-
selected items is questionable too, but let's leave it at that for now.
2015-01-17 01:23:51 +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 06fa457bd9 Improve filter bar look (Qt client)
Use normal but semi-transparent color instead of 'disabled' color for
counts drawing.
Do not leave empty space for icon when selected item doesn't have one.
Use null pixmaps/icons instead of non-null blank ones.
Implement our own sizeHint and minimumSizeHint to make sure both combos
have the same height.
Make activity combo width fixed, tracker combo width to fit its content
and line edit to occupy the rest.
Add 'Search...' placeholder to line edit.
2015-01-11 15:01:13 +00:00
Mike Gelfand 068bccd46b Make program name/version in about dialog larger again 2015-01-04 12:47:07 +00:00
Mike Gelfand b96cd0369e Change sharing consent dialog into a QMessageBox 2015-01-04 12:29:10 +00:00
Mike Gelfand c43a10ab9d Mark GTK and Qt clients as GUI programs on Windows (detach from console) 2015-01-04 10:57:09 +00:00
Mike Gelfand 81c3eebbab Use Faenza (1.3.1) as fallback on systems which do not support icon themes 2015-01-04 02:14:58 +00:00
Mike Gelfand 91973ab94d Use (hopefully) better suited theme icons for some actions (Qt client) 2015-01-04 00:18:31 +00:00
Mike Gelfand 440f482d01 Replace tabs with spaces; remove trailing spaces 2015-01-02 11:15:31 +00:00
Mike Gelfand 8abdabc984 #5700: Add -std=gnu++11 to QMAKE_CXXFLAGS for Qt 4 and g++/clang++ 2015-01-01 23:54:35 +00:00
Mike Gelfand b928ae1ba8 Use libb64 instead of OpenSSL to encode/decode BASE64
Some crypto libraries (like CyaSSL, MatrixSSL and CommonCrypto) either
don't have or expose this functionality at all, expose only part of it,
or (like OpenSSL) have heavyweight API for it. Also, for the task as
easy as BASE64 encoding and decoding it's much better to use small and
simple specialized library.
2015-01-01 21:16:36 +00:00
Mike Gelfand 424c79a5da Make use of path button in relocate dialog (Qt client) 2015-01-01 05:02:13 +00:00
Mike Gelfand 511d89ca5e Use QMimeDatabase to get icon names when compiling against Qt 5+ 2015-01-01 02:28:18 +00:00
Mike Gelfand 954a91ca39 Reduce initial torrent creation dialog size to minimum
Truncate text in path button to prevent width increase for long paths.
2014-12-31 23:54:52 +00:00
Mike Gelfand efddf08d67 Rework torrent creation dialog in Qt client to load from .ui 2014-12-31 22:27:46 +00:00
Mike Gelfand e0d5f8b861 Add new TrPathButton class (Qt client)
Make use of new button class in torrent options dialog.
Rework Utils::removeTrailingDirSeparator to return correct value for "/".
2014-12-31 21:00:34 +00:00
Mike Gelfand c64ca900c2 Rework torrent options dialog in Qt client to load from .ui 2014-12-29 04:03:56 +00:00
Mike Gelfand 826a007904 Use QToolButton instead of QPushButton for path button, specify button icon size explicitly 2014-12-28 04:04:58 +00:00
Mike Gelfand 0bde425731 Add missing QToolButton forward declaration (Qt client) 2014-12-28 00:20:43 +00:00
Mike Gelfand 7789c28f44 #5808: Don't embed path to DHT_LIBS in qtr.pro (patch by jbeich) 2014-12-28 00:02:50 +00:00
Mike Gelfand 8c550a2734 Add missing <QDebug> include (Qt 4 build break) 2014-12-27 20:08:10 +00:00
Mike Gelfand 342f38bbc5 Factor RPC logic out from session (Qt client) 2014-12-27 20:03:10 +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 2ca4596fac Refactor FreespaceLabel to make it possible for it to be created in Qt Designer 2014-12-26 18:41:47 +00:00
Mike Gelfand 2d02481f2d Fix the rest of :: formatting in C++ code 2014-12-26 14:22:35 +00:00
Mike Gelfand e9394e2f9b Fix directory name display in relocate dialog 2014-12-26 14:21:47 +00:00
Mike Gelfand 8a4f8b9e15 Rework relocate dialog in Qt client to load from .ui 2014-12-26 10:35:00 +00:00
Mike Gelfand 92168df0e1 Fix up some about dialog leftovers, sync Qt client translations 2014-12-25 21:51:59 +00:00
Mike Gelfand 4138c7519b Rework about dialog in Qt client to load from .ui 2014-12-25 19:39:45 +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 1eec889832 #4050: Use TRANSLATIONS_DIR macro as a hint for Qt client translation files location 2014-12-22 01:08:19 +00:00
Mike Gelfand f83872849a #5543: Add a warning panel with id of duplicate torrent (patch by rb07 + personal touch) 2014-12-22 00:02:27 +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