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

List:       kde-commits
Subject:    extragear/utils/kpager
From:       Pino Toscano <pino () kde ! org>
Date:       2015-11-19 22:54:10
Message-ID: E1ZzY5i-0007K1-Ll () scm ! kde ! org
[Download RAW message or body]

SVN commit 1444729 by pino:

remove Desktop::paintFrame

Desktop draws a frame for highlighting on its own, without that method
(which is unused)


 M  +0 -12     desktop.cpp  
 M  +0 -5      desktop.h  
 M  +0 -2      kpager.cpp  


--- trunk/extragear/utils/kpager/desktop.cpp #1444728:1444729
@@ -315,18 +315,6 @@
   return true;
 }
 
-void Desktop::paintFrame(bool active)
-{
-  QPainter p(this);
-
-  if ( active )
-     p.setPen(Qt::yellow);
-  else
-     p.setPen(QPalette::Base);
-  p.drawRect(rect());
-  p.end();
-}
-
 void Desktop::paintEvent( QPaintEvent * )
 {
   QPainter p;
--- trunk/extragear/utils/kpager/desktop.h #1444728:1444729
@@ -64,11 +64,6 @@
 
   QSize sizeHint() const;
 
-  /**
-   * active is a bool that specifies if the frame is the active
-   * one or not (so that it's painted highlighted or not)
-   */
-  void paintFrame(bool active);
   void updateDesktopName();
 
   bool m_grabWindows;
--- trunk/extragear/utils/kpager/kpager.cpp #1444728:1444729
@@ -549,9 +549,7 @@
 void KPager::slotCurrentDesktopChanged(int desk)
 {
     if (m_currentDesktop==desk) return;
-//     m_desktops[m_currentDesktop-1]->paintFrame( false );
     m_desktops[m_currentDesktop-1]->update();
-//     m_desktops[desk-1]->paintFrame( true );
     m_desktops[desk-1]->update();
 //    m_desktops[m_currentDesktop-1]->update();
 //    m_desktops[desk-1]->update();
[prev in list] [next in list] [prev in thread] [next in thread] 

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