Mercurial > hg > easyhg
comparison filestatuswidget.cpp @ 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 |
comparison
equal
deleted
inserted
replaced
319:1aba0914dcfc | 323:adb14d3f780f |
---|---|
29 #include <QToolButton> | 29 #include <QToolButton> |
30 #include <QDir> | 30 #include <QDir> |
31 #include <QProcess> | 31 #include <QProcess> |
32 #include <QCheckBox> | 32 #include <QCheckBox> |
33 #include <QSettings> | 33 #include <QSettings> |
34 #include <QAction> | |
34 | 35 |
35 FileStatusWidget::FileStatusWidget(QWidget *parent) : | 36 FileStatusWidget::FileStatusWidget(QWidget *parent) : |
36 QWidget(parent), | 37 QWidget(parent), |
37 m_dateReference(0) | 38 m_dateReference(0) |
38 { | 39 { |
103 w->setSelectionMode(QListWidget::ExtendedSelection); | 104 w->setSelectionMode(QListWidget::ExtendedSelection); |
104 boxlayout->addWidget(w, 2, 0); | 105 boxlayout->addWidget(w, 2, 0); |
105 | 106 |
106 connect(w, SIGNAL(itemSelectionChanged()), | 107 connect(w, SIGNAL(itemSelectionChanged()), |
107 this, SLOT(itemSelectionChanged())); | 108 this, SLOT(itemSelectionChanged())); |
109 | |
110 w->insertAction(0, new QAction(tr("Commit"), w)); | |
111 w->setContextMenuPolicy(Qt::ActionsContextMenu); | |
108 | 112 |
109 boxlayout->addItem(new QSpacerItem(2, 2), 3, 0); | 113 boxlayout->addItem(new QSpacerItem(2, 2), 3, 0); |
110 | 114 |
111 boxesLayout->addWidget(box, ++boxRow, 0); | 115 boxesLayout->addWidget(box, ++boxRow, 0); |
112 m_boxes.push_back(box); | 116 m_boxes.push_back(box); |