From 64a6771dc8379ae6d14d61ced0e9bb61462f65bd Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Thu, 22 Mar 2018 09:16:17 +0200 Subject: Fix text color on room switcher fixes #245 --- include/QuickSwitcher.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') 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 -#include #include #include +#include #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. -- cgit 1.5.1