From: hama Date: Sat, 25 Jun 2016 23:16:02 +0000 (+0200) Subject: reimgconvert: adaption to current source X-Git-Url: https://gitweb.hamatoma.de/?a=commitdiff_plain;h=cb339c85bafa1bd7e2ce8e9e0cdd86a746d6a530;p=reqt reimgconvert: adaption to current source --- diff --git a/appl/reimgconvert/mainwindow.cpp b/appl/reimgconvert/mainwindow.cpp index f0e2803..a42dd26 100644 --- a/appl/reimgconvert/mainwindow.cpp +++ b/appl/reimgconvert/mainwindow.cpp @@ -15,7 +15,7 @@ #include "ui_mainwindow.h" #include "aboutdialog.hpp" -const QString VERSION("2016.01.20"); +const QString VERSION("2016.06.26"); /** @class MainWindow mainwindow.hpp "mainwindow.hpp" * @@ -37,7 +37,8 @@ MainWindow::MainWindow(QApplication& application, const QString& homeDir, QWidge ui(new Ui::MainWindow), m_taskConvert(NULL), m_taskSearch(NULL), - m_taskShowOther(NULL) + m_taskShowOther(NULL), + m_maxListSize(100) { ui->setupUi(this); initializeGuiElements(); @@ -123,7 +124,7 @@ void MainWindow::onGuiTimerUpdate() m_mutexGuiQueue.unlock(); if (item.m_type == ReGuiQueueItem::Undef) break; - if (! item.apply()){ + if (! item.apply(m_guiQueue, m_maxListSize)){ switch (item.m_type){ case ReGuiQueueItem::ListEnd: ui->listWidget->addItem(item.m_value); diff --git a/appl/reimgconvert/mainwindow.hpp b/appl/reimgconvert/mainwindow.hpp index a4377d2..4e1cfae 100644 --- a/appl/reimgconvert/mainwindow.hpp +++ b/appl/reimgconvert/mainwindow.hpp @@ -61,6 +61,7 @@ private: TaskConverter* m_taskConvert; TaskSearch* m_taskSearch; TaskShowOther* m_taskShowOther; + int m_maxListSize; }; #endif // MAINWINDOW_HPP diff --git a/appl/reimgconvert/reimgconvert.pro b/appl/reimgconvert/reimgconvert.pro index e5709b8..5aa5221 100644 --- a/appl/reimgconvert/reimgconvert.pro +++ b/appl/reimgconvert/reimgconvert.pro @@ -25,7 +25,8 @@ SOURCES += main.cpp\ ../../gui/ReGuiApplication.cpp \ mainwindow.cpp \ converter.cpp \ - aboutdialog.cpp + aboutdialog.cpp \ + ../../base/ReProcess.cpp HEADERS += mainwindow.hpp \ ../../base/rebase.hpp \