From fc76b7124f2dd642611efb7b6deaeebf6517543a Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 18 Jun 2010 09:19:24 +0000 Subject: Fixed colouring mathod, that forced label to become a rich-text label, thereby stopping it from removing all newlines... --- client/resumewidget.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/client/resumewidget.cc b/client/resumewidget.cc index 81e3f2c..bc97007 100644 --- a/client/resumewidget.cc +++ b/client/resumewidget.cc @@ -122,12 +122,20 @@ void ResumeWidget::setText(QString text, state_t state) switch(state) { case NEW: - f = "" + f + ""; + { + QPalette palette; + palette.setBrush(foregroundRole(), QBrush(QColor(0, 0, 255))); + resume->setPalette(palette); + } break; case OLD: break; case DIRTY: - f = "" + f + ""; + { + QPalette palette; + palette.setBrush(foregroundRole(), QBrush(QColor(255, 0, 0))); + resume->setPalette(palette); + } break; } -- cgit v1.2.3