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

List:       kde-commits
Subject:    koffice/kexi/plugins/forms/widgets
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2006-07-14 13:49:08
Message-ID: 1152884948.054752.16240.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 562270 by staniek:

Forms
- fixed setting backgroundColor property for auto field

2.0: merged


 M  +4 -2      kexidbautofield.cpp  


--- trunk/koffice/kexi/plugins/forms/widgets/kexidbautofield.cpp #562269:562270
@@ -210,9 +210,9 @@
 			QWidget::setFocusPolicy(newSubwidget->focusPolicy());
 		}
 		setFocusProxy(newSubwidget); //ok?
-		copyPropertiesToEditor();
 		if (parentWidget())
 			newSubwidget->setPalette( qApp->palette() );
+		copyPropertiesToEditor();
 //		KFormDesigner::installRecursiveEventFilter(newSubwidget, this);
 	}
 
@@ -222,6 +222,8 @@
 void KexiDBAutoField::copyPropertiesToEditor()
 {
 	if (m_subwidget) {
+		kdDebug() << "KexiDBAutoField::copyPropertiesToEditor(): base col: " <<  d->baseColor.name() << 
+			"; text col: " << d->textColor.name() << endl;
 		QPalette p( m_subwidget->palette() );
 		p.setColor( QPalette::Active, QColorGroup::Base, d->baseColor );
 		if(d->widgetType == Boolean)
@@ -229,7 +231,7 @@
 		else
 			p.setColor( QPalette::Active, QColorGroup::Text, d->textColor );
 		m_subwidget->setPalette(p);
-		m_subwidget->setPaletteBackgroundColor( d->baseColor );
+		//m_subwidget->setPaletteBackgroundColor( d->baseColor );
 	}
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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