From EBN:

Check for QString compares to ""... OOPS! 1 issue found!
 ./libs/plasma/widgets/lineedit.cpp: line#178 (1) 
 Do not compare a QString to "". Instead use the .isEmpty() method. For example, if(str == "") becomes if(str.isEmpty())

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=679628
This commit is contained in:
Tim Beaulen 2007-06-24 12:50:58 +00:00
parent 12a1706eb0
commit 2e78ff6e5e

View File

@ -175,7 +175,7 @@ void LineEdit::keyPressEvent(QKeyEvent *event)
d->oldText = QGraphicsTextItem::toHtml();
emit textChanged(QGraphicsTextItem::toHtml());
}
// if (QGraphicsTextItem::toPlainText().simplified() == "")
// if (QGraphicsTextItem::toPlainText().simplified().isEmtpy())
// QGraphicsTextItem::setHtml(d->defaultText);
}