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

List:       kde-commits
Subject:    KDE/kdeplasma-addons/applets
From:       Ambroz Bizjak <ambrop7 () gmail ! com>
Date:       2009-02-09 15:43:55
Message-ID: 1234194235.934231.11415.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 923859 by abizjak:

Emit Applet::appletTransformedItself when applets resize themselves.


 M  +1 -0      binary-clock/binaryclock.cpp  
 M  +1 -0      charselect/charselect.cpp  
 M  +2 -0      comic/comic.cpp  
 M  +2 -0      frame/frame.cpp  
 M  +2 -0      fuzzy-clock/fuzzyClock.cpp  
 M  +1 -0      leavenote/leavenote.cpp  


--- trunk/KDE/kdeplasma-addons/applets/binary-clock/binaryclock.cpp #923858:923859
@@ -97,6 +97,7 @@
 
         } else {
             resize(getWidthFromHeight((int) contentsRect().height()) + borderWidth, \
contentsRect().height() + borderHeight); +            emit appletTransformedItself();
         }
     }
 }
--- trunk/KDE/kdeplasma-addons/applets/charselect/charselect.cpp #923858:923859
@@ -46,6 +46,7 @@
         if (size().width() < widget()->size().width() || 
              size().height() < widget()->size().height()) {
             resize(widget()->size());
+            emit appletTransformedItself();
         }
     }
 }
--- trunk/KDE/kdeplasma-addons/applets/comic/comic.cpp #923858:923859
@@ -440,6 +440,7 @@
 void ComicApplet::slotShowMaxSize()
 {
     resize( mMaxSize );
+    emit appletTransformedItself();
 }
 
 void ComicApplet::updateScrollBars()
@@ -569,6 +570,7 @@
         }
 
         resize( mLastSize );
+        emit appletTransformedItself();
     }
 }
 
--- trunk/KDE/kdeplasma-addons/applets/frame/frame.cpp #923858:923859
@@ -85,6 +85,7 @@
 	QSizeF sizeHint = contentSizeHint();
 	if (geometry().size() != sizeHint) {
             resize(sizeHint); 
+            emit appletTransformedItself();
 	} else {        
             update();
 	}
@@ -189,6 +190,7 @@
              m_swOutline = 8;
 	     //Restore widget geometry to image proportions
 	     resize(contentSizeHint());
+	     emit appletTransformedItself();
 	}
     }  
     
--- trunk/KDE/kdeplasma-addons/applets/fuzzy-clock/fuzzyClock.cpp #923858:923859
@@ -534,6 +534,7 @@
     } else {
         //add margins
         resize ( m_contentSize + QSizeF(size()-contentsRect().size()) );
+        emit appletTransformedItself();
     }
 
 } else { //in a panel or timestring wider than plasmoid -> change size to the \
minimal needed space, i.e. the timestring will not increase in point-size OR plasmoid \
in Panel. @@ -667,6 +668,7 @@
         //we use the minimal height here, since the user has given us too much \
height we cannot use for anything useful. minimal width because we are in a panel.  \
                kDebug() << "we set the minimum size needed as the size we want";
         resize ( QSizeF ( m_minimumContentSize.width() + \
m_margin*2,m_minimumContentSize.height() ) + (size() - contentsRect().size()) ); +    \
emit appletTransformedItself();  }
 }
 }
--- trunk/KDE/kdeplasma-addons/applets/leavenote/leavenote.cpp #923858:923859
@@ -128,6 +128,7 @@
             setMinimumSize(10,10);
             setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
             resize(340, 250);
+            emit appletTransformedItself();
         }
     }
 }


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

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