summaryrefslogtreecommitdiff
path: root/sowatchui/watchscannermodel.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-09 19:06:46 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-09 19:06:46 +0200
commit118cb64416eb3bbbfee47bd3c618fc8825d85f54 (patch)
tree8a2d0e51cba858eda83c82dfd591c10b92300487 /sowatchui/watchscannermodel.cpp
parentbc5b70046e84c6e5a33a19bd2e64e626fdf0579e (diff)
downloadsowatch-118cb64416eb3bbbfee47bd3c618fc8825d85f54.tar.gz
sowatch-118cb64416eb3bbbfee47bd3c618fc8825d85f54.zip
add some UI stubs
Diffstat (limited to 'sowatchui/watchscannermodel.cpp')
-rw-r--r--sowatchui/watchscannermodel.cpp6
1 files changed, 3 insertions, 3 deletions
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();
}