From 5dbfc4ace1876e9ea5d5c47d37d4ba26fa5d1f98 Mon Sep 17 00:00:00 2001 From: Jaroslav Barton Date: Sat, 28 Mar 2009 17:11:32 +0100 Subject: [PATCH] Moved to patched fprintd (hyphen in device properties substitued by underscore) --- src/FMDbusConn.cpp | 4 ++-- src/FMEnroll.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/FMDbusConn.cpp b/src/FMDbusConn.cpp index c82578f..6826730 100644 --- a/src/FMDbusConn.cpp +++ b/src/FMDbusConn.cpp @@ -237,7 +237,7 @@ int FMDbusConn::getEnrollStages(QDBusInterface *iface) { //TODO Qt doesn't support dash in property name int stages = 3; if (iface && iface->isValid()) { - int s = iface->property("num-enroll-stages").toInt(); + int s = iface->property("num_enroll_stages").toInt(); qDebug("Device enroll stages: %d", s); if (s>0) { stages = s; @@ -250,7 +250,7 @@ QString FMDbusConn::getScanType(QDBusInterface *iface) { //TODO Qt doesn't support dash in property name QString type("swipe"); if (iface && iface->isValid()) { - QString t = iface->property("scan-type").toString(); + QString t = iface->property("scan_type").toString(); qDebug() << "Device scan type:" << t; if (t.length() > 0) { type = t; diff --git a/src/FMEnroll.cpp b/src/FMEnroll.cpp index 8ed8aa3..b0cf470 100644 --- a/src/FMEnroll.cpp +++ b/src/FMEnroll.cpp @@ -90,8 +90,8 @@ FMEnroll::~FMEnroll() { void FMEnroll::start() { QDBusInterface *dev = dbc->claimDevice(device_.device, getlogin()); - qDebug() << dbc->getEnrollStages(dev); - qDebug() << dbc->getScanType(dev); + dbc->getEnrollStages(dev); + dbc->getScanType(dev); QString msg = QString("Swipe \"%1\" on \"%2\"").arg(fingerNames[finger_].name, device_.name); actualStatus->setText(i18n(msg.toLatin1())); -- 2.11.4.GIT