Hi list, I fixed the bug in the contact list item delegate, you can find the patch attached. While investigating that, I also noticed that the ICQ setup dialogue selects an incorrect tab per default, attached is a patch to set the one with the ICQ number etc. as default.
Kind regards, Ralf
Index: protocols/oscar/icq/ui/icqeditaccountui.ui =================================================================== --- protocols/oscar/icq/ui/icqeditaccountui.ui (revision 1257328) +++ protocols/oscar/icq/ui/icqeditaccountui.ui (working copy) @@ -23,7 +23,7 @@ <item> <widget class="QTabWidget" name="tabWidget7"> <property name="currentIndex"> - <number>1</number> + <number>0</number> </property> <widget class="QWidget" name="tab"> <attribute name="title"> @@ -994,9 +994,6 @@ </hint> </hints> </connection> - - - <connection> <sender>optionEnableProxy</sender> <signal>toggled(bool)</signal>
Index: kopete/contactlist/kopeteitemdelegate.cpp =================================================================== --- kopete/contactlist/kopeteitemdelegate.cpp (revision 1257328) +++ kopete/contactlist/kopeteitemdelegate.cpp (working copy) @@ -157,12 +157,18 @@ painter->translate( option.rect.topLeft() ); + QPalette::ColorGroup cg = QPalette::Active; + if (!(option.state & QStyle::State_Enabled)) + cg = QPalette::Disabled; + else if (!(option.state & QStyle::State_Active)) + cg = QPalette::Inactive; + if ( Kopete::AppearanceSettings::self()->greyIdleMetaContacts() && index.data( Kopete::Items::IdleTimeRole ).toInt() > 0 ) painter->setPen( Kopete::AppearanceSettings::self()->idleContactColor() ); //apply the appropriate idle color else if ( option.state & QStyle::State_Selected ) - painter->setPen( option.palette.color( QPalette::Normal, QPalette::HighlightedText ) ); + painter->setPen( option.palette.color( cg, QPalette::HighlightedText ) ); else - painter->setPen( option.palette.color( QPalette::Normal, QPalette::Text ) ); + painter->setPen( option.palette.color( cg, QPalette::Text ) ); paintItem( layout.layout(), painter, option, index, 0 );
_______________________________________________ kopete-devel mailing list kopete-devel@kde.org https://mail.kde.org/mailman/listinfo/kopete-devel