mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
28 lines
716 B
C++
28 lines
716 B
C++
|
#pragma once
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
#include "common/SignalVectorModel.hpp"
|
||
|
#include "controllers/highlights/HighlightPhrase.hpp"
|
||
|
|
||
|
namespace chatterino {
|
||
|
|
||
|
class HighlightController;
|
||
|
|
||
|
class UserHighlightModel : public SignalVectorModel<HighlightPhrase>
|
||
|
{
|
||
|
explicit UserHighlightModel(QObject *parent);
|
||
|
|
||
|
protected:
|
||
|
// vector into model row
|
||
|
virtual HighlightPhrase getItemFromRow(std::vector<QStandardItem *> &row,
|
||
|
const HighlightPhrase &original) override;
|
||
|
|
||
|
virtual void getRowFromItem(const HighlightPhrase &item,
|
||
|
std::vector<QStandardItem *> &row) override;
|
||
|
|
||
|
friend class HighlightController;
|
||
|
};
|
||
|
|
||
|
} // namespace chatterino
|