checkin for saving current state

This commit is contained in:
2025-02-14 13:20:42 +01:00
parent ef9cc23093
commit 8db818f6cd
37 changed files with 1063 additions and 131 deletions

View File

@@ -36,6 +36,7 @@
#include <QThread>
#include <QtWidgets>
#include <QScopedPointer>
#include <QScreen>
#if defined (Q_OS_UNIX) || defined (Q_OS_LINUX)
#include <unistd.h>
@@ -48,6 +49,17 @@
#define SERIAL_PORT "ttyUSB0"
#endif
//QString Orientation(Qt::ScreenOrientation orientation) {
// switch (orientation) {
// case Qt::PrimaryOrientation : return "Primary";
// case Qt::LandscapeOrientation : return "Landscape";
// case Qt::PortraitOrientation : return "Portrait";
// case Qt::InvertedLandscapeOrientation : return "Inverted landscape";
// case Qt::InvertedPortraitOrientation : return "Inverted portrait";
// default : return "Unknown";
// }
//}
// argv[1]: file to send to dc
int main(int argc, char *argv[]) {
QByteArray const value = qgetenv("LC_ALL");
@@ -70,6 +82,15 @@ int main(int argc, char *argv[]) {
setDebugLevel(LOG_NOTICE);
}
//qCritical() << "Number of screens:" << QGuiApplication::screens().size();
//qCritical() << "Primary screen:" << QGuiApplication::primaryScreen()->name();
//foreach (QScreen *screen, QGuiApplication::screens()) {
// qDebug() << "Information for screen:" << screen->name();
// qDebug() << " Orientation:" << Orientation(screen->orientation());
//}
//return 0;
CommandLineParser parser;
parser.process(a);
parser.readSettings();