From kde-commits Sat May 24 23:29:27 2008 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Sat, 24 May 2008 23:29:27 +0000 To: kde-commits Subject: extragear/plasma/applets/fifteenPuzzle/src Message-Id: <1211671767.560175.19880.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=121167177409523 SVN commit 812237 by aseigo: proper scaling and sizing; this could be a lot prettier if the pieces weren't scaled but rather resized. no tie for that otday, i just wnat it to actually basically work again. M +1 -1 fifteen.cpp M +2 -1 fifteenPuzzle.cpp --- trunk/extragear/plasma/applets/fifteenPuzzle/src/fifteen.cpp #812236:812237 @@ -136,7 +136,7 @@ m_pieces[i]->showNumeral(m_numerals); } - update(boundingRect()); + update(); } void Fifteen::setNumerals(bool show) --- trunk/extragear/plasma/applets/fifteenPuzzle/src/fifteenPuzzle.cpp #812236:812237 @@ -63,7 +63,8 @@ void FifteenPuzzle::constraintsEvent(Plasma::Constraints constraints) { if (constraints & Plasma::SizeConstraint) { - QSizeF size = this->geometry().size(); + QSizeF size = contentsRect().size(); + board->resetTransform(); board->scale(size.width() / 192, size.height() / 192); } }