diff options
author | deva <deva> | 2010-06-18 09:19:24 +0000 |
---|---|---|
committer | deva <deva> | 2010-06-18 09:19:24 +0000 |
commit | fc76b7124f2dd642611efb7b6deaeebf6517543a (patch) | |
tree | 965f70a0917638cfab39eef3af3f9677dcb0a814 /client | |
parent | 6a35a6cfbf74226d4f4366a5aa92b1454684941f (diff) |
Fixed colouring mathod, that forced label to become a rich-text label, thereby stopping it from removing all newlines...
Diffstat (limited to 'client')
-rw-r--r-- | client/resumewidget.cc | 12 |
1 files 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 = "<font style='color: #00F;'>" + f + "</font>"; + { + QPalette palette; + palette.setBrush(foregroundRole(), QBrush(QColor(0, 0, 255))); + resume->setPalette(palette); + } break; case OLD: break; case DIRTY: - f = "<font style='color: #F00;'>" + f + "</font>"; + { + QPalette palette; + palette.setBrush(foregroundRole(), QBrush(QColor(255, 0, 0))); + resume->setPalette(palette); + } break; } |