aboutsummaryrefslogtreecommitdiff
path: root/smartpen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'smartpen.cc')
-rw-r--r--smartpen.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/smartpen.cc b/smartpen.cc
index 1282e33..ce26a31 100644
--- a/smartpen.cc
+++ b/smartpen.cc
@@ -88,7 +88,7 @@ QByteArray Smartpen::getObject(const QString &name)
QString Smartpen::getParameter(Parameters parameter)
{
- QString objectName = QString("ppdata?key=pp%1").arg(int(parameter), 4);
+ QString objectName = QString("ppdata?key=pp%1").arg(uint(parameter), 4, 16);
QByteArray data = getObject(objectName);
QXmlStreamReader r(data);
@@ -120,6 +120,8 @@ QVariantMap Smartpen::getPenInfo()
QByteArray data = getObject("peninfo");
QXmlStreamReader r(data);
+ qDebug() << "PenInfo: " << QString::fromLatin1(data);
+
advanceToFirstChildElement(r, "xml");
advanceToFirstChildElement(r, "peninfo");