changeset 323:adb14d3f780f filelist_right_button_menu

* Trivial change, just checkpointing
author Chris Cannam
date Thu, 10 Mar 2011 15:33:02 +0000
parents 1aba0914dcfc
children 306ffd913071
files filestatuswidget.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/filestatuswidget.cpp	Wed Mar 02 13:25:49 2011 +0000
+++ b/filestatuswidget.cpp	Thu Mar 10 15:33:02 2011 +0000
@@ -31,6 +31,7 @@
 #include <QProcess>
 #include <QCheckBox>
 #include <QSettings>
+#include <QAction>
 
 FileStatusWidget::FileStatusWidget(QWidget *parent) :
     QWidget(parent),
@@ -106,6 +107,9 @@
         connect(w, SIGNAL(itemSelectionChanged()),
                 this, SLOT(itemSelectionChanged()));
 
+        w->insertAction(0, new QAction(tr("Commit"), w));
+        w->setContextMenuPolicy(Qt::ActionsContextMenu);
+
         boxlayout->addItem(new QSpacerItem(2, 2), 3, 0);
 
         boxesLayout->addWidget(box, ++boxRow, 0);