Skip to content

armgit / krita

Public Imported from GitHub
0

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++
848 B
Raw Blame
/* 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