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

42 lines
715 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"
2018-06-26 17:20:03 +02:00
#include "widgets/Label.hpp"
2018-08-08 15:35:54 +02:00
#include "widgets/helper/Button.hpp"
2018-06-26 14:09:39 +02:00
#include "widgets/helper/SignalLabel.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
2018-08-08 15:35:54 +02:00
class EffectLabel : public Button
2017-01-15 16:38:30 +01:00
{
public:
2018-08-08 15:35:54 +02:00
explicit EffectLabel(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
{
2018-07-06 19:23:47 +02:00
return this->label_;
2017-01-15 16:38:30 +01:00
}
private:
2018-07-06 19:23:47 +02:00
QHBoxLayout hbox_;
SignalLabel label_;
2017-01-15 16:38:30 +01:00
};
2018-08-08 15:35:54 +02:00
class EffectLabel2 : public Button
2018-06-19 18:55:45 +02:00
{
public:
2018-08-08 15:35:54 +02:00
explicit EffectLabel2(BaseWidget *parent = nullptr, int padding = 6);
2018-06-19 18:55:45 +02:00
Label &getLabel();
private:
Label label_;
};
} // namespace chatterino