Replaced QLabel with derived Label widget - for plain text formatting being configured as a default
This commit is contained in:
24
src/Insight/UserInterfaces/InsightWindow/Widgets/Label.hpp
Normal file
24
src/Insight/UserInterfaces/InsightWindow/Widgets/Label.hpp
Normal 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);
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user