summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/main.cpp
AgeCommit message (Collapse)AuthorFilesLines
2020-11-19rbutil: Modernize code to use C++11 nullptr.Dominik Riebeling1-2/+2
Change-Id: I112cf95122a896cdb30a823b4c1f49831273dc7e
2020-11-07rbutil: Enable HiDPI support on recent Qt versions.Dominik Riebeling1-0/+4
Change-Id: Iafafacbac93304e1dd955dab0d8cba78a9622f6e
2020-08-08rbutil: Update CuteLogger to most recent upstream.Dominik Riebeling1-4/+4
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 Riebeling1-5/+3
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 Riebeling1-1/+1
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 Wei1-1/+5
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ñoz1-0/+4
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 Riebeling1-6/+14
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 Riebeling1-0/+4
Qt5 deprecates the way this was done before. Change-Id: Ic66bce2d1ffcb572a9ed9345abbbbc6bb6475af0
2013-01-27Update Qt includes for compatibility with Qt5.Dominik Riebeling1-1/+2
Change-Id: Ibe400700f6bce0335a2975c6d635e10ae940f932
2011-10-19Remove svn keyword lines from sources.Dominik Riebeling1-1/+0
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 Riebeling1-0/+6
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 Riebeling1-1/+4
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 Riebeling1-1/+1
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 Shalev1-0/+2
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 Wenger1-0/+4
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 Wenger1-1/+6
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 Riebeling1-1/+1
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 Riebeling1-0/+6
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 Riebeling1-3/+7
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 Riebeling1-1/+1
- 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 Riebeling1-0/+1
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 Riebeling1-4/+3
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 Riebeling1-0/+4
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 Riebeling1-3/+3
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 Riebeling1-2/+16
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 Riebeling1-0/+38
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