diff options
Diffstat (limited to 'kopete/kopete/chatwindow/krichtexteditpart.cpp')
-rw-r--r-- | kopete/kopete/chatwindow/krichtexteditpart.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kopete/kopete/chatwindow/krichtexteditpart.cpp b/kopete/kopete/chatwindow/krichtexteditpart.cpp index ed05e036..16ebe584 100644 --- a/kopete/kopete/chatwindow/krichtexteditpart.cpp +++ b/kopete/kopete/chatwindow/krichtexteditpart.cpp @@ -300,19 +300,19 @@ void KopeteRichTextEditPart::readConfig() { // Don't update config untill we read whole config first m_configWriteLock = true; - KConfig *config = KGlobal::config(); + KConfig *config = TDEGlobal::config(); config->setGroup("RichTextEditor"); - TQColor tmpColor = KGlobalSettings::textColor(); + TQColor tmpColor = TDEGlobalSettings::textColor(); setFgColor( config->readColorEntry("FgColor", &tmpColor ) ); - tmpColor = KGlobalSettings::baseColor(); + tmpColor = TDEGlobalSettings::baseColor(); setBgColor( config->readColorEntry("BgColor", &tmpColor ) ); TQFont tmpFont = KopetePrefs::prefs()->fontFace(); setFont( config->readFontEntry("Font", &tmpFont ) ); - int tmp = KGlobalSettings::generalFont().pixelSize(); + int tmp = TDEGlobalSettings::generalFont().pixelSize(); setFontSize( config->readNumEntry( "FontSize", tmp ) ); action_bold->setChecked( config->readBoolEntry( "FontBold" ) ); @@ -342,7 +342,7 @@ void KopeteRichTextEditPart::writeConfig() // If true we're still reading the conf write now, so don't write. if( m_configWriteLock ) return; - KConfig *config = KGlobal::config(); + KConfig *config = TDEGlobal::config(); config->setGroup("RichTextEditor"); config->writeEntry("Font", mFont ); config->writeEntry("FontSize", mFont.pointSize() ); @@ -359,9 +359,9 @@ void KopeteRichTextEditPart::setFgColor() { TQColor col=editor->color(); - int s = KColorDialog::getColor( col, KGlobalSettings::textColor() , editor ); + int s = KColorDialog::getColor( col, TDEGlobalSettings::textColor() , editor ); if(!col.isValid()) - col= KGlobalSettings::textColor() ; + col= TDEGlobalSettings::textColor() ; if ( s != TQDialog::Accepted ) return; @@ -391,7 +391,7 @@ void KopeteRichTextEditPart::setFgColor( const TQColor &newColor ) TQColor KopeteRichTextEditPart::fgColor() { - if( mFgColor == KGlobalSettings::textColor()) + if( mFgColor == TDEGlobalSettings::textColor()) return TQColor(); return mFgColor; } @@ -400,10 +400,10 @@ void KopeteRichTextEditPart::setBgColor() { TQColor col=mBgColor; - int s = KColorDialog::getColor( col, KGlobalSettings::baseColor(), editor ); + int s = KColorDialog::getColor( col, TDEGlobalSettings::baseColor(), editor ); if(!col.isValid()) { - col=KGlobalSettings::baseColor(); + col=TDEGlobalSettings::baseColor(); } if ( s != TQDialog::Accepted ) @@ -431,7 +431,7 @@ void KopeteRichTextEditPart::setBgColor( const TQColor &newColor ) TQColor KopeteRichTextEditPart::bgColor() { - if( mBgColor == KGlobalSettings::baseColor()) + if( mBgColor == TDEGlobalSettings::baseColor()) return TQColor(); return mBgColor; } |