Deskflow 1.22.0.197
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) 2024 Symless Ltd.
4 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5 */
6
7#pragma once
8
9#include <QLabel>
10#include <QObject>
11#include <QString>
12
13namespace validators {
14
15class ValidationError : public QObject
16{
17 QString m_message;
18 QLabel *m_pLabel = nullptr;
19
20public:
21 explicit ValidationError(QObject *parent, QLabel *label = nullptr);
22 const QString &message() const;
23 void setMessage(const QString &message);
24};
25
26} // namespace validators
ValidationError(QObject *parent, QLabel *label=nullptr)
Definition ValidationError.cpp:23
void setMessage(const QString &message)
Definition ValidationError.cpp:36
const QString & message() const
Definition ValidationError.cpp:31
Definition AliasValidator.cpp:14