changed CommandManager to CommandController

This commit is contained in:
fourtf
2018-04-30 23:30:05 +02:00
parent b907bf5639
commit 4c3f0921e2
17 changed files with 524 additions and 398 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#include "widgets/helper/splitinput.hpp"
#include "application.hpp"
#include "singletons/commandmanager.hpp"
#include "controllers/commands/commandcontroller.hpp"
#include "singletons/ircmanager.hpp"
#include "singletons/settingsmanager.hpp"
#include "singletons/thememanager.hpp"
+3 -2
View File
@@ -7,7 +7,8 @@
#include <QTextEdit>
#include "application.hpp"
#include "singletons/commandmanager.hpp"
#include "controllers/commands/commandcontroller.hpp"
#include "controllers/commands/commandmodel.hpp"
#include "util/layoutcreator.hpp"
#include "util/standarditemhelper.hpp"
//#include "widgets/helper/comboboxitemdelegate.hpp"
@@ -49,7 +50,7 @@ CommandPage::CommandPage()
auto add = buttons.emplace<QPushButton>("Add");
QObject::connect(*add, &QPushButton::clicked, [model, view] {
getApp()->commands->items.appendItem(
singletons::Command{"/command", "I made a new command HeyGuys"});
controllers::commands::Command{"/command", "I made a new command HeyGuys"});
view->scrollToBottom();
});