summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-07-27 05:01:09 +0200
committerArno <am@disconnect.de>2013-07-27 05:01:09 +0200
commit8fba0fcb81e7b517804f34a5c8ad3741f92926da (patch)
tree8919264536b47420c2e624aa33766a2246d72fc1 /shemov.cpp
parent0afebd0e3cb3da831cd5ffba1eefbe9e61e408a1 (diff)
downloadSheMov-8fba0fcb81e7b517804f34a5c8ad3741f92926da.tar.gz
SheMov-8fba0fcb81e7b517804f34a5c8ad3741f92926da.tar.bz2
SheMov-8fba0fcb81e7b517804f34a5c8ad3741f92926da.zip
Fix window title
Set the main window title according to selected tab.
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);
;;