rendered paste bodyIndex: starview.cc
===================================================================
--- starview.cc (revision 634448)
+++ starview.cc (working copy)
@@ -171,7 +171,7 @@
{
m_boxItem->setBrush( color );
- m_textItem->setPen( StatusView::textColor( color ) );
+ m_textItem->setBrush( StatusView::textColor( color ) );
}
QString HostItem::hostName() const
Index: statusview.cc
===================================================================
--- statusview.cc (revision 634448)
+++ statusview.cc (working copy)
@@ -60,7 +60,7 @@
return mHostInfoManager->hostColor( id );
}
-QColor StatusView::textColor( const QColor &color )
+QBrush StatusView::textColor( const QColor &color )
{
QColor textColor;
@@ -69,7 +69,7 @@
if ( luminance > 140.0 ) textColor = Qt::black;
else textColor = Qt::white;
- return textColor;
+ return QBrush(textColor);
}
unsigned int StatusView::processor( const Job &job )
Index: mon-kde.cc
===================================================================
--- mon-kde.cc (revision 634448)
+++ mon-kde.cc (working copy)
@@ -99,6 +99,7 @@
createGUI();
readSettings();
+ setAutoSaveSettings("mainWindow", true);
}
MainWindow::~MainWindow()
Index: statusview.h
===================================================================
--- statusview.h (revision 634448)
+++ statusview.h (working copy)
@@ -22,6 +22,8 @@
#ifndef ICEMON_STATUSVIEW_H
#define ICEMON_STATUSVIEW_H
+#include <QBrush>
+
class HostInfoManager;
class Job;
@@ -55,7 +57,7 @@
QString nameForHost( unsigned int hostid );
QColor hostColor( unsigned int hostid );
- static QColor textColor( const QColor &backGroundColor );
+ static QBrush textColor( const QColor &backGroundColor );
private:
HostInfoManager *mHostInfoManager;