|
From: Gustavo P. B. <gb...@us...> - 2005-07-06 01:34:55
|
Update of /cvsroot/kimageprocess/kimageprocess/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8751/src Modified Files: kimageprocess.cpp Log Message: "The Hitchhickers Guide to the Galaxy says that the more stupid is the bug you have the more time it takes for you to fix. And also that the more time it takes to fix and stupid it is, the more you get pissed when you fix it." Now the changes: - Remember to never do checks using memory addresses (see ktfeature.cpp changes) - removed QPtrLists<type> (they are evil) - replaced by QValueLists<type*> - removed duplicated signal connections (causing duplication in the project file) - increased a bit the desired error on fann (Herton, you should try and see a result ;) Index: kimageprocess.cpp =================================================================== RCS file: /cvsroot/kimageprocess/kimageprocess/src/kimageprocess.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- kimageprocess.cpp 1 Jul 2005 23:21:50 -0000 1.26 +++ kimageprocess.cpp 6 Jul 2005 01:34:43 -0000 1.27 @@ -71,6 +71,7 @@ KTFeatureManager::self(); KTMethodManager::self(); KTProject::self(); + KTImageManager::self(); QVBoxLayout *layout = new QVBoxLayout(this); layout->setAutoAdd( true ); @@ -126,18 +127,12 @@ KTFeatureManager *featmng = KTFeatureManager::self(); KTProject *prj = KTProject::self(); - connect(prj, SIGNAL(aboutToSave(QDomDocument*, QDomElement*)), - featmng, SLOT(slotSave(QDomDocument*, QDomElement*))); - connect(prj, SIGNAL(aboutToLoad(QDomElement*)), featmng, SLOT(slotLoad(QDomElement*))); connect(prj, SIGNAL(aboutToSave(QDomDocument*, QDomElement*)), featmng, SLOT(slotSave(QDomDocument*, QDomElement*))); - connect(prj, SIGNAL(aboutToLoad(QDomElement*)), - featmng, SLOT(slotLoad(QDomElement*))); - //load all plugins KTPluginManager::self()->loadPlugins(); @@ -413,7 +408,7 @@ void KImageProcess::projectCalculateTestData() { - m_progressBar->startAction(KTImageManager::self()->testingImage()->height(), i18n("Calculating testing data...")); + m_progressBar->startAction(KTImageManager::self()->testingImage()->width(), i18n("Calculating testing data...")); m_progressBar->show(); QTimer::singleShot(0, KTCalculation::self(), SLOT(calculateTestData())); |