From 8be33c4c7cd1b1b988bc9575492dc4516f1dd8d8 Mon Sep 17 00:00:00 2001
From: Jonathan Bauer
Date: Fri, 17 Jun 2011 16:07:54 +0200
Subject: README for build/run scripts & few comments..
---
README | 12 ++++++++++++
src/fbsplash.cpp | 12 +++++-------
2 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/README b/README
index 5489484..506c7fa 100644
--- a/README
+++ b/README
@@ -1,3 +1,15 @@
***************************************
Framebuffer BootSplash for OpenSLX
***************************************
+
+To create Makefile, use:
+
+ ./build.sh
+
+(this will generate Makefile with cmake, under the build/ subdirectory)
+
+To run the program (on the qvfb), use:
+
+ ./run.sh
+
+(this will start qvfb and launch fbsplash on it, similar to fbgui)
diff --git a/src/fbsplash.cpp b/src/fbsplash.cpp
index 0e84c5c..d22cbbc 100644
--- a/src/fbsplash.cpp
+++ b/src/fbsplash.cpp
@@ -12,24 +12,22 @@ fbsplash::fbsplash() :
createActions();
setupTheme();
- _label = new QLabel("OpenSLX");
- _label->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
-
-
-
- qDebug() << "center x: " << center.x();
- qDebug() << "center y: " << center.y();
+ // basic progress bar for now
QProgressBar* pb = new QProgressBar(this);
//pb->setFormat("Progress: %p%");
pb->setWindowFlags(Qt::FramelessWindowHint);
pb->setRange(0, 100);
pb->setValue(10);
+ // move the pb to the center, TODO proper margin
QRect desktopRect = QApplication::desktop()->availableGeometry(this);
QPoint center = desktopRect.center();
pb->move(center.x() - pb->width()*0.5 , center.y() - pb->height()*0.5 + 50);
+ // Label in the middle of the screen
+ _label = new QLabel("OpenSLX");
+ _label->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
setCentralWidget(_label);
setAttribute(Qt::WA_QuitOnClose, true);
--
cgit v1.2.3-55-g7522