Deskflow 1.25.0.128
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 <QLabel>
11#include <QObject>
12#include <QString>
13
14namespace validators {
15
16class ValidationError : public QObject
17{
18public:
19 explicit ValidationError(QObject *parent, QLabel *label = nullptr);
20 const QString &message() const;
21 void setMessage(const QString &message);
22
23private:
24 void clear();
25 QString m_message;
26 QLabel *m_label = nullptr;
27};
28
29} // namespace validators
ValidationError(QObject *parent, QLabel *label=nullptr)
Definition ValidationError.cpp:14
void setMessage(const QString &message)
Definition ValidationError.cpp:33
const QString & message() const
Definition ValidationError.cpp:28
Definition AliasValidator.cpp:15