This commit is contained in:
Martin Rotter 2016-01-05 10:26:10 +01:00
parent cad7219ea2
commit f64d6d1694
3 changed files with 4 additions and 5 deletions

View File

@ -3,6 +3,7 @@
Added:
▪ Added generic "Add new feed" action, which can be accessed via "Feeds & messages" menu. (issue #146)
▪ Added support for import/export to/from plain TXT file (one feed URL per line). (issue #142)
Changed:
▪ Some GUI refinements and fixes.

View File

@ -58,6 +58,7 @@ FormStandardImportExport::~FormStandardImportExport() {
void FormStandardImportExport::setMode(const FeedsImportExportModel::Mode &mode) {
m_model->setMode(mode);
m_ui->m_progressBar->setVisible(false);
switch (mode) {
case FeedsImportExportModel::Export: {
@ -107,16 +108,16 @@ void FormStandardImportExport::selectFile() {
void FormStandardImportExport::onParsingStarted() {
m_ui->m_lblResult->setStatus(WidgetWithStatus::Progress, tr("Parsing data..."), tr("Parsing data..."));
m_ui->m_btnSelectFile->setEnabled(false);
m_ui->m_progressBar->setEnabled(true);
m_ui->m_progressBar->setValue(0);
m_ui->m_progressBar->setVisible(true);
}
void FormStandardImportExport::onParsingFinished(int count_failed, int count_succeeded, bool parsing_error) {
Q_UNUSED(count_failed)
Q_UNUSED(count_succeeded)
m_ui->m_progressBar->setVisible(false);
m_ui->m_progressBar->setValue(0);
m_ui->m_progressBar->setEnabled(false);
m_model->checkAllItems();
if (!parsing_error) {

View File

@ -116,9 +116,6 @@
</item>
<item row="1" column="0" colspan="2">
<widget class="QProgressBar" name="m_progressBar">
<property name="enabled">
<bool>false</bool>
</property>
<property name="value">
<number>0</number>
</property>