Files
deskflow/src/lib/gui/validators/ValidationError.h

31 lines
632 B
C++

/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
* SPDX-FileCopyrightText: (C) 2024 Symless Ltd.
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#pragma once
#include <QObject>
#include <QString>
class QLabel;
namespace validators {
class ValidationError : public QObject
{
public:
explicit ValidationError(QObject *parent, QLabel *label = nullptr);
const QString &message() const;
void setMessage(const QString &message);
private:
void clear();
QString m_message;
QLabel *m_label = nullptr;
};
} // namespace validators