Add borders
This commit is contained in:
parent
020a842aef
commit
af5663b6bc
6 changed files with 71 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue