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:
parent
12a1706eb0
commit
2e78ff6e5e
@ -175,7 +175,7 @@ void LineEdit::keyPressEvent(QKeyEvent *event)
|
|||||||
d->oldText = QGraphicsTextItem::toHtml();
|
d->oldText = QGraphicsTextItem::toHtml();
|
||||||
emit textChanged(QGraphicsTextItem::toHtml());
|
emit textChanged(QGraphicsTextItem::toHtml());
|
||||||
}
|
}
|
||||||
// if (QGraphicsTextItem::toPlainText().simplified() == "")
|
// if (QGraphicsTextItem::toPlainText().simplified().isEmtpy())
|
||||||
// QGraphicsTextItem::setHtml(d->defaultText);
|
// QGraphicsTextItem::setHtml(d->defaultText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user