mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
21 lines
564 B
C++
21 lines
564 B
C++
#include "soundapplet.h"
|
|
|
|
#define WIDTH 200
|
|
|
|
SoundApplet::SoundApplet(QWidget *parent)
|
|
: QScrollArea(parent),
|
|
|
|
m_centeralWidget(new QWidget(this))
|
|
{
|
|
m_centeralLayout = new QVBoxLayout;
|
|
m_centeralWidget->setLayout(m_centeralLayout);
|
|
m_centeralWidget->setFixedWidth(WIDTH);
|
|
|
|
setFixedWidth(WIDTH);
|
|
setWidget(m_centeralWidget);
|
|
setFrameStyle(QFrame::NoFrame);
|
|
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
|
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
|
setStyleSheet("background-color:transparent;");
|
|
}
|