Re: kwayland fix QMetaEnum

Vlad Zagorodniy <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
On 3/6/19 12:30 AM, Damian Ivanov wrote:
> Hello,

Hi,

>                  QMetaEnum metaEnum =
> QMetaEnum::fromType<KWayland::Client::PlasmaShellSurface::PanelBehavior>();
>                  int value = metaEnum.keyToValue("AutoHide");
>                  auto m_type =
> static_cast<KWayland::Client::PlasmaShellSurface::PanelBehavior>(value);
>                  m_plasmaShellSurface->setPanelBehavior(m_type);
Just out of curiousity, why would one do that?

Cheers,
Vlad
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.