From 2f366990bf3e7548e0ed6e5089d9dcbfa898764e Mon Sep 17 00:00:00 2001 From: Jesper Thomschutz Date: Mon, 16 Apr 2007 12:54:12 +0200 Subject: [PATCH] Minor cleanups in model and connect --- timeline.cpp | 4 ++-- w_connect.cpp | 2 +- w_timeline.cpp | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/timeline.cpp b/timeline.cpp index 2d407fb..04147ef 100644 --- a/timeline.cpp +++ b/timeline.cpp @@ -13,8 +13,8 @@ bool Timeline::hasItem(QStandardItem *item) if (rowCount() == 0) return false; - QModelIndexList tmp = match(indexFromItem(this->item(0)), Id, item->data(Id)); - + QModelIndexList tmp = match(index(0,0), Id, item->data(Id)); + // Has the item if (tmp.size() > 0) return true; diff --git a/w_connect.cpp b/w_connect.cpp index dbf367b..bf576f4 100644 --- a/w_connect.cpp +++ b/w_connect.cpp @@ -45,6 +45,6 @@ void w_Connect::status( bool error, QString errorString ) le_password->clear(); - qDebug() << "error:" << error << " and " << errorString; + qDebug() << "error in w_Connect::status:" << errorString; } } diff --git a/w_timeline.cpp b/w_timeline.cpp index 593b43a..a4f28a0 100644 --- a/w_timeline.cpp +++ b/w_timeline.cpp @@ -14,13 +14,13 @@ w_Timeline::w_Timeline(QString usr, QString pass, QWidget *parent) : QDialog(par user = usr; password = pass; - + //Load the timeline refresh(); - + // Send message button (Squawk!) QObject::connect(pb_update, SIGNAL(clicked()), this, SLOT(sendUpdate())); - + //Refresh the timeline ever so often... timer = new QTimer(this); QObject::connect(timer, SIGNAL(timeout()), this, SLOT(refresh())); @@ -33,7 +33,7 @@ void w_Timeline::sendUpdate() { pb_update->setEnabled(false); le_message->setEnabled(false); - + TwitterSocket *tmp = new TwitterSocket(user,password); QObject::connect( tmp, SIGNAL( result(bool,QString,QString) ), this, SLOT( updateResult(bool, QString) ) ); tmp->update(le_message->text()); -- 2.11.4.GIT