Adds Q_OBJECT and generated includes to flm custom impls

This commit is contained in:
berrux-dev committed 2026-09-18 17:47:34 +02:00
1 parent d79d89c352
commit e156fbb5e4
5 files changed
+27 -29

No files matched your search

@@ -7,7 +7,6 @@
*/
#include "flm_db_impl_custom.h"
#include <FileManagement/flm_db_impl.h>
#include <ngldb/nsqlquery.h>
#include <ngldb/sql_query_janitor.h>
#include <QtCore/QRegularExpression>
@@ -27,7 +26,7 @@ bool DatabaseInterfaceImplCustom::updateStatus(int fileId, const FileStatus &sta
DEBUG_LOG(m_logger) << "Update statement: " << stmtUpdate;
DEBUG_LOG(m_logger) << "File Id = " << fileId;
DEBUG_LOG(m_logger) << "New status = " << status;
DEBUG_LOG(m_logger) << "New status = " << static_cast<int>(status);
DEBUG_LOG(m_logger) << "Operator Id = " << operatorId;
if (!m_query)
@@ -60,9 +59,9 @@ bool DatabaseInterfaceImplCustom::updateStatus(int fileId, const FileStatus &sta
DEBUG_LOG(m_logger) << "File name before = " << fileName;
if (status == 1) // Delete
if (status == FileStatus::Deleted) // Delete
fileName = QStringLiteral("{")+QString::number(fileId)+QStringLiteral("}_")+fileName;
if (status == 0 && fileName.startsWith(QStringLiteral("{"))) // Restore
if (status == FileStatus::Valid && fileName.startsWith(QStringLiteral("{"))) // Restore
fileName.remove(QRegularExpression(QStringLiteral("^[{](\\d+)[}][_]")));
DEBUG_LOG(m_logger) << "File name after = " << fileName;