From kde-commits Fri Sep 15 22:17:35 2006 From: Jens Dagerbo Date: Fri, 15 Sep 2006 22:17:35 +0000 To: kde-commits Subject: branches/kdevelop/3.4/parts/ctags2 Message-Id: <1158358655.508857.7601.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=115835866818249 SVN commit 584960 by dagerbo: when restoring a saved custom argument string, enable checkbox and lineedit to indicate that the stored value is in effect. thanks to 'mwoehlke' for the report M +8 -1 ctags2_settingswidget.cpp M +11 -2 ctags2_settingswidgetbase.ui --- branches/kdevelop/3.4/parts/ctags2/ctags2_settingswidget.cpp #584959:584960 @@ -56,7 +56,14 @@ void CTags2SettingsWidget::loadSettings() { QDomDocument & dom = *m_part->projectDom(); - tagfileCustomEdit->setText( DomUtil::readEntry( dom, "/ctagspart/customArguments" ) ); + + QString customArgs = DomUtil::readEntry( dom, "/ctagspart/customArguments" ); + if ( !customArgs.isEmpty() ) + { + tagfileCustomBox->setChecked( true ); + tagfileCustomEdit->setText( customArgs ); + } + QString customTagfile = DomUtil::readEntry( dom, "/ctagspart/customTagfilePath" ); if (customTagfile.isEmpty()) { --- branches/kdevelop/3.4/parts/ctags2/ctags2_settingswidgetbase.ui #584959:584960 @@ -107,7 +107,7 @@ - checkBox5 + tagfileCustomBox &Use custom tagfile generation arguments @@ -281,6 +281,8 @@ + + addButton @@ -301,11 +303,17 @@ createNewTagSlot() - checkBox5 + tagfileCustomBox toggled(bool) tagfileCustomEdit setEnabled(bool) + + tagfileCustomBox + toggled(bool) + tagfileCustomEdit + clear() + createNewTagSlot() @@ -316,6 +324,7 @@ + klineedit.h kurlrequester.h klineedit.h kpushbutton.h