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

List:       kde-commits
Subject:    extragear/plasma/applets/fifteenPuzzle/src
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2008-01-25 0:10:45
Message-ID: 1201219845.563721.27383.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 765978 by aseigo:

keep ourselves in a cute little square by default
BUG:155885


 M  +1 -5      fifteenPuzzle.cpp  
 M  +0 -1      fifteenPuzzle.h  


--- trunk/extragear/plasma/applets/fifteenPuzzle/src/fifteenPuzzle.cpp #765977:765978
@@ -25,6 +25,7 @@
     : Plasma::Applet(parent, args), configDialog(0)
 {
   setHasConfigurationInterface(true);
+  setRemainSquare(true);
   board = new Fifteen(this);
   board->setRect(0, 0, 192, 192); // 48 * 4 = 192
 }
@@ -50,11 +51,6 @@
   updateBoard();
 }
 
-QSizeF FifteenPuzzle::contentSizeHint() const
-{
-  return board->boundingRect().size();
-}
-
 void FifteenPuzzle::constraintsUpdated(Plasma::Constraints constraints)
 {
   if (constraints & Plasma::SizeConstraint) {
--- trunk/extragear/plasma/applets/fifteenPuzzle/src/fifteenPuzzle.h #765977:765978
@@ -32,7 +32,6 @@
     FifteenPuzzle(QObject *parent, const QVariantList &args);
 
     void init();
-    QSizeF contentSizeHint() const;
     void constraintsUpdated(Plasma::Constraints constraints);
     QList<QAction*> contextActions();
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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