[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: [PATCH] kdevelop/lib/util/settings.cpp
From: Nimrod Gutman <nimrod.gutman () gmail ! com>
Date: 2005-12-24 12:25:36
Message-ID: 200512241425.36549.nimrod.gutman () gmail ! com
[Download RAW message or body]
To get the latest kdevelop trunk to compile I had to do this patch because
some of the methods aren't supported anymore.
Not sure if it's the right way to do, but hey! am still learning. :)
--
Nimrod "The Guti" Gutman.
["settings_config.patch" (text/x-diff)]
Index: lib/util/settings.cpp
===================================================================
--- lib/util/settings.cpp (revision 491036)
+++ lib/util/settings.cpp (working copy)
@@ -17,17 +17,17 @@
QString Settings::terminalEmulatorName( KConfig & config )
{
config.setGroup("TerminalEmulator");
- bool useKDESetting = config.readBoolEntry( "UseKDESetting", true );
+ bool useKDESetting = config.readEntry( "UseKDESetting", true ).toBool();
QString terminal;
if ( useKDESetting )
{
- KConfigGroup confGroup( KGlobal::config(), QLatin1String("General") );
- terminal = confGroup.readEntry("TerminalApplication", QLatin1String("konsole"));
+ KConfigGroup confGroup( KGlobal::config(), QString("General").toLatin1().constData() );
+ terminal = confGroup.readEntry("TerminalApplication", QString("konsole").toLatin1().constData() );
}
else
{
- terminal = config.readEntry( "TerminalApplication", QLatin1String("konsole"));
+ terminal = config.readEntry( "TerminalApplication", QString("konsole").toLatin1().constData() );
}
return terminal;
}
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic