2017-07-21 18:21:34 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef QSK_DIRTY_ITEM_FILTER_H
|
2019-06-22 16:14:56 +02:00
|
|
|
#define QSK_DIRTY_ITEM_FILTER_H
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
#include "QskGlobal.h"
|
|
|
|
|
2018-07-19 14:10:48 +02:00
|
|
|
#include <qobject.h>
|
|
|
|
#include <qset.h>
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
class QQuickWindow;
|
|
|
|
class QQuickItem;
|
|
|
|
|
2019-06-22 16:14:56 +02:00
|
|
|
class QskDirtyItemFilter : public QObject
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
using Inherited = QObject;
|
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
public:
|
2017-07-21 18:21:34 +02:00
|
|
|
QskDirtyItemFilter( QObject* parent = nullptr );
|
2018-07-31 17:32:25 +02:00
|
|
|
~QskDirtyItemFilter() override;
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
void addWindow( QQuickWindow* window );
|
|
|
|
|
|
|
|
static void filterDirtyList( QQuickWindow*,
|
|
|
|
bool ( *isBlocked )( const QQuickItem* ) );
|
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
private:
|
2017-07-21 18:21:34 +02:00
|
|
|
void beforeSynchronizing( QQuickWindow* );
|
|
|
|
|
|
|
|
QSet< QObject* > m_windows;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|