]> gitweb.hamatoma.de Git - reqt/commitdiff
reimgconvert: adaption to current source
authorhama <hama@siduction.net>
Sat, 25 Jun 2016 23:16:02 +0000 (01:16 +0200)
committerhama <hama@siduction.net>
Sat, 25 Jun 2016 23:16:02 +0000 (01:16 +0200)
appl/reimgconvert/mainwindow.cpp
appl/reimgconvert/mainwindow.hpp
appl/reimgconvert/reimgconvert.pro

index f0e2803f2d9a491e4197e8f5c74ad5c24cc3e4f5..a42dd264962b4396cbae1f2e05287c4ef6618784 100644 (file)
@@ -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);
index a4377d2208feae6d42e8aa71618082ad35fdbf8d..4e1cfaece0253862eb450f4f1ab0195f5e30502f 100644 (file)
@@ -61,6 +61,7 @@ private:
    TaskConverter* m_taskConvert;
    TaskSearch* m_taskSearch;
    TaskShowOther* m_taskShowOther;
+   int m_maxListSize;
 };
 
 #endif // MAINWINDOW_HPP
index e5709b8a9362afa430a887b10a33dac93ddd49c4..5aa522151f70cd78b0bb90890fd0427da8fed463 100644 (file)
@@ -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 \