Replaced QLabel with derived Label widget - for plain text formatting being configured as a default

This commit is contained in:
Nav
2022-05-03 20:00:52 +01:00
parent b6879991a2
commit d24ffd4ebc
47 changed files with 189 additions and 123 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
#include <QLabel>
namespace Bloom::Widgets
{
class Label: public QLabel
{
Q_OBJECT
public:
explicit Label(QWidget* parent = nullptr)
: QLabel(parent)
{
this->setTextFormat(Qt::TextFormat::PlainText);
};
Label(const QString& text, QWidget* parent = nullptr)
: Label(parent)
{
this->setText(text);
};
};
}