deskflow/src/lib/gui/validators/EmptyStringValidator.cpp

22 lines
482 B
C++
Raw Normal View History

/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2021 Synergy App Ltd
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#include "EmptyStringValidator.h"
namespace validators {
EmptyStringValidator::EmptyStringValidator(const QString &message) : IStringValidator(message)
{
2025-05-20 14:39:18 +00:00
// do nothing
}
bool EmptyStringValidator::validate(const QString &input) const
{
return !input.isEmpty();
}
} // namespace validators