Line 195... |
Line 195... |
195 |
// QApplication::setAttribute(Qt::AA_Use96Dpi);
|
195 |
// QApplication::setAttribute(Qt::AA_Use96Dpi);
|
196 |
// QApplication::setAttribute(Qt::AA_DontUseNativeDialogs);
|
196 |
// QApplication::setAttribute(Qt::AA_DontUseNativeDialogs);
|
197 |
#endif
|
197 |
#endif
|
198 |
|
198 |
|
199 |
QApplication app(argc, argv);
|
199 |
QApplication app(argc, argv);
|
- |
|
200 |
app.setApplicationName(QString::fromStdString(TConfig::getProgName()));
|
- |
|
201 |
app.setApplicationDisplayName("TPanel");
|
- |
|
202 |
app.setApplicationVersion(VERSION_STRING());
|
200 |
// Set the orientation
|
203 |
// Set the orientation
|
201 |
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
204 |
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
202 |
QScreen *screen = QGuiApplication::primaryScreen();
|
205 |
QScreen *screen = QGuiApplication::primaryScreen();
|
203 |
|
206 |
|
204 |
if (!screen)
|
207 |
if (!screen)
|
Line 1942... |
Line 1945... |
1942 |
#ifdef Q_OS_IOS
|
1945 |
#ifdef Q_OS_IOS
|
1943 |
// On IOS the explicit about dialog is shown over the whole screen with
|
1946 |
// On IOS the explicit about dialog is shown over the whole screen with
|
1944 |
// the text in a small stripe on the left. This looks ugly and therefor
|
1947 |
// the text in a small stripe on the left. This looks ugly and therefor
|
1945 |
// we construct our own about dialog.
|
1948 |
// we construct our own about dialog.
|
1946 |
std::string msg = "About TPanel\n\n";
|
1949 |
std::string msg = "About TPanel\n\n";
|
1947 |
msg.append("Simulation of an AMX G4 panel\n");
|
1950 |
msg.append("Implementation of an AMX G4/G5 panel\n");
|
1948 |
msg.append("Version v").append(VERSION_STRING()).append("\n");
|
1951 |
msg.append("Version v").append(VERSION_STRING()).append("\n");
|
1949 |
msg.append("(C) Copyright 2020 to 2023 by Andreas Theofilu (andreas@theosys.at)\n");
|
1952 |
msg.append("(C) Copyright 2020 to 2025 by Andreas Theofilu (andreas@theosys.at)\n");
|
1950 |
|
1953 |
|
1951 |
QMessageBox about(this);
|
1954 |
QMessageBox about(this);
|
1952 |
about.addButton(QMessageBox::Ok);
|
1955 |
about.addButton(QMessageBox::Ok);
|
1953 |
about.setWindowTitle(tr("About TPanel"));
|
1956 |
about.setWindowTitle(tr("About TPanel"));
|
1954 |
about.setIconPixmap(QPixmap(":images/icon.png"));
|
1957 |
about.setIconPixmap(QPixmap(":images/icon.png"));
|
1955 |
about.setTextFormat(Qt::PlainText);
|
1958 |
about.setTextFormat(Qt::PlainText);
|
1956 |
about.setText(tr(msg.c_str()));
|
1959 |
about.setText(tr(msg.c_str()));
|
1957 |
about.setInformativeText(tr("This program is under the terms of GPL version 3!"));
|
1960 |
about.setInformativeText(tr("This program is under the terms of GPL version 3!"));
|
1958 |
about.exec();
|
1961 |
about.exec();
|
1959 |
#else
|
1962 |
#else
|
1960 |
std::string msg = "Simulation of an AMX G4 panel\n";
|
1963 |
std::string msg = "Implementation of an AMX G4/G5 panel\n";
|
1961 |
msg.append("Version v").append(VERSION_STRING()).append("\n");
|
1964 |
msg.append("Version v").append(VERSION_STRING()).append("\n");
|
1962 |
msg.append("(C) Copyright 2020 to 2023 by Andreas Theofilu <andreas@theosys.at>\n");
|
1965 |
msg.append("(C) Copyright 2020 to 2025 by Andreas Theofilu <andreas@theosys.at>\n");
|
1963 |
msg.append("This program is under the terms of GPL version 3!");
|
1966 |
msg.append("This program is under the terms of GPL version 3!");
|
1964 |
QMessageBox::about(this, tr("About TPanel"), tr(msg.c_str()));
|
1967 |
QMessageBox::about(this, tr("About TPanel"), tr(msg.c_str()));
|
1965 |
#endif
|
1968 |
#endif
|
1966 |
}
|
1969 |
}
|
1967 |
|
1970 |
|