summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/main.cpp
AgeCommit message (Collapse)Author
2020-12-14rbutil: Change style to Fusion on Windows.Dominik Riebeling
The default UI style has some issues with HiDPI support. Use the Qt built-in Fusion instead. This looks somewhat different to the native Windows UI, but works better on HiDPI displays. Change-Id: I25f1b038047a11da7492dfbfa1425874f070ab0b
2020-11-19rbutil: Modernize code to use C++11 nullptr.Dominik Riebeling
Change-Id: I112cf95122a896cdb30a823b4c1f49831273dc7e
2020-11-07rbutil: Enable HiDPI support on recent Qt versions.Dominik Riebeling
Change-Id: Iafafacbac93304e1dd955dab0d8cba78a9622f6e
2020-08-08rbutil: Update CuteLogger to most recent upstream.Dominik Riebeling
Update to the most recent git version. This changes the folder structure and renames some classes to follow upstream. Restore MSVC static link fix, and fix wrong variable in qmake project file. Change-Id: I874bb9ed60e37af09a841988e771fd341414d145
2020-08-08rbutil: Drop Qt4 support.Dominik Riebeling
The last version of Qt4 was released in 2011, time to officially move to Qt5. Change-Id: I57d2261bfa44ec824ef4a406f60ce1bd9bc52589
2020-07-26rbutil: Call QLocale::setDefault() with QLocale.Dominik Riebeling
QLocale::setDefault() shouldn't be called with a QString but a QLocale instead. Calling it with a string doesn't work with Qt6 anymore. Change-Id: I08826095cda8563e4ae9b83d08144da2d0d7f3c7
2019-11-09rbutil: fix windows cross compile (via M cross environment)Franklin Wei
This fixes a couple of issues when cross-compiling for windows: - lib builds (i.e. mks5lboot) were overriding the cross CC/CXX with the native CC, producing incompatible binaries. - Qt made the accessibility plugin part of the core library, so we no longer need to import it. Change-Id: I9d884aee62dfa51d3624a3fa9b99c23b3b375f20
2015-12-18Fix static compilation with Qt5.Cástor Muñoz
Qt5 uses a different name for the accessibility plugin. Cherry-picked from G#1221. Change-Id: If32eafa053a176ba24b4595826593023ed808164 Signed-off-by: Dominik Riebeling <Dominik.Riebeling@gmail.com>
2013-11-04Use cutelogger for Rockbox Utility internal trace.Dominik Riebeling
Change tracing from qDebug() to use cutelogger, which is available under the LGPL2.1. This allows to automatically add filename and line number to the log, and also provides multiple log levels. Change-Id: I5dbdaf902ba54ea99f07ae10a07467c52fdac910
2013-02-08Create Qt5 compatible version of trace event handler.Dominik Riebeling
Qt5 deprecates the way this was done before. Change-Id: Ic66bce2d1ffcb572a9ed9345abbbbc6bb6475af0
2013-01-27Update Qt includes for compatibility with Qt5.Dominik Riebeling
Change-Id: Ibe400700f6bce0335a2975c6d635e10ae940f932
2011-10-19Remove svn keyword lines from sources.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30806 a1c6a512-1295-4272-9138-f99709370657
2011-10-02Rockbox Utility: listen to translation change events.Dominik Riebeling
When changing the language don't require a restart anymore. Instead listen to the appropriate changeEvent and retranslate the UI. Designer generated UI files already provide such a function. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30633 a1c6a512-1295-4272-9138-f99709370657
2010-06-15Remove ugly RTL writing direction hack.Dominik Riebeling
Instead of hard coding the languages to be rendered as RTL make it dependent on a translation string. Translate the string LTR to RTL to switch to RTL layout. This is equivalent to the handling done in the i18n example for Qt Jambi and while not the best solution at least cleaner than hardcoded languages. Update hebrew translation for this which is currently the only RTL translation. lupdate all other translations. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26865 a1c6a512-1295-4272-9138-f99709370657
2010-04-07Fix layout special case for hebrew failing for system language (FS#11180).Dominik Riebeling
For hebrew, a special case handles switching to RTL. Make this work if the language selection is done by the system environment, i.e. no language has been selected by the user previously. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25518 a1c6a512-1295-4272-9138-f99709370657
2009-10-19rbutil: Change layout to RTL if Hebrew language is usedTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23264 a1c6a512-1295-4272-9138-f99709370657
2009-08-15rbutil: add a errorlog function into rbutil and the possibility to save a ↵Dominik Wenger
log if a error happens. (thanks to bluebrother for the trace functionality) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22329 a1c6a512-1295-4272-9138-f99709370657
2008-10-13rbutil: include the qt accessible plugin into the mac bundle. (Enables ↵Dominik Wenger
screenreader support on macs) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18800 a1c6a512-1295-4272-9138-f99709370657
2008-08-13Fix translator for Qt strings overwriting the application translator (FS#9268).Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18275 a1c6a512-1295-4272-9138-f99709370657
2008-07-31Install a second translator for using the internal translation of Qt's ↵Dominik Riebeling
widgets. Embedding them into the resources is still missing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18165 a1c6a512-1295-4272-9138-f99709370657
2008-07-25Make rbutil check the system language and try to use the correct ↵Dominik Riebeling
translation. A language selection in the configuration file will override this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18118 a1c6a512-1295-4272-9138-f99709370657
2008-02-10Untie rbutil core logic from QtGui for cli:Dominik Riebeling
- include QtCore instead of QtGui if possible - replace qApp with QCoreApplication::instance(), as qApp is only defined for QtGui - use QCoreApplication instead of QApplication for inherited static members. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16274 a1c6a512-1295-4272-9138-f99709370657
2007-10-07Use i10n for numbers using QLocale.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15027 a1c6a512-1295-4272-9138-f99709370657
2007-09-03- rework language selection a bit: use language string as key instead of ↵Dominik Riebeling
language file basename. Display the language string in the selection list too. This makes it possible to distinguish between two variants of the same language without adjusting the language name. - move user settings from "defaults" section to "general". Makes the code cleaner and has been that way for historical reasons only anyway. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14592 a1c6a512-1295-4272-9138-f99709370657
2007-08-22add project file for including accessibility plugin when building static ↵Dominik Riebeling
binary. As there is no way to distinguish between static and dynamic builds you need to select the project file manually. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14432 a1c6a512-1295-4272-9138-f99709370657
2007-08-09small simplification.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14260 a1c6a512-1295-4272-9138-f99709370657
2007-07-29support for translating rbutil. Translation files (*.qm) can be in the ↵Dominik Riebeling
binary folder or in the resource :/lang. Incomplete german translation available for testing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14061 a1c6a512-1295-4272-9138-f99709370657
2007-07-25First stab at porting rbutil to Qt4. Currently only installing a current or ↵Dominik Riebeling
archived build is working. To build, run qmake && make in the source folder. Beware that the syntax of rbutil.ini has slightly changed. Caching of the downloaded files is also still missing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13989 a1c6a512-1295-4272-9138-f99709370657