Plans for KUrl in KConfig?

Stephan Kulow coolo at kde.org
Mon Mar 12 13:26:05 GMT 2007


Am Montag 12 März 2007 schrieb Andreas Pakulat:
>
> void QMakeBuilderPreferences::load()
> {
>     KDevelop::ConfigModule::load();
>     m_prefsUi->qmakebin->setUrl(QMakeBuilderSettings::qmakebin());
>     connect(m_prefsUi->qmakebin, SIGNAL(textChanged(const QString&)), this,
> SLOT(changed())); connect(m_prefsUi->qmakebin, SIGNAL(returnPressed()),
> this, SLOT(changed())); connect(m_prefsUi->qmakebin,
> SIGNAL(urlSelected(const KUrl&)), this, SLOT(changed())); }
>
> void QMakeBuilderPreferences::save()
> {
>     QMakeBuilderSettings::setQmakebin(m_prefsUi->qmakebin->url().url());
>     KDevelop::ConfigModule::save();
> }
>
> KDevelop::ConfigModule is a subclass of KCModule and doesn't override
> load or save methods. Similar code is duplicated whenever somebody wants
> to use a KUrlRequester with a KCModule (I guess thats a bit of
> information that was missing in my OP :)
>

Well, I see no KConfig code used, so it looks weired that you want to change 
KConfig. 

Greetings, Stephan





More information about the kde-core-devel mailing list