From 99fcbe41868834e52adaa9bc9f7cd186dd4eb3c9 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 6 May 2016 04:27:07 +0200 Subject: Add clear button to NewMovieWizard Only show it when called from the wizard. --- archiveview.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archiveview.h') diff --git a/archiveview.h b/archiveview.h index 4b8f81b..35c4629 100644 --- a/archiveview.h +++ b/archiveview.h @@ -160,7 +160,7 @@ class ArchiveFilesProxy : public QSortFilterProxyModel { class MappingEditorWidget : public QWidget { Q_OBJECT public: - explicit MappingEditorWidget(const QString &caption, QWidget *parent = 0); + explicit MappingEditorWidget(const QString &caption, bool showClearButton = false, QWidget *parent = 0); void fillCompleter(const QStringList &completions); void setCurrentItems(const QStringList &items); QStringList items() const; @@ -179,6 +179,7 @@ class MappingEditorWidget : public QWidget { SmTreeView *mView; QPushButton *mAdd; QPushButton *mRemove; + QPushButton *mClear; QLineEdit *mEditor; QCompleter *mCompleter; QStringListModel *mCompleterModel; -- cgit v1.2.3-70-g09d2