1313void ProxyFloatingWindow::connectWindow () {
1414 this ->ProxyWindowBase ::connectWindow ();
1515
16+ this ->window ->setTitle (this ->bTitle );
1617 this ->window ->setMinimumSize (this ->bMinimumSize );
1718 this ->window ->setMaximumSize (this ->bMaximumSize );
1819}
@@ -29,6 +30,11 @@ void ProxyFloatingWindow::trySetHeight(qint32 implicitHeight) {
2930 }
3031}
3132
33+ void ProxyFloatingWindow::onTitleChanged () {
34+ if (this ->window ) this ->window ->setTitle (this ->bTitle );
35+ emit this ->titleChanged ();
36+ }
37+
3238void ProxyFloatingWindow::onMinimumSizeChanged () {
3339 if (this ->window ) this ->window ->setMinimumSize (this ->bMinimumSize );
3440 emit this ->minimumSizeChanged ();
@@ -59,6 +65,7 @@ FloatingWindowInterface::FloatingWindowInterface(QObject* parent)
5965 QObject::connect (this ->window , &ProxyWindowBase::maskChanged, this , &FloatingWindowInterface::maskChanged);
6066 QObject::connect (this ->window , &ProxyWindowBase::surfaceFormatChanged, this , &FloatingWindowInterface::surfaceFormatChanged);
6167
68+ QObject::connect (this ->window , &ProxyFloatingWindow::titleChanged, this , &FloatingWindowInterface::titleChanged);
6269 QObject::connect (this ->window , &ProxyFloatingWindow::minimumSizeChanged, this , &FloatingWindowInterface::minimumSizeChanged);
6370 QObject::connect (this ->window , &ProxyFloatingWindow::maximumSizeChanged, this , &FloatingWindowInterface::maximumSizeChanged);
6471 // clang-format on
0 commit comments