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 ?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.