void QPlatformWindow::setWindowTitle(const QString &title) { Q_UNUSED(title); }
/*!
+ Reimplement to set the window file path to \a filePath
+*/
+void QPlatformWindow::setWindowFilePath(const QString &filePath) { Q_UNUSED(filePath); }
+
+/*!
Reimplement to set the window icon to \a icon
*/
void QPlatformWindow::setWindowIcon(const QIcon &icon) { Q_UNUSED(icon); }
virtual void setParent(const QPlatformWindow *window);
virtual void setWindowTitle(const QString &title);
+ virtual void setWindowFilePath(const QString &title);
virtual void setWindowIcon(const QIcon &icon);
virtual void raise();
virtual void lower();
}
/*!
+ \property QWindow::windowFilePath
+ \brief the file name this window is representing.
+
+ This property might be used by the windowing system to display the file
+ path of the document this window is representing in the tile bar.
+*/
+void QWindow::setWindowFilePath(const QString &filePath)
+{
+ Q_D(QWindow);
+ d->windowFilePath = filePath;
+ if (d->platformWindow)
+ d->platformWindow->setWindowFilePath(filePath);
+}
+
+QString QWindow::windowFilePath() const
+{
+ Q_D(const QWindow);
+ return d->windowFilePath;
+}
+
+/*!
\property QWindow::windowIcon
\brief the window's icon in the windowing system
Q_DECLARE_PRIVATE(QWindow)
Q_PROPERTY(QString windowTitle READ windowTitle WRITE setWindowTitle)
+ Q_PROPERTY(QString windowFilePath READ windowFilePath WRITE setWindowFilePath)
Q_PROPERTY(QIcon windowIcon READ windowIcon WRITE setWindowIcon)
Q_PROPERTY(Qt::WindowModality windowModality READ windowModality WRITE setWindowModality NOTIFY windowModalityChanged)
Q_PROPERTY(int x READ x WRITE setX NOTIFY xChanged)
void resize(const QSize &newSize);
inline void resize(int w, int h) { resize(QSize(w, h)); }
+ void setWindowFilePath(const QString &filePath);
+ QString windowFilePath() const;
+
void setWindowIcon(const QIcon &icon);
QIcon windowIcon() const;
bool exposed;
QSurfaceFormat requestedFormat;
QString windowTitle;
+ QString windowFilePath;
QIcon windowIcon;
QRect geometry;
Qt::WindowState windowState;