[PATCH] KAccelManager

Tobias Koenig tokoe at kde.org
Sun Nov 17 20:42:11 GMT 2002


Hi,

the attached patch makes KAccelManager less verbose and fixes a bug.
Can I commit?

Ciao,
Tobias
-- 
In a world without walls and fences who
needs Windows and Gates???
-------------- next part --------------
Index: kaccelmanager.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kaccelmanager.cpp,v
retrieving revision 1.16
diff -u -b -p -r1.16 kaccelmanager.cpp
--- kaccelmanager.cpp	2002/08/19 15:26:26	1.16
+++ kaccelmanager.cpp	2002/11/17 20:43:39
@@ -202,7 +202,7 @@ void KAcceleratorManagerPrivate::calcula
       }
       continue;
     }
-    if (!it->m_widget->setProperty("text", contents[cnt].accelerated()));
+    if (!it->m_widget->setProperty("text", contents[cnt].accelerated()))
       it->m_widget->setProperty("title", contents[cnt].accelerated());
   }
 
@@ -376,7 +376,7 @@ KAccelString::KAccelString(const QString
         m_pureText.replace(orig_accel, 4, "&");
     orig_accel = m_accel = stripAccelerator(m_pureText);
 
-    kdDebug() << input << " " << orig_accel << " " << m_accel << " " << m_pureText << endl;
+    kdDebug(125) << input << " " << orig_accel << " " << m_accel << " " << m_pureText << endl;
     if (initialWeight == -1)
         initialWeight = KAccelManagerAlgorithm::DEFAULT_WEIGHT;
 


More information about the kde-core-devel mailing list