Commit c806f2ac authored by Claudio Valerio's avatar Claudio Valerio

fixed color issue when placeholder is set on UBTGAdaptableText

parent f0734e71
...@@ -148,9 +148,9 @@ void UBTGAdaptableText::keyPressEvent(QKeyEvent* e) ...@@ -148,9 +148,9 @@ void UBTGAdaptableText::keyPressEvent(QKeyEvent* e)
} }
if(toPlainText() == mPlaceHolderText){ if(toPlainText() == mPlaceHolderText){
setTextColor(QColor(Qt::black));
setPlainText(""); setPlainText("");
} }
setTextColor(QColor(Qt::black));
QTextEdit::keyPressEvent(e); QTextEdit::keyPressEvent(e);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment