diff options
author | François Andriot <francois.andriot@free.fr> | 2016-03-26 11:48:13 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-03-26 13:54:04 +0100 |
commit | f0bf4b5a50fd5ebe24a7d804acad9bac52a18de7 (patch) | |
tree | 536b5ed2cb012fa378c075740b6a511df1465583 /part | |
parent | 8dcb1860de1db581ee65f07e352e85932386e342 (diff) | |
download | kxmleditor-f0bf4b5a50fd5ebe24a7d804acad9bac52a18de7.tar.gz kxmleditor-f0bf4b5a50fd5ebe24a7d804acad9bac52a18de7.zip |
Fix FTBFS
Signed-off-by: François Andriot <francois.andriot@free.fr>
Diffstat (limited to 'part')
-rw-r--r-- | part/kxetextviewsettings.cpp | 21 |
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 ); } |