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