[Psi-Devel] account headings are not visible anymore

Nikolay Derkach nderkach at gmail.com
Fri Aug 10 14:06:20 PDT 2007


В сообщении от Friday 10 August 2007 21:52:07 Albert Holm написал(а):
> Den Friday 10 August 2007 19.39.44 skrev Nikolay Derkach:
> > Hi,
> >
> > After updating to the latest Qt 4.3.1 text in account headings is not
> > visible. I'm using Psi 0.11 RC2.
> > A screenshot explaining what I'm talking about is attached.
>
> A workaround was described in the chat room yesterday.
>
> <http://conference.psi-im.org/psi@conference.psi-im.org/2007/08/09.html#08:
>06:42>
>
> The introduced change is related to
> <http://trolltech.com/developer/task-tracker/index_html?id=165853&method=en
>try>
>
> /Albert
> _______________________________________________
> Psi-Devel mailing list
> Psi-Devel at lists.affinix.com
> http://lists.affinix.com/listinfo.cgi/psi-devel-affinix.com

Which exactly workaround are you talking about?

diff -Naur psi-0.11_rc2/src/contactview.cpp 
psi-0.11_rc2_new/src/contactview.cpp
--- psi-0.11_rc2/src/contactview.cpp	2007-07-15 16:21:39.000000000 +0400
+++ psi-0.11_rc2_new/src/contactview.cpp	2007-08-11 00:02:59.000000000 +0400
@@ -3071,10 +3071,10 @@
 
 		if(type_ == Profile) {
  			xcg.setColor(QColorGroup::Text, option.color[cProfileFore]);
-			#if QT_VERSION >= 0x040103 
+			#if QT_VERSION < 0x040301
 				xcg.setColor(QColorGroup::Background, option.color[cProfileBack]);
 			 #else
- 				xcg.setColor(QColorGroup::WindowText, option.color[cProfileBack]);
+ 				xcg.setColor(QColorGroup::Base, option.color[cGroupBack]);
  			#endif
 			
 		}
@@ -3084,10 +3084,10 @@
 			p->setFont(f);
 			xcg.setColor(QColorGroup::Text, option.color[cGroupFore]);
 			if (!option.clNewHeadings) {
- 				#if QT_VERSION >= 0x040103 
+ 				#if QT_VERSION < 0x040301 
 					xcg.setColor(QColorGroup::Background, option.color[cGroupBack]);
 				#else
- 					xcg.setColor(QColorGroup::WindowText, option.color[cGroupBack]);
+ 					xcg.setColor(QColorGroup::Base, option.color[cGroupBack]);
 				#endif
 			}
 		} 
diff -Naur psi-0.11_rc2/src/gcuserview.cpp psi-0.11_rc2_new/src/gcuserview.cpp
--- psi-0.11_rc2/src/gcuserview.cpp	2007-07-15 16:21:39.000000000 +0400
+++ psi-0.11_rc2_new/src/gcuserview.cpp	2007-08-11 00:03:59.000000000 +0400
@@ -78,10 +78,10 @@
 	p->setFont(f);
 	xcg.setColor(QColorGroup::Text, option.color[cGroupFore]);
 	if (!option.clNewHeadings) {
-		#if QT_VERSION >= 0x040103
+		#if QT_VERSION < 0x040301
 			xcg.setColor(QColorGroup::Background, option.color[cGroupBack]);
 		#else
-			xcg.setColor(QColorGroup::WindowText, option.color[cGroupBack]);
+			xcg.setColor(QColorGroup::Base, option.color[cGroupBack]);
 		#endif
 	}
 	Q3ListViewItem::paintCell(p, xcg, column, width, alignment);

I've tried this one but it doesn't help.

-- 
Regards, Nikolay Derkach


More information about the Psi-Devel mailing list