mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
42 lines
772 B
C++
42 lines
772 B
C++
#pragma once
|
|
|
|
#include "widgets/BaseWidget.hpp"
|
|
#include "widgets/Label.hpp"
|
|
#include "widgets/helper/RippleEffectButton.hpp"
|
|
#include "widgets/helper/SignalLabel.hpp"
|
|
|
|
#include <QHBoxLayout>
|
|
#include <QLabel>
|
|
#include <QPaintEvent>
|
|
#include <QWidget>
|
|
|
|
namespace chatterino {
|
|
|
|
class RippleEffectLabel : public RippleEffectButton
|
|
{
|
|
public:
|
|
explicit RippleEffectLabel(BaseWidget *parent = nullptr, int spacing = 6);
|
|
|
|
SignalLabel &getLabel()
|
|
{
|
|
return this->label;
|
|
}
|
|
|
|
private:
|
|
QHBoxLayout hbox;
|
|
SignalLabel label;
|
|
};
|
|
|
|
class RippleEffectLabel2 : public RippleEffectButton
|
|
{
|
|
public:
|
|
explicit RippleEffectLabel2(BaseWidget *parent = nullptr, int padding = 6);
|
|
|
|
Label &getLabel();
|
|
|
|
private:
|
|
Label label_;
|
|
};
|
|
|
|
} // namespace chatterino
|