cleaned up CompletionModel

This commit is contained in:
fourtf
2018-08-13 14:38:03 +02:00
parent f6e110b7fb
commit 2448f6f538
5 changed files with 35 additions and 147 deletions
+1 -6
View File
@@ -22,15 +22,10 @@ namespace chatterino {
// Channel
//
Channel::Channel(const QString &name, Type type)
: completionModel(name)
: completionModel(*this)
, name_(name)
, type_(type)
{
QObject::connect(&this->clearCompletionModelTimer_, &QTimer::timeout,
[this]() {
this->completionModel.clearExpiredStrings(); //
});
this->clearCompletionModelTimer_.start(60 * 1000);
}
Channel::~Channel()