[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [krita/rempt/impex-refactoring] plugins/tools/karbonplugins/tools/CalligraphyTool: debug--
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2016-12-08 10:35:46
Message-ID: E1cEw3G-0001y5-0o () code ! kde ! org
[Download RAW message or body]

Git commit 3cf1052a1ca1b6bdde0971aa23905ba2b5189e3b by Boudewijn Rempt.
Committed on 08/12/2016 at 10:15.
Pushed by rempt into branch 'rempt/impex-refactoring'.

debug--

M  +0    -18   plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyOptionWidget.cpp


https://commits.kde.org/krita/3cf1052a1ca1b6bdde0971aa23905ba2b5189e3b

diff --git a/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyOptionWidget.cpp \
b/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyOptionWidget.cpp \
                index 23ef45af464..3c453a2110a 100644
--- a/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyOptionWidget.cpp
                
+++ b/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyOptionWidget.cpp
 @@ -164,7 +164,6 @@ KarbonCalligraphyOptionWidget::KarbonCalligraphyOptionWidget()
 KarbonCalligraphyOptionWidget::~KarbonCalligraphyOptionWidget()
 {
     qDeleteAll(m_profiles);
-    qDebug() << "dtor!!!!";
 }
 
 void KarbonCalligraphyOptionWidget::emitAll()
@@ -186,7 +185,6 @@ void KarbonCalligraphyOptionWidget::loadProfile(const QString \
&name)  if (m_changingProfile) {
         return;
     }
-    qDebug() << "trying profile" << name;
     // write the new profile in the config file
     KConfig config(RCFILENAME);
     KConfigGroup generalGroup(&config, "General");
@@ -449,16 +447,13 @@ void KarbonCalligraphyOptionWidget::loadCurrentProfile()
     KConfig config(RCFILENAME);
     KConfigGroup generalGroup(&config, "General");
     QString currentProfile = generalGroup.readEntry("profile", QString());
-    qDebug() << currentProfile;
     // find the index needed by the comboBox
     int index = profilePosition(currentProfile);
 
     if (currentProfile.isEmpty() || index < 0) {
-        qDebug() << "invalid karboncalligraphyrc!!" << currentProfile << index;
         return;
     }
 
-    qDebug() << m_comboBox->currentIndex() << index;
     m_comboBox->setCurrentIndex(index);
 
     Profile *profile = m_profiles[currentProfile];
@@ -479,7 +474,6 @@ void KarbonCalligraphyOptionWidget::loadCurrentProfile()
 
 void KarbonCalligraphyOptionWidget::saveProfile(const QString &name)
 {
-    qDebug() << name;
     Profile *profile = new Profile;
     profile->name = name;
     profile->usePath = m_usePath->isChecked();
@@ -502,22 +496,17 @@ void KarbonCalligraphyOptionWidget::saveProfile(const QString \
&name)  profile->index = m_profiles.count();
         m_profiles.insert(name, profile);
         // add the profile to the combobox
-        qDebug() << "BEFORE:";
         QString dbg;
         for (int i = 0; i < m_comboBox->count(); ++i) {
             dbg += m_comboBox->itemText(i) + ' ';
         }
-        qDebug() << dbg;
         int pos = profilePosition(name);
         m_changingProfile = true;
         m_comboBox->insertItem(pos, name);
         m_changingProfile = false;
-        qDebug() << "AFTER:";
         for (int i = 0; i < m_comboBox->count(); ++i) {
             dbg += m_comboBox->itemText(i) + ' ';
         }
-        qDebug() << dbg;
-        qDebug() << "new at" << pos << m_comboBox->itemText(pos) << name;
     }
 
     KConfig config(RCFILENAME);
@@ -540,18 +529,12 @@ void KarbonCalligraphyOptionWidget::saveProfile(const QString \
&name)  generalGroup.writeEntry("profile", name);
 
     config.sync();
-    qDebug() << name;
 
-    int pos = profilePosition(name);
-    qDebug() << "adding in" << pos << m_comboBox->itemText(pos);
     m_comboBox->setCurrentIndex(profilePosition(name));
-    qDebug() << m_comboBox->currentText();
 }
 
 void KarbonCalligraphyOptionWidget::removeProfile(const QString &name)
 {
-    qDebug() << "removing profile" << name;
-
     int index = profilePosition(name);
     if (index < 0) {
         return;    // no such profile
@@ -561,7 +544,6 @@ void KarbonCalligraphyOptionWidget::removeProfile(const QString \
&name)  KConfig config(RCFILENAME);
     int deletedIndex = m_profiles[name]->index;
     QString deletedGroup = "Profile" + QString::number(deletedIndex);
-    qDebug() << deletedGroup;
     config.deleteGroup(deletedGroup);
     config.sync();
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic