[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kopete/libkopete/ui
From: Carsten Pfeiffer <carpdjih () mailbox ! tu-berlin ! de>
Date: 2003-02-03 22:05:57
[Download RAW message or body]
CVS commit by pfeiffer:
don't leak
M +6 -6 chatview.cpp 1.108
--- kdenonbeta/kopete/libkopete/ui/chatview.cpp #1.107:1.108
@@ -568,12 +568,12 @@ void ChatView::readOptions()
config->setGroup( QString::fromLatin1("ChatViewSettings") );
- QFont *tmpFont = new QFont( KGlobalSettings::generalFont() );
- setFont( config->readFontEntry( QString::fromLatin1("Font"), tmpFont) );
+ QFont tmpFont = KGlobalSettings::generalFont();
+ setFont( config->readFontEntry( QString::fromLatin1("Font"), &tmpFont) );
- QColor *tmpColor = new QColor( KGlobalSettings::textColor() );
- setFgColor( config->readColorEntry ( QString::fromLatin1("TextColor"), tmpColor ) );
+ QColor tmpColor = KGlobalSettings::textColor();
+ setFgColor( config->readColorEntry ( QString::fromLatin1("TextColor"), &tmpColor ) );
- tmpColor = new QColor( KGlobalSettings::baseColor() );
- setBgColor( config->readColorEntry ( QString::fromLatin1("BackgroundColor"), tmpColor) );
+ tmpColor = KGlobalSettings::baseColor();
+ setBgColor( config->readColorEntry ( QString::fromLatin1("BackgroundColor"), &tmpColor) );
//editDock->parent()->setSeperatorPos( config->readNumEntry ( "SplitterWidth", 70 ) );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic