Commit 4b9a016d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated enum (scripted)

parent 3a92ecd3
...@@ -109,30 +109,30 @@ void OverwriteQuery::execute() ...@@ -109,30 +109,30 @@ void OverwriteQuery::execute()
bool OverwriteQuery::responseCancelled() bool OverwriteQuery::responseCancelled()
{ {
return m_data.value(QStringLiteral( "response" )).toInt() == KIO::R_CANCEL; return m_data.value(QStringLiteral( "response" )).toInt() == KIO::Result_Cancel;
} }
bool OverwriteQuery::responseOverwriteAll() bool OverwriteQuery::responseOverwriteAll()
{ {
return m_data.value(QStringLiteral( "response" )).toInt() == KIO::R_OVERWRITE_ALL; return m_data.value(QStringLiteral( "response" )).toInt() == KIO::Result_OverwriteAll;
} }
bool OverwriteQuery::responseOverwrite() bool OverwriteQuery::responseOverwrite()
{ {
return m_data.value(QStringLiteral( "response" )).toInt() == KIO::R_OVERWRITE; return m_data.value(QStringLiteral( "response" )).toInt() == KIO::Result_Overwrite;
} }
bool OverwriteQuery::responseRename() bool OverwriteQuery::responseRename()
{ {
return m_data.value(QStringLiteral( "response" )).toInt() == KIO::R_RENAME; return m_data.value(QStringLiteral( "response" )).toInt() == KIO::Result_Rename;
} }
bool OverwriteQuery::responseSkip() bool OverwriteQuery::responseSkip()
{ {
return m_data.value(QStringLiteral( "response" )).toInt() == KIO::R_SKIP; return m_data.value(QStringLiteral( "response" )).toInt() == KIO::Result_Skip;
} }
bool OverwriteQuery::responseAutoSkip() bool OverwriteQuery::responseAutoSkip()
{ {
return m_data.value(QStringLiteral( "response" )).toInt() == KIO::R_AUTO_SKIP; return m_data.value(QStringLiteral( "response" )).toInt() == KIO::Result_AutoSkip;
} }
QString OverwriteQuery::newFilename() QString OverwriteQuery::newFilename()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment