refactored TaggedUsers and Ping

This commit is contained in:
fourtf
2020-02-23 20:34:00 +01:00
parent df91ea44c4
commit d0a81f3fe7
14 changed files with 131 additions and 161 deletions
@@ -0,0 +1,26 @@
#pragma once
#include <QObject>
#include "common/SignalVectorModel.hpp"
#include "controllers/notifications/NotificationController.hpp"
namespace chatterino {
class MutedChannelController;
class MutedChannelModel : public SignalVectorModel<QString>
{
explicit MutedChannelModel(QObject *parent);
protected:
// turn a vector item into a model row
virtual QString getItemFromRow(std::vector<QStandardItem *> &row,
const QString &original) override;
// turns a row in the model into a vector item
virtual void getRowFromItem(const QString &item,
std::vector<QStandardItem *> &row) override;
};
} // namespace chatterino