added code for a notification system
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "application.hpp"
|
||||
#include "controllers/highlights/highlightmodel.hpp"
|
||||
#include "widgets/notificationpopup.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace controllers {
|
||||
@@ -34,6 +35,15 @@ HighlightModel *HighlightController::createModel(QObject *parent)
|
||||
return model;
|
||||
}
|
||||
|
||||
void HighlightController::addHighlight(const messages::MessagePtr &msg)
|
||||
{
|
||||
// static widgets::NotificationPopup popup;
|
||||
|
||||
// popup.updatePosition();
|
||||
// popup.addMessage(msg);
|
||||
// popup.show();
|
||||
}
|
||||
|
||||
} // namespace highlights
|
||||
} // namespace controllers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "controllers/highlights/highlightphrase.hpp"
|
||||
#include "messages/message.hpp"
|
||||
#include "singletons/settingsmanager.hpp"
|
||||
#include "util/signalvector2.hpp"
|
||||
|
||||
@@ -21,6 +22,8 @@ public:
|
||||
|
||||
HighlightModel *createModel(QObject *parent);
|
||||
|
||||
void addHighlight(const messages::MessagePtr &msg);
|
||||
|
||||
private:
|
||||
bool initialized = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user