mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
1043f9f803
* refactor: remove unnecessary includes in headers * fix: formatting * chore: changelog * fix: scrollbar * fix: suggestions and old appbase remains * fix: suggestion * fix: missing Qt forward declarations * fix: another qt include * fix: includes for precompiled-headers=off * Add missing `<memory>` includes * Add missing `#pragma once` * Fix tests Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
41 lines
681 B
C++
41 lines
681 B
C++
#pragma once
|
|
|
|
#include "widgets/helper/Button.hpp"
|
|
#include "widgets/helper/SignalLabel.hpp"
|
|
#include "widgets/Label.hpp"
|
|
|
|
#include <QHBoxLayout>
|
|
#include <QLabel>
|
|
#include <QPaintEvent>
|
|
#include <QWidget>
|
|
|
|
namespace chatterino {
|
|
|
|
class EffectLabel : public Button
|
|
{
|
|
public:
|
|
explicit EffectLabel(BaseWidget *parent = nullptr, int spacing = 6);
|
|
|
|
SignalLabel &getLabel()
|
|
{
|
|
return this->label_;
|
|
}
|
|
|
|
private:
|
|
QHBoxLayout hbox_;
|
|
SignalLabel label_;
|
|
};
|
|
|
|
class EffectLabel2 : public Button
|
|
{
|
|
public:
|
|
explicit EffectLabel2(BaseWidget *parent = nullptr, int padding = 6);
|
|
|
|
Label &getLabel();
|
|
|
|
private:
|
|
Label label_;
|
|
};
|
|
|
|
} // namespace chatterino
|