This commit is contained in:
pls.153 2023-08-14 13:52:55 +02:00
parent 6db1068e87
commit 936d563128
2 changed files with 7 additions and 10 deletions

View file

@ -71,7 +71,7 @@ int main(int argc, char* argv[]) {
#ifdef INI_WEBVIEW
QtWebView::initialize();
#endif
EventFilterApp app(argc, argv);
GuiApplication app(argc, argv);
app.setApplicationName(QFileInfo(app.applicationFilePath()).baseName());
QStringList arguments(QCoreApplication::arguments());
@ -149,13 +149,10 @@ int main(int argc, char* argv[]) {
if (arguments.contains("-norc")) {
arguments.removeAll("-norc");
} else {
#if (defined Q_OS_ANDROID) || (defined Q_OS_IOS)
// nothing
#else
#ifndef DESKTOP_APP
LQML::eval("(x:when-it (probe-file \"~/.eclrc\")"
" (load x:it))");
#endif
#if (!defined Q_OS_ANDROID) && (!defined Q_OS_IOS) && (!defined DESKTOP_APP)
qDebug() << "LOADING ECLRC";
LQML::eval("(x:when-it (probe-file \"~/.eclrc\")"
" (load x:it))");
#endif
}

View file

@ -26,10 +26,10 @@ public:
Q_INVOKABLE void clearCache() { clearComponentCache(); }
};
class EventFilterApp : public QGuiApplication {
class GuiApplication : public QGuiApplication {
Q_OBJECT
public:
EventFilterApp(int& argc, char* argv[]) : QGuiApplication(argc, argv) {
GuiApplication(int& argc, char* argv[]) : QGuiApplication(argc, argv) {
#if (defined Q_OS_IOS) && (defined DISABLE_SMART_QUOTES)
installEventFilter(this);
#endif