diff options
author | Javier <dev.git@javispedro.com> | 2021-09-12 19:41:12 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2021-09-12 19:41:12 +0200 |
commit | ac7b085449fb49f54225d22c7c229da6ad120e2b (patch) | |
tree | 7910cc8c9a3268dbacbbe434c7f3cea4eedafd3d /afdnotebook.cc | |
parent | 66dd35254724ec5d4471a8be71f92e06cf0fa8e8 (diff) | |
download | scribiu-ac7b085449fb49f54225d22c7c229da6ad120e2b.tar.gz scribiu-ac7b085449fb49f54225d22c7c229da6ad120e2b.zip |
remove PEN_EPOCH mistake and get usertime from the pen
Diffstat (limited to 'afdnotebook.cc')
-rw-r--r-- | afdnotebook.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/afdnotebook.cc b/afdnotebook.cc index 913986e..58ae359 100644 --- a/afdnotebook.cc +++ b/afdnotebook.cc @@ -320,12 +320,12 @@ bool AfdNotebook::parseGfx(const QString &file) if (!r.atEnd()) { QXmlStreamAttributes attrs = r.attributes(); QString imageSrc = attrs.value("src").toString(); - qDebug() << "image src" << imageSrc; + qDebug() << " image src" << imageSrc; int lastSlash = imageSrc.lastIndexOf('/'); int lastDot = imageSrc.lastIndexOf('.'); if (lastSlash >= 0 && lastDot > lastSlash) { gfx.basename = imageSrc.mid(lastSlash + 1, lastDot - lastSlash - 1); - qDebug() << "Got gfx" << gfx.basename; + qDebug() << " gfx" << gfx.basename; } } @@ -368,8 +368,8 @@ bool AfdNotebook::findPenData() stroke.file = penDir.filePath(strokeFile); bool ok = true; - if (ok) stroke.begin = Smartpen::fromPenTime(strokeFile.mid(2, 8).toLongLong(&ok, 16) * 1000ULL); - if (ok) stroke.end = Smartpen::fromPenTime(strokeFile.mid(13, 8).toLongLong(&ok, 16) * 1000ULL); + if (ok) stroke.begin = strokeFile.mid(2, 8).toLongLong(&ok, 16) * 1000ULL; + if (ok) stroke.end = strokeFile.mid(13, 8).toLongLong(&ok, 16) * 1000ULL; if (!ok) { qWarning() << "Invalid stroke filename format" << strokeFile; |