Libkleo

errorlabel.cpp
1/*
2 This file is part of libkleopatra
3 SPDX-FileCopyrightText: 2022 g10 Code GmbH
4 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
5
6 SPDX-License-Identifier: GPL-2.0-or-later
7*/
8
9#include "errorlabel.h"
10
11#include <KColorScheme>
12
13using namespace Kleo;
14
15ErrorLabel::ErrorLabel(QWidget *parent)
16 : QLabel{parent}
17{
19 QPalette palette;
21 palette.setBrush(QPalette::WindowText, colors.foreground(KColorScheme::NegativeText));
22 setPalette(palette);
23}
24
25ErrorLabel::~ErrorLabel() = default;
26
27#include "moc_errorlabel.cpp"
void setBrush(ColorGroup group, ColorRole role, const QBrush &brush)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.