[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegames/ksudoku/src/gui/views
From:       Percy Camilo TriveƱo Aucahuasi <orgyforever () gmail ! com>
Date:       2008-06-01 0:04:03
Message-ID: 1212278643.535462.23677.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 815034 by aucahuasi:

CCBUG: 162832
This patch solve the background issue.

 M  +15 -0     valuelistwidget.cpp  


--- trunk/KDE/kdegames/ksudoku/src/gui/views/valuelistwidget.cpp #815033:815034
@@ -24,6 +24,7 @@
 #include <QGraphicsSimpleTextItem>
 #include <QWheelEvent>
 
+#include <KColorScheme>
 
 namespace ksudoku {
 	
@@ -31,6 +32,13 @@
 	: QGraphicsItem(parent, scene)
 {
 	m_text = new QGraphicsSimpleTextItem(symbol, this, scene);
+
+///
+    KStatefulBrush stattefulBrush(KColorScheme::View, KColorScheme::NormalText);
+
+    m_text->setBrush(stattefulBrush.brush(QPalette::Active).color());
+///
+
 	setSize(10);
 }
 
@@ -94,6 +102,13 @@
 	setScene(m_scene);
 	
 	m_selectionItem = new QGraphicsRectItem(-4.5, 0.5, 9, 9, 0, m_scene);
+
+///
+    KStatefulBrush stattefulBrush(KColorScheme::View, KColorScheme::NormalText);
+
+    dynamic_cast< QGraphicsRectItem* \
>(m_selectionItem)->setPen(stattefulBrush.brush(QPalette::Active).color()); +///
+
 	m_selectionItem->setPos(0, 0);
 	
 	m_maxValue = 1;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic