Add borders

This commit is contained in:
Konstantinos Sideris 2018-01-15 21:04:49 +02:00
parent 020a842aef
commit af5663b6bc
6 changed files with 71 additions and 0 deletions

View file

@ -78,6 +78,7 @@ ChatPage::ChatPage(QSharedPointer<MatrixClient> client,
// SideBar
sideBar_ = new QFrame(this);
sideBar_->setObjectName("sideBar");
sideBar_->setMinimumWidth(ui::sidebar::NormalSize);
sideBarLayout_ = new QVBoxLayout(sideBar_);
sideBarLayout_->setSpacing(0);

View file

@ -131,3 +131,12 @@ SideBarActions::resizeEvent(QResizeEvent *event)
createRoomBtn_->show();
}
}
void
SideBarActions::paintEvent(QPaintEvent *)
{
QStyleOption opt;
opt.init(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
}