QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskDirtyItemFilter.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_DIRTY_ITEM_FILTER_H
7#define QSK_DIRTY_ITEM_FILTER_H
8
9#include "QskGlobal.h"
10
11#include <qobject.h>
12#include <qset.h>
13
14class QQuickWindow;
15class QQuickItem;
16
17class QskDirtyItemFilter : public QObject
18{
19 using Inherited = QObject;
20
21 public:
22 QskDirtyItemFilter( QObject* parent = nullptr );
23 ~QskDirtyItemFilter() override;
24
25 void addWindow( QQuickWindow* window );
26
27 static void filterDirtyList( QQuickWindow*,
28 bool ( *isBlocked )( const QQuickItem* ) );
29
30 private:
31 void beforeSynchronizing( QQuickWindow* );
32
33 QSet< QObject* > m_windows;
34};
35
36#endif