Changeset View
Changeset View
Standalone View
Standalone View
effects.h
Show First 20 Lines • Show All 488 Lines • ▼ Show 20 Line(s) | 371 | public: | |||
---|---|---|---|---|---|
489 | Scene::Window* sceneWindow(); // internal | 489 | Scene::Window* sceneWindow(); // internal | ||
490 | 490 | | |||
491 | void elevate(bool elevate); | 491 | void elevate(bool elevate); | ||
492 | 492 | | |||
493 | void setData(int role, const QVariant &data) override; | 493 | void setData(int role, const QVariant &data) override; | ||
494 | QVariant data(int role) const override; | 494 | QVariant data(int role) const override; | ||
495 | 495 | | |||
496 | void registerThumbnail(AbstractThumbnailItem *item); | 496 | void registerThumbnail(AbstractThumbnailItem *item); | ||
497 | QHash<WindowThumbnailItem*, QWeakPointer<EffectWindowImpl> > const &thumbnails() const { | 497 | QHash<WindowThumbnailItem*, QPointer<EffectWindowImpl> > const &thumbnails() const { | ||
498 | return m_thumbnails; | 498 | return m_thumbnails; | ||
499 | } | 499 | } | ||
500 | QList<DesktopThumbnailItem*> const &desktopThumbnails() const { | 500 | QList<DesktopThumbnailItem*> const &desktopThumbnails() const { | ||
501 | return m_desktopThumbnails; | 501 | return m_desktopThumbnails; | ||
502 | } | 502 | } | ||
503 | 503 | | |||
504 | private Q_SLOTS: | 504 | private Q_SLOTS: | ||
505 | void thumbnailDestroyed(QObject *object); | 505 | void thumbnailDestroyed(QObject *object); | ||
506 | void thumbnailTargetChanged(); | 506 | void thumbnailTargetChanged(); | ||
507 | void desktopThumbnailDestroyed(QObject *object); | 507 | void desktopThumbnailDestroyed(QObject *object); | ||
508 | private: | 508 | private: | ||
509 | void insertThumbnail(WindowThumbnailItem *item); | 509 | void insertThumbnail(WindowThumbnailItem *item); | ||
510 | Toplevel* toplevel; | 510 | Toplevel* toplevel; | ||
511 | Scene::Window* sw; // This one is used only during paint pass. | 511 | Scene::Window* sw; // This one is used only during paint pass. | ||
512 | QHash<int, QVariant> dataMap; | 512 | QHash<int, QVariant> dataMap; | ||
513 | QHash<WindowThumbnailItem*, QWeakPointer<EffectWindowImpl> > m_thumbnails; | 513 | QHash<WindowThumbnailItem*, QPointer<EffectWindowImpl> > m_thumbnails; | ||
514 | QList<DesktopThumbnailItem*> m_desktopThumbnails; | 514 | QList<DesktopThumbnailItem*> m_desktopThumbnails; | ||
515 | bool managed = false; | 515 | bool managed = false; | ||
516 | bool waylandClient; | 516 | bool waylandClient; | ||
517 | bool x11Client; | 517 | bool x11Client; | ||
518 | }; | 518 | }; | ||
519 | 519 | | |||
520 | class EffectWindowGroupImpl | 520 | class EffectWindowGroupImpl | ||
521 | : public EffectWindowGroup | 521 | : public EffectWindowGroup | ||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |