summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp4
1 files changed, 4 insertions, 0 deletions
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);