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

List:       kde-commits
Subject:    kdevelop/parts/customproject
From:       Harald Fernengel <harry () kdevelop ! org>
Date:       2003-03-12 14:24:09
[Download RAW message or body]

CVS commit by harald: 

better version


  M +2 -7      customprojectpart.cpp   1.28


--- kdevelop/parts/customproject/customprojectpart.cpp  #1.27:1.28
@@ -484,11 +484,6 @@ void CustomProjectPart::updateTargetMenu
             {
                 kdDebug(9025) << "Adding target: " << str.simplifyWhiteSpace() << endl;
-#if KDE_VERSION > 305
-                // m_targets += str.simplifyWhiteSpace().section(' ', 0, 0).replace(':', "");
-                m_targets += QStringList::split(" ", str.simplifyWhiteSpace())[0].replace(':', "");
-#else
-                static QRegExp colre(":");
-                m_targets += QStringList::split(" ", str.simplifyWhiteSpace())[0].replace(colre, "");
-#endif
+                m_targets += str.simplifyWhiteSpace().section(' ', 0, 0);
+                m_targets.truncate( m_targets.length() - 1 ); // strip the colon
             }
         }


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

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