mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
kcontrol: prefix QValidator enum references in InputValidator::validate()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
679bcaab48
commit
768075bad8
1 changed files with 5 additions and 4 deletions
|
@ -54,15 +54,16 @@ K_PLUGIN_FACTORY_DECLARATION (KioConfigFactory)
|
||||||
class InputValidator : public QValidator
|
class InputValidator : public QValidator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
State validate(QString& input, int& pos) const {
|
QValidator::State validate(QString& input, int& pos) const
|
||||||
|
{
|
||||||
if (input.isEmpty())
|
if (input.isEmpty())
|
||||||
return Acceptable;
|
return QValidator::Acceptable;
|
||||||
|
|
||||||
const QChar ch = input.at((pos > 0 ? pos - 1 : pos));
|
const QChar ch = input.at((pos > 0 ? pos - 1 : pos));
|
||||||
if (ch.isSpace())
|
if (ch.isSpace())
|
||||||
return Invalid;
|
return QValidator::Invalid;
|
||||||
|
|
||||||
return Acceptable;
|
return QValidator::Acceptable;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue