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
qioscolordialog.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 QIOSCOLORDIALOG_H
6#define QIOSCOLORDIALOG_H
7
8#include <QtCore/qeventloop.h>
9#include <qpa/qplatformdialoghelper.h>
10
12
13QT_BEGIN_NAMESPACE
14
15class QIOSColorDialog : public QPlatformColorDialogHelper
16{
17public:
18 QIOSColorDialog();
19 ~QIOSColorDialog();
20
21 void exec() override;
22 bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override;
23 void hide() override;
24
25 void setCurrentColor(const QColor&) override;
26 QColor currentColor() const override;
27
28 void updateColor(const QColor&);
29
30private:
31 QEventLoop m_eventLoop;
32 QIOSColorDialogController *m_viewController;
33 QColor m_currentColor;
34};
35
36QT_END_NAMESPACE
37
38#endif // QIOSCOLORDIALOG_H
Q_FORWARD_DECLARE_OBJC_CLASS(NSObject)