Deskflow 1.26.0.134
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ValidationError.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4 * SPDX-FileCopyrightText: (C) 2024 Symless Ltd.
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
10#include <QObject>
11#include <QString>
12
13class QLabel;
14
15namespace validators {
16
17class ValidationError : public QObject
18{
19public:
20 explicit ValidationError(QObject *parent, QLabel *label = nullptr);
21 const QString &message() const;
22 void setMessage(const QString &message);
23
24private:
25 void clear();
26 QString m_message;
27 QLabel *m_label = nullptr;
28};
29
30} // namespace validators
ValidationError(QObject *parent, QLabel *label=nullptr)
Definition ValidationError.cpp:15
void setMessage(const QString &message)
Definition ValidationError.cpp:34
const QString & message() const
Definition ValidationError.cpp:29
Definition AliasValidator.cpp:17