Libksieve

vacationmaillineedit.cpp
1/*
2 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "vacationmaillineedit.h"
8#include <KStatefulBrush>
9
10#include <KColorScheme>
11
12using namespace KSieveUi;
13VacationMailLineEdit::VacationMailLineEdit(QWidget *parent)
14 : QLineEdit(parent)
15{
16}
17
18void VacationMailLineEdit::setInvalidEmail(bool state)
19{
20 if (state) {
22 setStyleSheet(QStringLiteral("QLineEdit{ background-color:%1 }").arg(bgBrush.brush(palette()).color().name()));
23 } else {
25 }
26}
27
28#include "moc_vacationmaillineedit.cpp"
QString name(StandardAction id)
void setStyleSheet(const QString &styleSheet)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.