summaryrefslogtreecommitdiffstats
path: root/archiveview.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-05-06 04:27:07 +0200
committerArno <arno@disconnect.de>2016-05-06 04:27:07 +0200
commit99fcbe41868834e52adaa9bc9f7cd186dd4eb3c9 (patch)
treeb2504d18bca94b1e49d3722d224340f9405d6d7e /archiveview.cpp
parentce6fba33a51bb586c1e2bc4977e4cd4d15594b00 (diff)
downloadSheMov-99fcbe41868834e52adaa9bc9f7cd186dd4eb3c9.tar.gz
SheMov-99fcbe41868834e52adaa9bc9f7cd186dd4eb3c9.tar.bz2
SheMov-99fcbe41868834e52adaa9bc9f7cd186dd4eb3c9.zip
Add clear button to NewMovieWizard
Only show it when called from the wizard.
Diffstat (limited to 'archiveview.cpp')
-rw-r--r--archiveview.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/archiveview.cpp b/archiveview.cpp
index 3090c26..db56561 100644
--- a/archiveview.cpp
+++ b/archiveview.cpp
@@ -650,7 +650,7 @@ ArchiveFilesProxy::ArchiveFilesProxy(QObject *parent) : QSortFilterProxyModel(pa
/* Mapping Editor Widget */
-MappingEditorWidget::MappingEditorWidget(const QString &caption, QWidget *parent) : QWidget(parent), mCaption(caption){
+MappingEditorWidget::MappingEditorWidget(const QString &caption, bool showClearButton, QWidget *parent) : QWidget(parent), mCaption(caption){
// the view
mModel = new QStandardItemModel(this);
mModel->setHorizontalHeaderItem(0, new QStandardItem(mCaption));
@@ -676,6 +676,11 @@ MappingEditorWidget::MappingEditorWidget(const QString &caption, QWidget *parent
// edit buttons
QHBoxLayout *editButtonLayout = new QHBoxLayout;
editButtonLayout->addStretch();
+ mClear = new QPushButton(tr("Clear"));
+ connect(mClear, SIGNAL(clicked()), this, SLOT(clear()));
+ if(showClearButton){
+ editButtonLayout->addWidget(mClear);
+ }
mRemove = new QPushButton(tr("&Remove"));
connect(mRemove, SIGNAL(clicked()), this, SLOT(removeItem()));
editButtonLayout->addWidget(mRemove);