diff options
author | Gatis Paeglis <gatis.paeglis@digia.com> | 2014-09-04 14:49:55 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@digia.com> | 2014-10-07 12:01:58 +0300 |
commit | d80296cc3aecb532e50e5ee262bd446546cb81cf (patch) | |
tree | 1b0156c05a6ad036324b949b739a048d419495c7 /src | |
parent | a8cb750ef7c4975dcff4d911b6e0a8ff9d975d91 (diff) |
Clean up b2qt launcher
- remove fonts from the projects repository. Font
installation is handled when building target image.
- remove unused variables.
- remove usage of QPalette. It does not have any affect
on launchers appearance AFAICT.
Change-Id: I83c37e8b07ecd01747ed8419fa8d2f61e5d8f109
Reviewed-by: Samuli Piippo <samuli.piippo@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6e99fa2..d8d29ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -54,16 +54,6 @@ void displayHelp(const char *appName) ); } -/* - * TODO: - * - add fps counter - * - settings screen - * - Qt logo with glitter and particles - * - Brightness control (when applicable) - * - Toggle FPS measurement - * - power off - */ - int main(int argc, char **argv) { QApplication app(argc, argv); @@ -76,13 +66,6 @@ int main(int argc, char **argv) QWebEngine::initialize(); #endif - QPalette pal; - pal.setColor(QPalette::Text, Qt::black); - pal.setColor(QPalette::WindowText, Qt::black); - pal.setColor(QPalette::ButtonText, Qt::black); - pal.setColor(QPalette::Base, Qt::white); - QGuiApplication::setPalette(pal); - QString fontName = QStringLiteral("/system/lib/fonts/DejaVuSans.ttf"); if (QFile::exists(fontName)) { QFontDatabase::addApplicationFont(fontName); @@ -102,9 +85,7 @@ int main(int argc, char **argv) : QStringLiteral("qrc:///qml/Main.qml"); QString appsRoot = QStringLiteral("/data/user/qt"); - QString bgImage = QStringLiteral(":/qml/images/bg_1280x800.jpg"); bool logcat = false; - QString bgColor; bool bootAnimation = true; bool showFps = false; |