fixed memleak in setText

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=642203
This commit is contained in:
Siraj Razick 2007-03-13 16:30:48 +00:00
parent 6b2b055830
commit 0445867daa

View File

@ -120,6 +120,7 @@ void CheckBox::data(const DataSource::Data&)
void CheckBox::setText(const QString& text)
{
d->labelText = text;
/*
QFont * _font = new QFont ( text );
QFontMetrics fm ( *_font );
if ( fm.width(text) >= d->width ) {
@ -127,7 +128,7 @@ void CheckBox::setText(const QString& text)
}
delete _font;
*/
}
QString CheckBox::text() const