From 6f803ec4db8158e2411b1332d77fe530030f064a Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 14 Jul 2018 07:18:38 +0200 Subject: Fix window title for FSWidget and MovieWidget. --- shemov.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index ef542da..67c8c7e 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -114,12 +114,14 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla }); connect(mFileWidget, &FSWidget::needRefreshFs, this, &SheMov::setFsFree); connect(mFileWidget, &FSWidget::needConfig, this, &SheMov::configure); + connect(mFileWidget, &FSWidget::needTitleChange, this, &SheMov::setWindowTitle); //MovieWidget splash.showMessage(tr("Constructing MovieWidget..."), Qt::AlignHCenter, Qt::yellow); qApp->processEvents(); mMovieWidget = new MovieWidget; mTab->addTab(mMovieWidget, "MW"); + connect(mMovieWidget, &MovieWidget::needTitleChange, this, &SheMov::setWindowTitle); //pictures splash.showMessage(tr("Creating Picture Archive..."), Qt::AlignHCenter, Qt::yellow); @@ -224,8 +226,10 @@ void SheMov::tabChanged(int newTab){ statusbarMessage(QString()); switch(newTab){ case FileManager: + setWindowTitle(mFileWidget->wTitle); break; case Movies: + setWindowTitle(mMovieWidget->wTitle); break; case Pictures: connect(mPVSelectAllA, &QAction::triggered, mPicWidget->picView(), &PictureView::setPVAll); -- cgit v1.2.3-70-g09d2