Libksieve

lineeditvalidator.h
1 /*
2  SPDX-FileCopyrightText: 2017-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "ksieveui_private_export.h"
10 #include <QLineEdit>
12 namespace KSieveUi
13 {
14 class KSIEVEUI_TESTS_EXPORT LineEditValidator : public QLineEdit
15 {
16  Q_OBJECT
17 public:
18  explicit LineEditValidator(QWidget *parent = nullptr);
19  ~LineEditValidator() override;
20 
21  Q_REQUIRED_RESULT bool setRegularExpressionPattern(const QString &pattern);
22 
23 private:
24  void initialize();
25  QRegularExpressionValidator *mValidator = nullptr;
26 };
27 }
KCRASH_EXPORT void initialize()
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Apr 17 2021 23:09:33 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.