mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
rbutil: Enable HiDPI support on recent Qt versions.
Change-Id: Iafafacbac93304e1dd955dab0d8cba78a9622f6e
This commit is contained in:
parent
2e96657c36
commit
2e6a0df40e
1 changed files with 4 additions and 0 deletions
|
|
@ -38,6 +38,10 @@ Q_IMPORT_PLUGIN(AccessibleFactory)
|
|||
|
||||
|
||||
int main( int argc, char ** argv ) {
|
||||
#if QT_VERSION >= 0x050600
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
#endif
|
||||
QApplication app( argc, argv );
|
||||
ConsoleAppender* consoleAppender = new ConsoleAppender();
|
||||
consoleAppender->setFormat("[%{file}:%{line} %{type}] %{message}\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue