From 118cb64416eb3bbbfee47bd3c618fc8825d85f54 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 9 Aug 2012 19:06:46 +0200 Subject: add some UI stubs --- sowatchui/watchscannermodel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sowatchui/watchscannermodel.cpp') diff --git a/sowatchui/watchscannermodel.cpp b/sowatchui/watchscannermodel.cpp index 2f58523..5d3b0ac 100644 --- a/sowatchui/watchscannermodel.cpp +++ b/sowatchui/watchscannermodel.cpp @@ -53,7 +53,6 @@ int WatchScannerModel::rowCount(const QModelIndex &parent) const QVariant WatchScannerModel::data(const QModelIndex &index, int role) const { - qDebug() << "Asked for data" << index.row() << index.column() << role; const QVariantMap &info = _list.at(index.row()); switch (role) { case Qt::DisplayRole: @@ -68,7 +67,7 @@ QVariant WatchScannerModel::data(const QModelIndex &index, int role) const void WatchScannerModel::handleWatchFound(const QVariantMap &info) { - qDebug() << "Watch found" << info << endl; + qDebug() << "Scan found a watch:" << info << endl; if (!_list.contains(info)) { int count = _list.count(); beginInsertRows(QModelIndex(), count, count); @@ -88,6 +87,7 @@ void WatchScannerModel::handleFinished() qDebug() << "Scan finished"; _active = false; if (_enabled) { + qDebug() << "Setting timer for next scan"; _timer->start(); } emit activeChanged(); @@ -95,6 +95,6 @@ void WatchScannerModel::handleFinished() void WatchScannerModel::handleTimeout() { - qDebug() << "Restarting scan"; + qDebug() << "Restarting scan now"; _scanner->start(); } -- cgit v1.2.3