2021-03-24 12:38:50 +00:00
|
|
|
/*
|
|
|
|
|
* synergy -- mouse and keyboard sharing utility
|
2024-08-09 08:08:29 +00:00
|
|
|
* Copyright (C) 2021 Symless Ltd.
|
2021-03-24 12:38:50 +00:00
|
|
|
*
|
|
|
|
|
* This package is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
|
* found in the file LICENSE that should have accompanied this file.
|
|
|
|
|
*
|
|
|
|
|
* This package is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
2024-08-09 08:08:29 +00:00
|
|
|
|
2021-03-24 12:38:50 +00:00
|
|
|
#include "SpacesValidator.h"
|
|
|
|
|
|
2024-07-02 19:07:06 +00:00
|
|
|
namespace validators {
|
2021-03-24 12:38:50 +00:00
|
|
|
|
2024-07-02 19:07:06 +00:00
|
|
|
SpacesValidator::SpacesValidator(const QString &message)
|
|
|
|
|
: IStringValidator(message) {}
|
2021-03-24 12:38:50 +00:00
|
|
|
|
2024-07-02 19:07:06 +00:00
|
|
|
bool SpacesValidator::validate(const QString &input) const {
|
|
|
|
|
return !input.contains(' ');
|
2021-03-24 12:38:50 +00:00
|
|
|
}
|
|
|
|
|
|
2024-07-02 19:07:06 +00:00
|
|
|
} // namespace validators
|