-
Notifications
You must be signed in to change notification settings - Fork 0
/
leftsidebar.cpp
30 lines (25 loc) · 896 Bytes
/
leftsidebar.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "leftsidebar.h"
#include <QVBoxLayout>
#include "splitline.h"
#include "musicplayer.h"
LeftSideBar::LeftSideBar(QWidget *parent) : QWidget(parent)
{
QVBoxLayout *mainVBLayout = new QVBoxLayout(this);
navListView = new NavListView(this);
deviceInfo = new DeviceInfo(this);
MusicPlayer *musicPlayer = new MusicPlayer(this);
mainVBLayout->setContentsMargins(0,0,0,0);
mainVBLayout->setMargin(0);
mainVBLayout->setSpacing(0);
mainVBLayout->addWidget(navListView, 1);
mainVBLayout->addWidget(new SplitLine(SplitLine::Horizontal, this));
mainVBLayout->addWidget(musicPlayer);
mainVBLayout->addWidget(new SplitLine(SplitLine::Horizontal, this));
mainVBLayout->addWidget(deviceInfo);
this->setLayout(mainVBLayout);
this->setFixedWidth(navListView->width());
this->setContentsMargins(0, 0, 0, 0);
}
LeftSideBar::~LeftSideBar()
{
}