summaryrefslogtreecommitdiffstats
path: root/hyperui/mainwindow.cpp
diff options
context:
space:
mode:
authorAdriano Rezende <adriano.rezende@openbossa.org>2009-10-29 11:26:50 -0300
committerAdriano Rezende <adriano.rezende@openbossa.org>2009-10-29 18:25:07 -0300
commit465135c9b36a159b2d7debaf1313e83b1a071153 (patch)
tree1490c3ff38d04da16181a2ed34eb6cf38e591abb /hyperui/mainwindow.cpp
parentd0c2a8e460f7ba1475c365c593f06b0184329543 (diff)
Added label and icons in the top bar
Diffstat (limited to 'hyperui/mainwindow.cpp')
-rw-r--r--hyperui/mainwindow.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/hyperui/mainwindow.cpp b/hyperui/mainwindow.cpp
index 4f48fe3..95decf6 100644
--- a/hyperui/mainwindow.cpp
+++ b/hyperui/mainwindow.cpp
@@ -64,6 +64,29 @@ MainWindow::MainWindow(QGraphicsItem *parent)
m_preview = new DraggablePreview(m_mainView, QSize(width, height), this);
connect(m_preview, SIGNAL(maximizeFinished()), SLOT(onMaximizeFinished()));
+ QGraphicsSimpleTextItem *phoneLabel =
+ new QGraphicsSimpleTextItem(tr("T-Mobile"), this);
+
+ QFont labelFont(Resource::stringValue("default/font-family"));
+ labelFont.setBold(true);
+ labelFont.setPixelSize(Resource::intValue("topbar/font-size"));
+ phoneLabel->setFont(labelFont);
+ phoneLabel->setBrush(QColor(Resource::stringValue("default/font-color")));
+
+ QGraphicsPixmapItem *iconBattery =
+ new QGraphicsPixmapItem(Resource::pixmap("topbar_battery.png"), this);
+
+ QGraphicsPixmapItem *icon3G =
+ new QGraphicsPixmapItem(Resource::pixmap("topbar_3g.png"), this);
+
+ QGraphicsPixmapItem *iconNetwork =
+ new QGraphicsPixmapItem(Resource::pixmap("topbar_network.png"), this);
+
+ phoneLabel->setPos(Resource::value("topbar/label-pos").toPoint());
+ iconNetwork->setPos(Resource::value("topbar/icon-network-pos").toPoint());
+ icon3G->setPos(Resource::value("topbar/icon-3g-pos").toPoint());
+ iconBattery->setPos(Resource::value("topbar/icon-battery-pos").toPoint());
+
createDummyDailyEvents();
#ifdef Q_OS_SYMBIAN