Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/* This file is part of the KDE project
SPDX-FileCopyrightText: 2017 Nikita Vertikov <[email protected]>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KISQTWIDGETTWEAKER_H
#define KISQTWIDGETTWEAKER_H
#include <QObject>
#include "kritaui_export.h"
class QEvent;
/**
* KisQtWidgetsTweaker is used to make minor adjustments to
* "native" qt widgets' behavior application-wise
* by filtering events addressed to them
* It expected to be installed on the application
*/
class KRITAUI_EXPORT KisQtWidgetsTweaker : public QObject
{
Q_OBJECT
public:
KisQtWidgetsTweaker(QObject* parent = nullptr);
~KisQtWidgetsTweaker();
bool eventFilter(QObject *receiver, QEvent* event) override;
static KisQtWidgetsTweaker *instance();
private:
struct Private;
Private* d;
};
#endif //KISQTWIDGETTWEAKER_H