|
|
@ -1,3 +1,5 @@ |
|
|
|
|
|
|
|
#include <QPainter> |
|
|
|
|
|
|
|
#include <QStyleOption> |
|
|
|
#include <QTabWidget> |
|
|
|
#include <QTabWidget> |
|
|
|
#include <QTimer> |
|
|
|
#include <QTimer> |
|
|
|
|
|
|
|
|
|
|
@ -140,7 +142,6 @@ UserMentions::pushItem(const QString &event_id, |
|
|
|
local_scroll_widget_); |
|
|
|
local_scroll_widget_); |
|
|
|
local_view_item->setEventId(event_id); |
|
|
|
local_view_item->setEventId(event_id); |
|
|
|
local_view_item->hide(); |
|
|
|
local_view_item->hide(); |
|
|
|
|
|
|
|
|
|
|
|
local_scroll_layout_->addWidget(local_view_item); |
|
|
|
local_scroll_layout_->addWidget(local_view_item); |
|
|
|
|
|
|
|
|
|
|
|
QTimer::singleShot(0, this, [local_view_item]() { |
|
|
|
QTimer::singleShot(0, this, [local_view_item]() { |
|
|
@ -149,3 +150,12 @@ UserMentions::pushItem(const QString &event_id, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void |
|
|
|
|
|
|
|
UserMentions::paintEvent(QPaintEvent *) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
QStyleOption opt; |
|
|
|
|
|
|
|
opt.init(this); |
|
|
|
|
|
|
|
QPainter p(this); |
|
|
|
|
|
|
|
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); |
|
|
|
|
|
|
|
} |