dde-dock/plugins/sound/componments/horizontalseparator.h
qiuchangxing 820fb8265e fix: 修复托盘区域列表样式问题
列表之间没有间隔(声音、网络列表),蓝牙列深浅模式的列表隔颜色错误,列表鼠标悬停在某一项上,没有变化(声音、网络)。已按照设计要求做了修改

Log: 修复托盘区域列表样式问题
Bug: https://pms.uniontech.com/zentao/bug-view-77310.html
Change-Id: Ic0e95dbe478c2d9c4f945fb1fbeed8ddb5919d4a
2021-05-19 09:41:03 +08:00

44 lines
1.1 KiB
C++

/*
* Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd.
*
* Author: sbw <sbw@sbw.so>
*
* Maintainer: sbw <sbw@sbw.so>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HORIZONTALSEPARATOR_H
#define HORIZONTALSEPARATOR_H
#include <QWidget>
class HorizontalSeparator : public QWidget
{
Q_OBJECT
public:
explicit HorizontalSeparator(QWidget *parent = 0);
void setColor(const QColor color);
protected:
void paintEvent(QPaintEvent *e);
private:
QColor m_color;
};
#endif // HORIZONTALSEPARATOR_H