syncthingtray/syncthingwidgets/settings/wizardenums.h
Martchus dd936b4a81 Workaround lupdate not understanding "enum class" in some cases
Apparently this is still problematic leading to errors like
`Qualifying with unknown namespace/class`. It seems that moving the enum to
a different header file works. The trick to use a macro to define
`enum class` ceased to work on the other hand.

Specifying a function with the namespace like
`void QtGui::FinalWizardPage::showResults()` leads to the same problem and
also needs to be avoided.
2023-06-07 23:14:48 +02:00

29 lines
526 B
C++

#ifndef SETTINGS_WIZARD_ENUMS_H
#define SETTINGS_WIZARD_ENUMS_H
#include <c++utilities/misc/flagenumclass.h>
#include <QtGlobal>
namespace QtGui {
enum class MainConfiguration : quint64 {
None,
CurrentlyRunning,
LauncherExternal,
LauncherBuiltIn,
SystemdUserUnit,
SystemdSystemUnit,
};
enum class ExtraConfiguration : quint64 {
None,
SystemdIntegration = (1 << 0),
};
} // namespace QtGui
CPP_UTILITIES_MARK_FLAG_ENUM_CLASS(QtGui, QtGui::ExtraConfiguration)
#endif // SETTINGS_WIZARD_H