diff options
Diffstat (limited to 'src/gui/kernel/qplatformwindow.cpp')
| -rw-r--r-- | src/gui/kernel/qplatformwindow.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformwindow.cpp b/src/gui/kernel/qplatformwindow.cpp index 5c0ae2ee2a5..201a581f9a0 100644 --- a/src/gui/kernel/qplatformwindow.cpp +++ b/src/gui/kernel/qplatformwindow.cpp @@ -303,11 +303,30 @@ void QPlatformWindow::setParent(const QPlatformWindow *parent) The implementation might want to append the application display name to the window title, like Windows and Linux do. + \l QPlatformWindow::windowTitle() can be used to retrieve the + actual window title. + \sa QGuiApplication::applicationDisplayName() + \sa QPlatformWindow::windowTitle() */ void QPlatformWindow::setWindowTitle(const QString &title) { Q_UNUSED(title); } /*! + Reimplement to return the actual window title used in the underlying + windowing system unless the title set for the QWindow which + belongs to this QPlatformWindow (i.e. the window returned by + \l QPlatformWindow::window) is always used without modification. + + \sa QPlatformWindow::setWindowTitle() + + \since 6.9 +*/ +QString QPlatformWindow::windowTitle() const +{ + return window()->title(); +} + +/*! Reimplement to set the window file path to \a filePath */ void QPlatformWindow::setWindowFilePath(const QString &filePath) { Q_UNUSED(filePath); } |
