MCPcopy Create free account
hub / github.com/deskflow/deskflow / ValidationError

Method ValidationError

src/lib/gui/validators/ValidationError.cpp:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace validators {
13
14ValidationError::ValidationError(QObject *parent, QLabel *label) : QObject(parent), m_label(label)
15{
16 if (!m_label)
17 return;
18
19 m_label->clear();
20 m_label->setContentsMargins(5, 3, 5, 3);
21
22 auto palette = m_label->palette();
23 palette.setColor(QPalette::WindowText, Qt::white);
24 palette.setColor(QPalette::Window, QStringLiteral("crimson"));
25 m_label->setPalette(palette);
26}
27
28const QString &ValidationError::message() const
29{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected