summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-22 09:16:17 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-22 09:16:17 +0200
commit64a6771dc8379ae6d14d61ced0e9bb61462f65bd (patch)
treed14d0a341999ac08df2cb592cd5cecb880c410f4 /include
parentAdjust unread msg bubble (diff)
downloadnheko-64a6771dc8379ae6d14d61ced0e9bb61462f65bd.tar.xz
Fix text color on room switcher
fixes #245
Diffstat (limited to 'include')
-rw-r--r--include/QuickSwitcher.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/QuickSwitcher.h b/include/QuickSwitcher.h

index 115161ab..01c5e6da 100644 --- a/include/QuickSwitcher.h +++ b/include/QuickSwitcher.h
@@ -18,9 +18,9 @@ #pragma once #include <QAbstractItemView> -#include <QFrame> #include <QKeyEvent> #include <QVBoxLayout> +#include <QWidget> #include "TextField.h" @@ -41,7 +41,7 @@ protected: bool focusNextPrevChild(bool next) override; }; -class QuickSwitcher : public QFrame +class QuickSwitcher : public QWidget { Q_OBJECT public: @@ -55,7 +55,8 @@ signals: protected: void keyPressEvent(QKeyEvent *event) override; - void showEvent(QShowEvent *event) override; + void showEvent(QShowEvent *) override { roomSearch_->setFocus(); } + void paintEvent(QPaintEvent *event) override; private: // Current highlighted selection from the completer.