[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/konqueror/sidebar
From: Barış Metin <baris () uludag ! org ! tr>
Date: 2007-02-22 20:57:17
Message-ID: 1172177837.021364.7180.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 636345 by baris:
--setGroup
M +14 -9 sidebar_widget.cpp
M +1 -1 sidebar_widget.h
--- trunk/KDE/kdebase/konqueror/sidebar/sidebar_widget.cpp #636344:636345
@@ -294,11 +294,14 @@
initialCopy();
if (universalMode)
- m_config = new KConfig("konqsidebartng_kicker.rc");
+ {
+ m_config = new KConfigGroup(KSharedConfig::openConfig("konqsidebartng_kicker.rc"),
+ QByteArray());
+ }
else
{
- m_config = new KConfig("konqsidebartng.rc");
- m_config->setGroup(currentProfile);
+ m_config = new KConfigGroup(KSharedConfig::openConfig("konqsidebartng.rc"),
+ currentProfile);
}
m_configTimer.setSingleShot(true);
connect(&m_configTimer, SIGNAL(timeout()),
@@ -758,12 +761,13 @@
int lastbtn = m_buttons.count();
m_buttons.resize(m_buttons.size()+1);
- KConfig *confFile;
+ KConfigGroup *confFile;
kDebug() << "addButton:" << (m_path+desktoppath) << endl;
- confFile = new KConfig(m_path+desktoppath, KConfig::OnlyLocal);
- confFile->setGroup("Desktop Entry");
+ confFile = new KConfigGroup(
+ KSharedConfig::openConfig(m_path+desktoppath, KConfig::OnlyLocal),
+ "Desktop Entry");
QString icon = confFile->readEntry("Icon");
QString name = confFile->readEntry("Name");
@@ -879,9 +883,10 @@
bool Sidebar_Widget::createView( ButtonInfo *data)
{
bool ret = true;
- KConfig *confFile;
- confFile = new KConfig(data->file, KConfig::OnlyLocal);
- confFile->setGroup("Desktop Entry");
+ KConfigGroup *confFile;
+ confFile = new KConfigGroup(
+ KSharedConfig::openConfig(data->file, KConfig::OnlyLocal),
+ "Desktop Entry");
data->dock = m_area->createDockWidget(confFile->readEntry("Name",i18n("Unknown")),QString());
data->module = loadModule(data->dock,data->file,data->libName,data);
--- trunk/KDE/kdebase/konqueror/sidebar/sidebar_widget.h #636344:636345
@@ -205,7 +205,7 @@
QPointer<ButtonInfo> m_activeModule;
QPointer<ButtonInfo> m_currentButton;
- KConfig *m_config;
+ KConfigGroup *m_config;
QTimer m_configTimer;
KUrl m_storedUrl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic