Krita Source Code Documentation
Loading...
Searching...
No Matches
KisRootSurfaceInfoProxy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KISROOTSURFACEINFOPROXY_H
7#define KISROOTSURFACEINFOPROXY_H
8
9#include <kritaui_export.h>
11
13class KoColorProfile;
14
41{
42 Q_OBJECT
43public:
44 KisRootSurfaceInfoProxy(QWidget *watched, QObject *parent = nullptr);
46 const KoColorProfile* rootSurfaceProfile() const;
47 bool isReady() const;
48
49 QString colorManagementReport() const;
50 QString osPreferredColorSpaceReport() const;
51
52Q_SIGNALS:
53 void sigRootSurfaceProfileChanged(const KoColorProfile *profile) const;
54
55private:
56
57 void connectToNativeWindow(QWindow *nativeWindow) override;
58 void disconnectFromNativeWindow() override;
59 void tryUpdateRootSurfaceProfile();
60
61private:
63 QMetaObject::Connection m_surfaceManagerConnection;
64
65 const KoColorProfile* m_rootSurfaceProfile {nullptr};
66};
67
68#endif /* KISROOTSURFACEINFOPROXY_H */
QMetaObject::Connection m_surfaceManagerConnection
QPointer< KisSRGBSurfaceColorSpaceManager > m_topLevelSurfaceManager
void sigRootSurfaceProfileChanged(const KoColorProfile *profile) const
virtual void disconnectFromNativeWindow()=0
virtual void connectToNativeWindow(QWindow *nativeWindow)=0