Move imagepacksmodel to the models folder
This commit is contained in:
committed by
Tobias Fella
parent
42ca128d7f
commit
8d45d4404e
@@ -48,7 +48,7 @@ add_library(neochat STATIC
|
||||
texthandler.cpp
|
||||
logger.cpp
|
||||
stickermodel.cpp
|
||||
imagepacksmodel.cpp
|
||||
models/imagepacksmodel.cpp
|
||||
events/imagepackevent.cpp
|
||||
events/joinrulesevent.cpp
|
||||
events/stickerevent.cpp
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
#include "clipboard.h"
|
||||
#include "controller.h"
|
||||
#include "filetypesingleton.h"
|
||||
#include "imagepacksmodel.h"
|
||||
#include "linkpreviewer.h"
|
||||
#include "logger.h"
|
||||
#include "login.h"
|
||||
@@ -53,6 +52,7 @@
|
||||
#include "models/customemojimodel.h"
|
||||
#include "models/devicesmodel.h"
|
||||
#include "models/emojimodel.h"
|
||||
#include "models/imagepacksmodel.h"
|
||||
#include "models/keywordnotificationrulemodel.h"
|
||||
#include "models/messageeventmodel.h"
|
||||
#include "models/messagefiltermodel.h"
|
||||
|
||||
@@ -42,7 +42,12 @@ QVariant ImagePacksModel::data(const QModelIndex &index, int role) const
|
||||
|
||||
QHash<int, QByteArray> ImagePacksModel::roleNames() const
|
||||
{
|
||||
return {{DisplayNameRole, "displayName"}, {AvatarUrlRole, "avatarUrl"}, {AttributionRole, "attribution"}, {IdRole, "id"},};
|
||||
return {
|
||||
{DisplayNameRole, "displayName"},
|
||||
{AvatarUrlRole, "avatarUrl"},
|
||||
{AttributionRole, "attribution"},
|
||||
{IdRole, "id"},
|
||||
};
|
||||
}
|
||||
|
||||
NeoChatRoom *ImagePacksModel::room() const
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "stickermodel.h"
|
||||
|
||||
#include "imagepacksmodel.h"
|
||||
#include "models/imagepacksmodel.h"
|
||||
|
||||
using namespace Quotient;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user