1
/***************************************************************************
2
* Copyright (C) 2005 by Jens Dagerbo *
3
* jens.dagerbo@swipnet.se *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
***************************************************************************/
14
#include <kstandarddirs.h>
18
QString Settings::terminalEmulatorName( KConfig & config )
20
config.setGroup("TerminalEmulator");
21
bool useKDESetting = config.readBoolEntry( "UseKDESetting", true );
26
KConfigGroup confGroup( KGlobal::config(), QString::fromLatin1("General") );
27
terminal = confGroup.readEntry("TerminalApplication", QString::fromLatin1("konsole"));
31
terminal = config.readEntry( "TerminalApplication", QString::fromLatin1("konsole"));
36
QString Settings::profileByAttributes(const QString &language, const QStringList &keywords)
38
KConfig config(locate("data", "kdevelop/profiles/projectprofiles"));
39
config.setGroup(language);
41
QStringList profileKeywords = QStringList::split("/", "Empty");
42
if (config.hasKey("Keywords"))
43
profileKeywords = config.readListEntry("Keywords");
46
for (QStringList::const_iterator it = profileKeywords.constBegin();
47
it != profileKeywords.constEnd(); ++it)
49
if (keywords.contains(*it))
51
idx = profileKeywords.findIndex(*it);
57
if (config.hasKey("Profiles"))
59
profiles = config.readListEntry("Profiles");