summaryrefslogtreecommitdiffstats
path: root/testapp/plotwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/plotwidget.cpp')
-rw-r--r--testapp/plotwidget.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/testapp/plotwidget.cpp b/testapp/plotwidget.cpp
index 019c3c8..43c179b 100644
--- a/testapp/plotwidget.cpp
+++ b/testapp/plotwidget.cpp
@@ -39,7 +39,13 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QPushButton>
+#include <QTextStream>
+#include <QColor>
+#include <QPainter>
+#include <QLabel>
+#include <QResizeEvent>
+#include <QPlastiqueStyle>
#include "plotwidget.h"
#include "qkineticscroller.h"
@@ -51,11 +57,16 @@ PlotWidget::PlotWidget(QKineticScroller *scroller)
m_scroller->registerDebugHook(debugHook, this);
m_clear = new QPushButton(QLatin1String("Clear"), this);
+#if defined(Q_WS_MAEMO_5)
+ m_clear->setStyle(new QPlastiqueStyle());
+ m_clear->setFixedHeight(55);
+#endif
connect(m_clear, SIGNAL(clicked()), this, SLOT(reset()));
m_legend = new QLabel(this);
QString legend;
QTextStream ts(&legend);
- ts << "<table border=\"0\">";
+ // ok. this wouldn't pass the w3c html verification...
+ ts << "<table style=\"color:#000;\" border=\"0\">";
ts << "<tr><td width=\"30\" bgcolor=\"" << QColor(Qt::red).light().name() << "\" /><td>Velocity X</td></tr>";
ts << "<tr><td width=\"30\" bgcolor=\"" << QColor(Qt::red).dark().name() << "\" /><td>Velocity Y</td></tr>";
ts << "<tr><td width=\"30\" bgcolor=\"" << QColor(Qt::green).light().name() << "\" /><td>Content Position X</td></tr>";