-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleftbar.h
33 lines (30 loc) · 972 Bytes
/
leftbar.h
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
31
32
33
#ifndef LEFTBAR_H
#define LEFTBAR_H
#include <QWidget>
#include <QBoxLayout>
#include <QLabel>
#include <QList>
#include <QScrollArea>
#include "leftbaritem.h"
class LeftBar : public QWidget
{
Q_OBJECT
public:
explicit LeftBar();
QBoxLayout *scrollLayout = new QBoxLayout(QBoxLayout::TopToBottom,this);
QScrollArea *scroll = new QScrollArea();
QWidget *frame = new QWidget();
QBoxLayout *layout = new QBoxLayout(QBoxLayout::TopToBottom,frame);
QWidget *libraryFrame = new QWidget();
QWidget *playlistsFrame = new QWidget();
QBoxLayout *libraryLayout = new QBoxLayout(QBoxLayout::TopToBottom,libraryFrame);
QBoxLayout *playlistsLayout = new QBoxLayout(QBoxLayout::TopToBottom,playlistsFrame);
QLabel *title1 = new QLabel("Library");
QLabel *title2 = new QLabel("Playlists");
QList<LeftBarItem*> items;
signals:
void sendSelected(QString id);
public slots:
void itemSelected(QString id);
};
#endif // LEFTBAR_H