mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Linux embedded: misc improvements
- Allow static build - Use .svg icons - Linux Embedded lacks normal "open file dialog". So simply scan files in root folder of USB stick and return list. - Change QProcess::execute(command) calls to QProcess::execute(command, args) calls to silence Qt 5.15.0 depreciation warning.
This commit is contained in:
parent
f3bc47a309
commit
123542a66b
26 changed files with 216 additions and 39 deletions
10
main.cpp
10
main.cpp
|
@ -17,6 +17,7 @@
|
|||
#include <QQuickWindow>
|
||||
#include <QTranslator>
|
||||
#include <QLocale>
|
||||
#include <QScreen>
|
||||
#ifndef QT_NO_WIDGETS
|
||||
#include <QtWidgets/QApplication>
|
||||
#endif
|
||||
|
@ -37,6 +38,15 @@ int main(int argc, char *argv[])
|
|||
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
|
||||
#endif
|
||||
#ifdef QT_NO_WIDGETS
|
||||
{
|
||||
QGuiApplication tmp(argc, argv);
|
||||
int h = QGuiApplication::primaryScreen()->geometry().height();
|
||||
if (h > 720)
|
||||
{
|
||||
qputenv("QT_SCALE_FACTOR", QByteArray::number(h / 720.0, 'f', 2));
|
||||
}
|
||||
}
|
||||
|
||||
QGuiApplication app(argc, argv);
|
||||
#else
|
||||
QApplication app(argc, argv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue