[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-05-24 23:29:27
Message-ID: 1211671767.560175.19880.nullmailer () svn ! kde ! org
[Download RAW message or body]
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);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic