summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 8865d0c..40ad231 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -105,6 +105,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla
//experimental archive
connect(c, SIGNAL(sizeChanged(qint64)), this, SLOT(setSize(qint64)));
connect(c, SIGNAL(durationChanged(qint64,bool)), this, SLOT(setDuration(qint64,bool)));
+ connect(c->archiveTreeModel(), SIGNAL(windowTitle(QString)), this, SLOT(setWindowTitle(QString)));
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addWidget(mTab);
@@ -143,10 +144,10 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla
splash.finish(this);
mATree->readSettings();
mFSWidget->readSettings();
- readSettings();
mFSWidget->fileView()->setFocus(Qt::ActiveWindowFocusReason);
mPicWidget->readSettings();
mArchive->readSettings();
+ readSettings();
Helper::centerWidget(picViewer);
}
@@ -206,12 +207,15 @@ void SheMov::tabChanged(int newTab){
case FileManager:
connect(mPVSelectAllA, SIGNAL(triggered()), mFSWidget, SLOT(selectAllPV()));
mFSWidget->fileView()->selectedFilesChanged();
+ mFSWidget->setWindowTitle();
break;
case Experimental:
c->fileSelectionChanged(QItemSelection(), QItemSelection());
+ c->archiveTreeModel()->setWindowTitle();
break;
case Pictures:
connect(mPVSelectAllA, SIGNAL(triggered()), mPicWidget->picView(), SLOT(setPVAll()));
+ mPicWidget->constructWindowTitle();
default:
setDuration(0x0, false);
;;