Re: Re: kwayland fix QMetaEnum
Damian Ivanov <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <CAPVS_ccxBRh15xSEAKad=Vmj111-8Gsk8FUwvWOYOeBkk4ANwg@mail.gmail.com> |
storing settings, usually user settings are strings, see edited below > QMetaEnum metaEnum = > QMetaEnum::fromType<KWayland::Client::PlasmaShellSurface::PanelBehavior>(); > int value = metaEnum.keyToValue(readFromSettingString); > auto m_type = > static_cast<KWayland::Client::PlasmaShellSurface::PanelBehavior>(value); > m_plasmaShellSurface->setPanelBehavior(m_type); does that mean you would add Q_ENUM ?