mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Move CompletionModel to a more appropriate folder
This commit is contained in:
parent
d9bd39e8a4
commit
b2f041989c
|
@ -116,7 +116,7 @@ SOURCES += \
|
|||
src/singletons/commandmanager.cpp \
|
||||
src/singletons/emotemanager.cpp \
|
||||
src/singletons/fontmanager.cpp \
|
||||
src/singletons/helper/completionmodel.cpp \
|
||||
src/util/completionmodel.cpp \
|
||||
src/singletons/helper/loggingchannel.cpp \
|
||||
src/singletons/helper/moderationaction.cpp \
|
||||
src/singletons/loggingmanager.cpp \
|
||||
|
@ -210,7 +210,7 @@ HEADERS += \
|
|||
src/singletons/emotemanager.hpp \
|
||||
src/singletons/fontmanager.hpp \
|
||||
src/singletons/helper/chatterinosetting.hpp \
|
||||
src/singletons/helper/completionmodel.hpp \
|
||||
src/util/completionmodel.hpp \
|
||||
src/singletons/helper/loggingchannel.hpp \
|
||||
src/singletons/helper/moderationaction.hpp \
|
||||
src/singletons/loggingmanager.hpp \
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "messages/image.hpp"
|
||||
#include "messages/limitedqueue.hpp"
|
||||
#include "messages/message.hpp"
|
||||
#include "singletons/helper/completionmodel.hpp"
|
||||
#include "util/completionmodel.hpp"
|
||||
#include "util/concurrentmap.hpp"
|
||||
|
||||
#include <QMap>
|
||||
|
@ -65,7 +65,7 @@ public:
|
|||
|
||||
static std::shared_ptr<Channel> getEmpty();
|
||||
|
||||
singletons::CompletionModel completionModel;
|
||||
CompletionModel completionModel;
|
||||
|
||||
protected:
|
||||
virtual void onConnected();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "completionmodel.hpp"
|
||||
#include "util/completionmodel.hpp"
|
||||
|
||||
#include "common.hpp"
|
||||
#include "debug/log.hpp"
|
||||
|
@ -8,7 +8,6 @@
|
|||
#include <QtAlgorithms>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
CompletionModel::CompletionModel(const QString &_channelName)
|
||||
: channelName(_channelName)
|
||||
|
@ -95,5 +94,4 @@ void CompletionModel::addUser(const QString &str)
|
|||
this->emotes.insert(this->createUser(str + " "));
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
|
@ -9,7 +9,6 @@
|
|||
#include <string>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
class CompletionModel : public QAbstractListModel
|
||||
{
|
||||
|
@ -89,5 +88,4 @@ private:
|
|||
QString channelName;
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
|
@ -1,6 +1,6 @@
|
|||
#include "widgets/helper/resizingtextedit.hpp"
|
||||
#include "common.hpp"
|
||||
#include "singletons/helper/completionmodel.hpp"
|
||||
#include "util/completionmodel.hpp"
|
||||
|
||||
ResizingTextEdit::ResizingTextEdit()
|
||||
{
|
||||
|
@ -97,7 +97,7 @@ void ResizingTextEdit::keyPressEvent(QKeyEvent *event)
|
|||
}
|
||||
|
||||
auto *completionModel =
|
||||
static_cast<chatterino::singletons::CompletionModel *>(this->completer->model());
|
||||
static_cast<chatterino::CompletionModel *>(this->completer->model());
|
||||
|
||||
if (!this->completionInProgress) {
|
||||
// First type pressing tab after modifying a message, we refresh our completion model
|
||||
|
|
Loading…
Reference in a new issue