Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcocoacolordialoghelper.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QCOCOACOLORDIALOGHELPER_H
6#define QCOCOACOLORDIALOGHELPER_H
7
8#include <QObject>
9#include <qpa/qplatformdialoghelper.h>
10
11QT_BEGIN_NAMESPACE
12
13class QCocoaColorDialogHelper : public QPlatformColorDialogHelper
14{
15public:
16 QCocoaColorDialogHelper();
17 ~QCocoaColorDialogHelper();
18
19 void exec() override;
20 bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override;
21 void hide() override;
22
23 void setCurrentColor(const QColor&) override;
24 QColor currentColor() const override;
25};
26
27QT_END_NAMESPACE
28
29#endif // QCOCOACOLORDIALOGHELPER_H
Q_GLOBAL_STATIC(QReadWriteLock, g_updateMutex)