GUI: rename methods, fix connect

This commit is contained in:
Daniel Marjamäki 2017-07-28 13:13:10 +02:00
parent 98803bb14c
commit 97a86313aa
2 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ ThreadHandler::ThreadHandler(QObject *parent) :
ThreadHandler::~ThreadHandler()
{
RemoveThreads();
removeThreads();
}
void ThreadHandler::clearFiles()
@ -116,7 +116,7 @@ void ThreadHandler::setThreadCount(const int count)
}
//Remove unused old threads
RemoveThreads();
removeThreads();
//Create new threads
for (int i = mThreads.size(); i < count; i++) {
mThreads << new CheckThread(mResults);
@ -129,14 +129,14 @@ void ThreadHandler::setThreadCount(const int count)
}
void ThreadHandler::RemoveThreads()
void ThreadHandler::removeThreads()
{
for (int i = 0; i < mThreads.size(); i++) {
mThreads[i]->terminate();
disconnect(mThreads.last(), SIGNAL(Done()),
this, SLOT(ThreadDone()));
this, SLOT(threadDone()));
disconnect(mThreads.last(), SIGNAL(FileChecked(const QString &)),
&mResults, SLOT(FileChecked(const QString &)));
&mResults, SLOT(fileChecked(const QString &)));
delete mThreads[i];
}

View File

@ -215,7 +215,7 @@ protected:
* @brief Function to delete all threads
*
*/
void RemoveThreads();
void removeThreads();
/**
* @brief Thread results are stored here