Added CLEAR LIST in task wizard

parent 5dffe0fb
This diff is collapsed.
This diff is collapsed.
...@@ -506,6 +506,10 @@ p, li { white-space: pre-wrap; } ...@@ -506,6 +506,10 @@ p, li { white-space: pre-wrap; }
<source>Failed to create folder. Please select another output folder.</source> <source>Failed to create folder. Please select another output folder.</source>
<translation>Impossible de créer le dossier. Sélectionnez-en un autre.</translation> <translation>Impossible de créer le dossier. Sélectionnez-en un autre.</translation>
</message> </message>
<message>
<source>Clear List</source>
<translation>Effacer la liste</translation>
</message>
</context> </context>
<context> <context>
<name>ConversionParameterDialog</name> <name>ConversionParameterDialog</name>
......
...@@ -59,6 +59,8 @@ AddTaskWizard::AddTaskWizard(Presets *presets, QWidget *parent) : ...@@ -59,6 +59,8 @@ AddTaskWizard::AddTaskWizard(Presets *presets, QWidget *parent) :
, this, SLOT(slotAddFilesToList())); , this, SLOT(slotAddFilesToList()));
connect(ui->btnRemove, SIGNAL(clicked()) connect(ui->btnRemove, SIGNAL(clicked())
, this, SLOT(slotRemoveFilesFromList())); , this, SLOT(slotRemoveFilesFromList()));
connect(ui->btnClearList, SIGNAL(clicked())
, this, SLOT(slotClearList()));
connect(ui->cbExtension, SIGNAL(currentIndexChanged(int)) connect(ui->cbExtension, SIGNAL(currentIndexChanged(int))
, this, SLOT(slotExtensionSelected(int))); , this, SLOT(slotExtensionSelected(int)));
connect(ui->cbPreset, SIGNAL(currentIndexChanged(int)) connect(ui->cbPreset, SIGNAL(currentIndexChanged(int))
...@@ -193,6 +195,11 @@ void AddTaskWizard::slotRemoveFilesFromList() ...@@ -193,6 +195,11 @@ void AddTaskWizard::slotRemoveFilesFromList()
} }
} }
void AddTaskWizard::slotClearList()
{
ui->lstFiles->clear();
}
void AddTaskWizard::slotEditPresetButton() void AddTaskWizard::slotEditPresetButton()
{ {
ConversionParameterDialog dialog(this); ConversionParameterDialog dialog(this);
......
...@@ -64,6 +64,7 @@ protected: ...@@ -64,6 +64,7 @@ protected:
private slots: private slots:
void slotAddFilesToList(); void slotAddFilesToList();
void slotRemoveFilesFromList(); void slotRemoveFilesFromList();
void slotClearList();
void slotEditPresetButton(); void slotEditPresetButton();
void slotBrowseOutputPathButton(); void slotBrowseOutputPathButton();
void slotExtensionSelected(int); void slotExtensionSelected(int);
......
...@@ -104,6 +104,23 @@ ...@@ -104,6 +104,23 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="btnClearList">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="toolTip">
<string>Clear List</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../images.qrc">
<normaloff>:/actions/icons/clear.svg</normaloff>:/actions/icons/clear.svg</iconset>
</property>
</widget>
</item>
<item> <item>
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment