make datum feedback more prominent

This commit is contained in:
Stefan Tröger 2015-05-22 07:03:46 +02:00
parent d3a7e9a928
commit 4087ffaef7
2 changed files with 8 additions and 1 deletions

View File

@ -233,7 +233,11 @@ void TaskDatumParameters::updateUI(std::string message, bool error)
{
//set text if available
if(!message.empty()) {
ui->message->setText(QString::fromStdString(message));
ui->message->setText(QString::fromStdString(message));
if(error)
ui->message->setStyleSheet(QString::fromAscii("QLabel{color: red;}"));
else
ui->message->setStyleSheet(QString::fromAscii("QLabel{color: green;}"));
}
ui->checkBoxFlip->setVisible(false);

View File

@ -19,6 +19,9 @@
<property name="text">
<string>Selection accepted</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>