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; }
<source>Failed to create folder. Please select another output folder.</source>
<translation>Impossible de créer le dossier. Sélectionnez-en un autre.</translation>
</message>
<message>
<source>Clear List</source>
<translation>Effacer la liste</translation>
</message>
</context>
<context>
<name>ConversionParameterDialog</name>
......
......@@ -59,6 +59,8 @@ AddTaskWizard::AddTaskWizard(Presets *presets, QWidget *parent) :
, this, SLOT(slotAddFilesToList()));
connect(ui->btnRemove, SIGNAL(clicked())
, this, SLOT(slotRemoveFilesFromList()));
connect(ui->btnClearList, SIGNAL(clicked())
, this, SLOT(slotClearList()));
connect(ui->cbExtension, SIGNAL(currentIndexChanged(int))
, this, SLOT(slotExtensionSelected(int)));
connect(ui->cbPreset, SIGNAL(currentIndexChanged(int))
......@@ -193,6 +195,11 @@ void AddTaskWizard::slotRemoveFilesFromList()
}
}
void AddTaskWizard::slotClearList()
{
ui->lstFiles->clear();
}
void AddTaskWizard::slotEditPresetButton()
{
ConversionParameterDialog dialog(this);
......
......@@ -64,6 +64,7 @@ protected:
private slots:
void slotAddFilesToList();
void slotRemoveFilesFromList();
void slotClearList();
void slotEditPresetButton();
void slotBrowseOutputPathButton();
void slotExtensionSelected(int);
......
......@@ -104,6 +104,23 @@
</property>
</widget>
</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>
<spacer name="verticalSpacer">
<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