Chatterino
EffectLabel.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "widgets/BaseWidget.hpp"
4 #include "widgets/Label.hpp"
7 
8 #include <QHBoxLayout>
9 #include <QLabel>
10 #include <QPaintEvent>
11 #include <QWidget>
12 
13 namespace chatterino {
14 
15 class EffectLabel : public Button
16 {
17 public:
18  explicit EffectLabel(BaseWidget *parent = nullptr, int spacing = 6);
19 
21  {
22  return this->label_;
23  }
24 
25 private:
26  QHBoxLayout hbox_;
27  SignalLabel label_;
28 };
29 
30 class EffectLabel2 : public Button
31 {
32 public:
33  explicit EffectLabel2(BaseWidget *parent = nullptr, int padding = 6);
34 
35  Label &getLabel();
36 
37 private:
38  Label label_;
39 };
40 
41 } // namespace chatterino
Definition: Label.hpp:10
Definition: EffectLabel.hpp:30
Definition: SignalLabel.hpp:10
Definition: EffectLabel.hpp:15
Definition: Application.cpp:48
EffectLabel(BaseWidget *parent=nullptr, int spacing=6)
Definition: EffectLabel.cpp:8
SignalLabel & getLabel()
Definition: EffectLabel.hpp:20
Definition: Button.hpp:16
Definition: BaseWidget.hpp:14