From 4f1e2ee030f01facefab808f687d301c37707f74 Mon Sep 17 00:00:00 2001 From: am Date: Fri, 10 Jul 2009 15:53:58 +0000 Subject: -fixed selection handling -implemented proper window titles (not yet working) git-svn-id: file:///var/svn/repos2/shemov/trunk@382 f440f766-f032-0410-8965-dc7d17de2ca0 --- shemov.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index cafd47a..a005f8d 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -34,6 +34,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla createMenus(); connect(mFSWidget->fileView()->selectionModel(), SIGNAL(selectionChanged(const QItemSelection &, const QItemSelection &)), this, SLOT(updateSelectionCount(const QItemSelection &, const QItemSelection &))); + connect(mFSWidget, SIGNAL(windowTitle(const QString &)), this, SLOT(newWindowTitle(const QString &))); QWidget *centralWidget = new QWidget; centralWidget->setLayout(mainLayout); @@ -46,6 +47,10 @@ void SheMov::updateSelectionCount(const QItemSelection & /* sel */, const QItemS mSelectedItems->setText(QString::number(mFSWidget->fileView()->selectionModel()->selectedRows().count())); } +void SheMov::newWindowTitle(const QString &title){ + setWindowTitle(title); +} + void SheMov::createStatusbar(){ QLabel *selCountL = new QLabel(tr("Sel. Items")); mSelectedItems = new QLabel("0"); -- cgit v1.2.3-70-g09d2