diff options
author | am <am@f440f766-f032-0410-8965-dc7d17de2ca0> | 2009-07-10 15:53:58 +0000 |
---|---|---|
committer | am <am@f440f766-f032-0410-8965-dc7d17de2ca0> | 2009-07-10 15:53:58 +0000 |
commit | 4f1e2ee030f01facefab808f687d301c37707f74 (patch) | |
tree | de032f70dc137e433b1875e3067e3cf33d130989 /shemov.cpp | |
parent | b6a85b8b76a4e86783c4c83048918d30bb36bdb8 (diff) | |
download | SheMov-4f1e2ee030f01facefab808f687d301c37707f74.tar.gz SheMov-4f1e2ee030f01facefab808f687d301c37707f74.tar.bz2 SheMov-4f1e2ee030f01facefab808f687d301c37707f74.zip |
-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
Diffstat (limited to 'shemov.cpp')
-rw-r--r-- | shemov.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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"); |