[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/editors/editor-chooser
From: Jens Dagerbo <jens.dagerbo () swipnet ! se>
Date: 2004-08-24 16:28:06
Message-ID: 20040824162806.B13E02545 () office ! kde ! org
[Download RAW message or body]
CVS commit by dagerbo:
Properly wire up the "on external changes" settings. (rerun)
M +29 -0 editorchooser_widget.cpp 1.8
--- kdevelop/editors/editor-chooser/editorchooser_widget.cpp #1.7:1.8
@@ -1,4 +1,5 @@
#include <qcombobox.h>
#include <qbuttongroup.h>
+#include <qradiobutton.h>
#include <kapplication.h>
@@ -45,4 +46,19 @@ void EditorChooserWidget::load()
if (index >=0)
EditorPart->setCurrentItem(index);
+
+ QString dirtyAction = config->readEntry( "DirtyAction" );
+
+ if ( dirtyAction == "reload" )
+ {
+ reload->setChecked( true );
+ }
+ else if ( dirtyAction == "alert" )
+ {
+ alert->setChecked( true );
+ }
+ else
+ {
+ nothing->setChecked( true );
+ }
}
@@ -62,4 +78,17 @@ void EditorChooserWidget::save()
}
+ if ( reload->isChecked() )
+ {
+ config->writeEntry( "DirtyAction", "reload" );
+ }
+ else if ( alert->isChecked() )
+ {
+ config->writeEntry( "DirtyAction", "alert" );
+ }
+ else
+ {
+ config->writeEntry( "DirtyAction", "nothing" );
+ }
+
config->sync();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic