<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>308820</bug_id>
          
          <creation_ts>2012-10-22 17:40:33 +0000</creation_ts>
          <short_desc>Does not respond to style changes immediately</short_desc>
          <delta_ts>2012-10-23 12:19:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>telepathy</product>
          <component>contactlist</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>junior-jobs</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Edmundson">kde</reporter>
          <assigned_to name="Telepathy Bugs">kde-telepathy-bugs-null</assigned_to>
          <cc>mklapetek</cc>
          
          <cf_commitlink>http://commits.kde.org/telepathy-contact-list/d57901ab55947c1f3bae152c7d30bd6704b056b7</cf_commitlink>
          <cf_versionfixedin>0.5.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1308239</commentid>
    <comment_count>0</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2012-10-22 17:40:33 +0000</bug_when>
    <thetext>Changing the KDE colour scheme does not immediately update the contact list.

This is because we have the following code in AbstractContactDelegate which we then use
    m_palette = new QPalette(QApplication::palette());
QApplication::palette is a very fast operation, so there&apos;s no point keeping it as a member variable.
This call just needs moving into each of the paintEvents.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1308245</commentid>
    <comment_count>1</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2012-10-22 17:47:01 +0000</bug_when>
    <thetext>Marking as a junior job. 

To solve find every instance of m_palette in the subclass and replace it with QApplication::palette() instead
Then remove m_palette completely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1308277</commentid>
    <comment_count>2</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2012-10-22 19:30:07 +0000</bug_when>
    <thetext>Note that the palette is also passed in the QStyleOption and available per widget. Generally, there is no need to access the application&apos;s global palette.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1308404</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Klapetek">mklapetek</who>
    <bug_when>2012-10-23 09:48:19 +0000</bug_when>
    <thetext>Btw. isn&apos;t there some signal saying &quot;color scheme has changed&quot;? I know I saw it somewhere, but can&apos;t find it now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1308430</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Klapetek">mklapetek</who>
    <bug_when>2012-10-23 12:18:37 +0000</bug_when>
    <thetext>Git commit d57901ab55947c1f3bae152c7d30bd6704b056b7 by Martin Klapetek.
Committed on 23/10/2012 at 14:14.
Pushed by mklapetek into branch &apos;master&apos;.

Use option&apos;s palette instead of storing app&apos;s palette in class var

Reviewed-by: Rohan Garg
REVIEW: 107008
Related: bug 308802

M  +4    -6    abstract-contact-delegate.cpp
M  +0    -1    abstract-contact-delegate.h
M  +4    -4    contact-delegate-compact.cpp
M  +4    -4    contact-delegate.cpp

http://commits.kde.org/telepathy-contact-list/d57901ab55947c1f3bae152c7d30bd6704b056b7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>