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
4#ifndef PREVIEWFRAME_H
5#define PREVIEWFRAME_H
6
7#include <QtWidgets/qframe.h>
8#include <QtCore/qpointer.h>
9
10QT_BEGIN_NAMESPACE
11
12class QMdiArea;
13class QMdiSubWindow;
14
15namespace qdesigner_internal {
16
17class PreviewFrame: public QFrame
18{
20public:
21 explicit PreviewFrame(QWidget *parent);
22
23 void setPreviewPalette(const QPalette &palette);
24 void setSubWindowActive(bool active);
25
26private:
27 // The user can on some platforms close the mdi child by invoking the system menu.
28 // Ensure a child is present.
29 QMdiSubWindow *ensureMdiSubWindow();
30 QMdiArea *m_mdiArea;
31 QPointer<QMdiSubWindow> m_mdiSubWindow;
32};
33
34} // namespace qdesigner_internal
35
36QT_END_NAMESPACE
37
38#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.