summaryrefslogtreecommitdiffstats
path: root/part/kxetextviewsettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'part/kxetextviewsettings.cpp')
-rw-r--r--part/kxetextviewsettings.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/part/kxetextviewsettings.cpp b/part/kxetextviewsettings.cpp
index 7ed6ac6..5fb009f 100644
--- a/part/kxetextviewsettings.cpp
+++ b/part/kxetextviewsettings.cpp
@@ -87,13 +87,20 @@ void KXETextViewSettings::write( KConfig * pConfig ) const
void KXETextViewSettings::read( const KConfig * pConfig )
{
- m_colorDfltText = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_DEFAULT_TEXT, & DFLT_VALUE_COLOR_DEFAULT_TEXT );
- m_colorElemNames = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ELEMENT_NAMES, & DFLT_VALUE_COLOR_ELEMENT_NAMES );
- m_colorAttrNames = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ATTR_NAMES, & DFLT_VALUE_COLOR_ATTR_NAMES );
- m_colorAttrValues = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ATTR_VALUES, & DFLT_VALUE_COLOR_ATTR_VALUES );
- m_colorSyntaxChars = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_SYNTAX_CHARS, & DFLT_VALUE_COLOR_SYNTAX_CHARS );
- m_colorComments = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_COMENTS, & DFLT_VALUE_COLOR_COMENTS );
- m_colorErrors = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ERRORS, &DFLT_VALUE_COLOR_ERRORS );
+ const TQColor tempColor1 = DFLT_VALUE_COLOR_DEFAULT_TEXT;
+ m_colorDfltText = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_DEFAULT_TEXT, &tempColor1 );
+ const TQColor tempColor2 = DFLT_VALUE_COLOR_ELEMENT_NAMES;
+ m_colorElemNames = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ELEMENT_NAMES, &tempColor2 );
+ const TQColor tempColor3 = DFLT_VALUE_COLOR_ATTR_NAMES;
+ m_colorAttrNames = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ATTR_NAMES, &tempColor3 );
+ const TQColor tempColor4 = DFLT_VALUE_COLOR_ATTR_VALUES;
+ m_colorAttrValues = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ATTR_VALUES, &tempColor4 );
+ const TQColor tempColor5 = DFLT_VALUE_COLOR_SYNTAX_CHARS;
+ m_colorSyntaxChars = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_SYNTAX_CHARS, &tempColor5 );
+ const TQColor tempColor6 = DFLT_VALUE_COLOR_COMENTS;
+ m_colorComments = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_COMENTS, &tempColor6 );
+ const TQColor tempColor7 = DFLT_VALUE_COLOR_ERRORS;
+ m_colorErrors = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ERRORS, &tempColor7 );
m_iIndentSteps = pConfig->readNumEntry( CONF_ENTRY_NAME_INDENT_STEPS, DFLT_VALUE_INDENT_STEPS );
m_bWrapOn = pConfig->readNumEntry( CONF_ENTRY_WRAP_ON, DFLT_VALUE_WRAP_ON );
}