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
previewframe.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:significant reason:default
4
5#ifndef PREVIEWFRAME_H
6#define PREVIEWFRAME_H
7
8#include <QtWidgets/qframe.h>
9#include <QtCore/qpointer.h>
10
11QT_BEGIN_NAMESPACE
12
13class QMdiArea;
14class QMdiSubWindow;
15
16namespace qdesigner_internal {
17
18class PreviewFrame: public QFrame
19{
21public:
22 explicit PreviewFrame(QWidget *parent);
23
24 void setPreviewPalette(const QPalette &palette);
25 void setSubWindowActive(bool active);
26
27private:
28 // The user can on some platforms close the mdi child by invoking the system menu.
29 // Ensure a child is present.
30 QMdiSubWindow *ensureMdiSubWindow();
31 QMdiArea *m_mdiArea;
32 QPointer<QMdiSubWindow> m_mdiSubWindow;
33};
34
35} // namespace qdesigner_internal
36
37QT_END_NAMESPACE
38
39#endif
void setPreviewPalette(const QPalette &palette)
bool viewportEvent(QEvent *event) override
PreviewMdiArea(QWidget *parent=nullptr)
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.