summary refs log tree commit diff
path: root/src/popups/UserMentions.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2019-08-29 18:01:20 -0400
committerJoseph Donofry <joedonofry@gmail.com>2019-08-29 18:01:20 -0400
commit98d4f14bd1ccf4c280be6a5fb965c75217c74b7e (patch)
tree819673ed11f591e1630337bc62143308bf3463af /src/popups/UserMentions.cpp
parentFix SIGNAL SLOT issue on mtx types (diff)
downloadnheko-98d4f14bd1ccf4c280be6a5fb965c75217c74b7e.tar.xz
Fix themeing issues on mentions
Diffstat (limited to 'src/popups/UserMentions.cpp')
-rw-r--r--src/popups/UserMentions.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/popups/UserMentions.cpp b/src/popups/UserMentions.cpp

index 152cd82d..3480959a 100644 --- a/src/popups/UserMentions.cpp +++ b/src/popups/UserMentions.cpp
@@ -1,3 +1,5 @@ +#include <QPainter> +#include <QStyleOption> #include <QTabWidget> #include <QTimer> @@ -140,7 +142,6 @@ UserMentions::pushItem(const QString &event_id, local_scroll_widget_); local_view_item->setEventId(event_id); local_view_item->hide(); - local_scroll_layout_->addWidget(local_view_item); QTimer::singleShot(0, this, [local_view_item]() { @@ -148,4 +149,13 @@ UserMentions::pushItem(const QString &event_id, local_view_item->adjustSize(); }); } +} + +void +UserMentions::paintEvent(QPaintEvent *) +{ + QStyleOption opt; + opt.init(this); + QPainter p(this); + style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); } \ No newline at end of file