Martchus
dd936b4a81
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.
29 lines
526 B
C++
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
|