From e820ebe71f33d702b4271f89d707860b08550064 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 7 Jul 2019 15:24:51 +0200 Subject: [PATCH] Fix lupdate problem for real The enum class still seems to be the cause of the problem so this still needs to be worked around. --- gui/mainwindow.cpp | 6 ------ gui/mainwindow.h | 6 ++++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 028c081..77dae60 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -63,12 +63,6 @@ namespace QtGui { * \brief The MainWindow class provides the main window of the widgets-based GUI of the application. */ -/* - * TRANSLATOR QtGui::MainWindow - * This comment is needed by lupdate to prevent "Qualifying with unknown namespace/class ::MainWindow". - * Even with Qt 5.13.0 this still seems required. - */ - /*! * \brief Copies the selected cells to the clipboard. */ diff --git a/gui/mainwindow.h b/gui/mainwindow.h index afc839b..b4ffb37 100644 --- a/gui/mainwindow.h +++ b/gui/mainwindow.h @@ -19,10 +19,12 @@ QT_FORWARD_DECLARE_CLASS(QUndoStack) QT_FORWARD_DECLARE_CLASS(QUndoView) QT_FORWARD_DECLARE_CLASS(QSettings) +#define PASSWORD_MANAGER_ENUM_CLASS enum class namespace Io { -enum class EntryType : int; -enum class FieldType : int; +PASSWORD_MANAGER_ENUM_CLASS EntryType : int; +PASSWORD_MANAGER_ENUM_CLASS FieldType : int; } // namespace Io +#undef PASSWORD_MANAGER_ENUM_CLASS namespace QtUtilities { class RecentMenuManager;