qskinny/src/controls/QskDirtyItemFilter.h

37 lines
888 B
C
Raw Normal View History

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
#define QSK_DIRTY_ITEM_FILTER_H 1
#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;
class QSK_EXPORT QskDirtyItemFilter : public QObject
{
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