Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qwidgetplatformdialog.cpp
Go to the documentation of this file.
1
// Copyright (C) 2017 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
4
#
include
"qwidgetplatformdialog_p.h"
5
6
#
include
<
QtGui
/
qwindow
.
h
>
7
#
include
<
QtWidgets
/
qdialog
.
h
>
8
9
QT_BEGIN_NAMESPACE
10
11
bool
QWidgetPlatformDialog
::show(QDialog *dialog, Qt::WindowFlags flags, Qt::WindowModality modality, QWindow *parent)
12
{
13
dialog->setWindowFlags(flags);
14
dialog->setWindowModality(modality);
15
16
dialog->createWinId();
17
QWindow *handle = dialog->windowHandle();
18
Q_ASSERT(handle);
19
handle->setTransientParent(
const_cast
<QWindow *>(parent));
20
21
dialog->show();
22
return
true
;
23
}
24
25
QT_END_NAMESPACE
QWidgetPlatformDialog
Definition
qwidgetplatformdialog_p.h:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
labs
platform
widgets
qwidgetplatformdialog.cpp
Generated on
for Qt by
1.18.0