summary refs log tree commit diff
path: root/include/TextInputWidget.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-21 16:34:50 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-21 16:35:03 +0300
commit2f00fc51bf27708a9c0ac1ce186043059f93923e (patch)
tree2e65159dd08fd9576b18f7f1570b41b56029ccda /include/TextInputWidget.h
parentPopup improvements (diff)
downloadnheko-2f00fc51bf27708a9c0ac1ce186043059f93923e.tar.xz
Cache refactoring
Diffstat (limited to 'include/TextInputWidget.h')
-rw-r--r--include/TextInputWidget.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/TextInputWidget.h b/include/TextInputWidget.h

index 7a52ea77..1f122504 100644 --- a/include/TextInputWidget.h +++ b/include/TextInputWidget.h
@@ -36,7 +36,7 @@ #include "emoji/PickButton.h" -class RoomState; +class Cache; namespace dialogs { class PreviewUploadOverlay; @@ -131,12 +131,12 @@ public: QColor borderColor() const { return borderColor_; } void setBorderColor(QColor &color) { borderColor_ = color; } + void setCache(QSharedPointer<Cache> cache) { cache_ = cache; } public slots: void openFileSelection(); void hideUploadSpinner(); void focusLineEdit() { input_->setFocus(); } - void setRoomState(QSharedPointer<RoomState> state) { currState_ = state; } private slots: void addSelectedEmoji(const QString &emoji); @@ -172,8 +172,7 @@ private: FlatButton *sendMessageBtn_; emoji::PickButton *emojiBtn_; - //! State of the current room. - QSharedPointer<RoomState> currState_; + QSharedPointer<Cache> cache_; QColor borderColor_; };