aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bantablemodel.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-06-26 10:21:13 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-09-16 16:50:19 +0200
commit43c1f5b8d7accc158dfd6b270cb9bfd0cd900a3e (patch)
treea601bd237b28b22c52a964fc4ce2cf9153585ab0 /src/qt/bantablemodel.cpp
parente2b8028e4c60708a8d49b17d9d49dda10aaecc51 (diff)
[Qt] remove unused timer-code from banlistmodel.cpp
Diffstat (limited to 'src/qt/bantablemodel.cpp')
-rw-r--r--src/qt/bantablemodel.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/qt/bantablemodel.cpp b/src/qt/bantablemodel.cpp
index 1ef120ccf0..ee40cdbf57 100644
--- a/src/qt/bantablemodel.cpp
+++ b/src/qt/bantablemodel.cpp
@@ -13,7 +13,6 @@
#include <QDebug>
#include <QList>
-#include <QTimer>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/c_local_time_adjustor.hpp>
@@ -65,33 +64,17 @@ public:
BanTableModel::BanTableModel(ClientModel *parent) :
QAbstractTableModel(parent),
- clientModel(parent),
- timer(0)
+ clientModel(parent)
{
columns << tr("IP/Netmask") << tr("Banned Until");
priv = new BanTablePriv();
// default to unsorted
priv->sortColumn = -1;
- // set up timer for auto refresh
- timer = new QTimer();
- connect(timer, SIGNAL(timeout()), SLOT(refresh()));
- timer->setInterval(MODEL_UPDATE_DELAY);
-
// load initial data
refresh();
}
-void BanTableModel::startAutoRefresh()
-{
- timer->start();
-}
-
-void BanTableModel::stopAutoRefresh()
-{
- timer->stop();
-}
-
int BanTableModel::rowCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);