18cb4bd6e5
* Add `<functional>` include to QStringHash.hpp This ensures the base `std::hash` template is declared before this specialization * Add missing includes to `src/providers/twitch/TwitchAccountManager.hpp` * Move explicit HelixChatters constructor to the source file * Remove unused includes & add used includes to NicknamesModel.hpp * NicknamesModel.hpp: Remove `virtual` when `override` is used * Add missing QStringHash include to TwitchEmotes.cpp * Add missing includes to various files * Print Qt version in cmake step Technically unrelated, but I'm sneaking it in * Add changelog entry
29 lines
629 B
C++
29 lines
629 B
C++
#pragma once
|
|
|
|
#include "common/SignalVectorModel.hpp"
|
|
|
|
#include <QObject>
|
|
|
|
#include <vector>
|
|
|
|
namespace chatterino {
|
|
|
|
class Nickname;
|
|
|
|
class NicknamesModel : public SignalVectorModel<Nickname>
|
|
{
|
|
public:
|
|
explicit NicknamesModel(QObject *parent);
|
|
|
|
protected:
|
|
// turn a vector item into a model row
|
|
Nickname getItemFromRow(std::vector<QStandardItem *> &row,
|
|
const Nickname &original) override;
|
|
|
|
// turns a row in the model into a vector item
|
|
void getRowFromItem(const Nickname &item,
|
|
std::vector<QStandardItem *> &row) override;
|
|
};
|
|
|
|
} // namespace chatterino
|