Mercurial > hg > easyhg
diff filestatuswidget.cpp @ 331:acfe9390d5c6
Basic implementation of annotate
author | Chris Cannam |
---|---|
date | Sun, 13 Mar 2011 10:31:32 +0000 |
parents | ea62eb083ed4 |
children | bb189827f6d1 |
line wrap: on
line diff
--- a/filestatuswidget.cpp Sat Mar 12 22:18:08 2011 +0000 +++ b/filestatuswidget.cpp Sun Mar 13 10:31:32 2011 +0000 @@ -117,13 +117,14 @@ connect(w, SIGNAL(itemSelectionChanged()), this, SLOT(itemSelectionChanged())); + connect(w, SIGNAL(itemDoubleClicked(QListWidgetItem *)), + this, SLOT(itemDoubleClicked(QListWidgetItem *))); FileStates::Activities activities = m_fileStates.activitiesSupportedBy(s); int prevGroup = -1; foreach (FileStates::Activity a, activities) { // Skip activities which are not yet implemented - if (a == FileStates::Annotate || - a == FileStates::Ignore || + if (a == FileStates::Ignore || a == FileStates::UnIgnore) { continue; } @@ -246,6 +247,12 @@ } } +void FileStatusWidget::itemDoubleClicked(QListWidgetItem *item) +{ + QStringList files; + files << item->text(); + emit annotateFiles(files); +} void FileStatusWidget::itemSelectionChanged() {