mirror-chatterino2/src/widgets/helper/RippleEffectLabel.hpp

42 lines
772 B
C++
Raw Normal View History

#pragma once
2017-01-15 16:38:30 +01:00
2018-06-26 14:09:39 +02:00
#include "widgets/BaseWidget.hpp"
#include "widgets/helper/RippleEffectButton.hpp"
#include "widgets/helper/SignalLabel.hpp"
#include "widgets/Label.hpp"
2017-01-15 16:38:30 +01:00
#include <QHBoxLayout>
#include <QLabel>
#include <QPaintEvent>
#include <QWidget>
2017-04-14 17:52:22 +02:00
namespace chatterino {
2017-01-18 21:30:23 +01:00
class RippleEffectLabel : public RippleEffectButton
2017-01-15 16:38:30 +01:00
{
public:
explicit RippleEffectLabel(BaseWidget *parent = nullptr, int spacing = 6);
2017-01-15 16:38:30 +01:00
2017-04-12 17:46:44 +02:00
SignalLabel &getLabel()
2017-01-15 16:38:30 +01:00
{
2017-09-22 00:50:43 +02:00
return this->label;
2017-01-15 16:38:30 +01:00
}
private:
2017-09-22 00:50:43 +02:00
QHBoxLayout hbox;
SignalLabel label;
2017-01-15 16:38:30 +01:00
};
2018-06-19 18:55:45 +02:00
class RippleEffectLabel2 : public RippleEffectButton
{
public:
explicit RippleEffectLabel2(BaseWidget *parent = nullptr, int padding = 6);
Label &getLabel();
private:
Label label_;
};
} // namespace chatterino