const RegionInfo *ri;
setAlignment(Qt::AlignCenter);
+#ifdef Q_WS_MAEMO_5
setAttribute(Qt::WA_TranslucentBackground);
-
+#endif
ri = _regions.lookup (_settings.regions ()[0]);
setText (_settings.regions ().join (", ") + ", " + QString (ri ? ri->name () : ""));
QSize sizeHint() const
{
- return 2 * QLabel::sizeHint();
+ return QLabel::sizeHint() + QSize (20, 0);
}
protected:
QPainter p(this);
p.setBrush(QColor(0, 0, 0, 128));
p.setPen(Qt::NoPen);
- p.drawRoundedRect(rect(), 25, 25);
+ p.drawRoundedRect(rect(), 10, 10);
p.end();
QLabel::paintEvent(event);
--- /dev/null
+#include <QtCore>
+#include <mainwidget.hpp>
+
+
+int main(int argc, char *argv[])
+{
+ QApplication app (argc, argv);
+ MainWidget w;
+
+ w.show ();
+ return app.exec ();
+}
+