diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2017-09-11 18:34:07 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2017-09-11 18:34:07 -0400 |
commit | 8130a95c6a437f9a55ddbf1858632e5645aeb0fa (patch) | |
tree | c27e44ec41c54b33aba6bcb38c8e06855211ba6c /src-qt5/experimental/lumina-screencast/main.cpp | |
parent | Resynced translation files (diff) | |
download | lumina-8130a95c6a437f9a55ddbf1858632e5645aeb0fa.tar.gz lumina-8130a95c6a437f9a55ddbf1858632e5645aeb0fa.tar.bz2 lumina-8130a95c6a437f9a55ddbf1858632e5645aeb0fa.zip |
Added a framework for an experimental screen recorder
Diffstat (limited to 'src-qt5/experimental/lumina-screencast/main.cpp')
-rw-r--r-- | src-qt5/experimental/lumina-screencast/main.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src-qt5/experimental/lumina-screencast/main.cpp b/src-qt5/experimental/lumina-screencast/main.cpp new file mode 100644 index 00000000..08233e67 --- /dev/null +++ b/src-qt5/experimental/lumina-screencast/main.cpp @@ -0,0 +1,25 @@ +#include <QTranslator> +#include <QApplication> +#include <QDebug> +#include <QFile> + +#include "MainUI.h" +#include <LuminaOS.h> +#include <LuminaThemes.h> +#include <LUtils.h> +#include <LuminaSingleApplication.h> + +int main(int argc, char ** argv) +{ + LTHEME::LoadCustomEnvSettings(); + //Make sure Qt5 auto-scaling is disabled for this application (need exact pixel measurements) + unsetenv("QT_AUTO_SCREEN_SCALE_FACTOR"); + LSingleApplication a(argc, argv, "l-screencast"); + if(!a.isPrimaryProcess()){ return 0; } + a.setApplicationName("Record Screen"); + + MainUI w; + w.show(); + + return a.exec(); +} |