Hide horizontal scroll bar on history view

This commit is contained in:
Konstantinos Sideris 2017-04-10 18:49:24 +03:00
parent ee72d8b7b7
commit a859145983
2 changed files with 2 additions and 2 deletions

View file

@ -116,6 +116,7 @@ void HistoryView::init()
scroll_area_ = new QScrollArea(this); scroll_area_ = new QScrollArea(this);
scroll_area_->setWidgetResizable(true); scroll_area_->setWidgetResizable(true);
scroll_area_->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
scroll_widget_ = new QWidget(); scroll_widget_ = new QWidget();

View file

@ -28,8 +28,7 @@ HistoryViewItem::HistoryViewItem(const Event &event, bool with_sender, const QSt
if (with_sender) if (with_sender)
sender = event.sender().split(":")[0].split("@")[1]; sender = event.sender().split(":")[0].split("@")[1];
auto body = event.content().value("body").toString().simplified(); auto body = event.content().value("body").toString().trimmed();
auto timestamp = QDateTime::fromMSecsSinceEpoch(event.timestamp()); auto timestamp = QDateTime::fromMSecsSinceEpoch(event.timestamp());
auto local_time = timestamp.toString("HH:mm"); auto local_time = timestamp.toString("HH:mm");