Commit ff99d6fe authored by Casper Boemann's avatar Casper Boemann
Browse files

make s_rotateCursor static

svn path=/trunk/koffice/; revision=547764
parent bf1f2d23
......@@ -256,6 +256,7 @@ void KoInteractionTool::recalcSelectionBox() {
// ########## SelectionDecorator ############
QImage * SelectionDecorator::s_rotateCursor=0;
SelectionDecorator::SelectionDecorator(QRectF bounds, KoFlake::SelectionHandle arrows,
bool rotationHandles, bool shearHandles)
......@@ -264,11 +265,11 @@ SelectionDecorator::SelectionDecorator(QRectF bounds, KoFlake::SelectionHandle a
, m_arrows(arrows)
, m_bounds(bounds)
{
//if(SelectionDecorator::s_rotateCursor == 0) {
if(SelectionDecorator::s_rotateCursor == 0) {
s_rotateCursor = new QImage();
s_rotateCursor->load("/home/zander/sources/kde4/flake/lib/rotate.png");
//sd.setObject(&SelectionDecorator::s_rotateCursor, SelectionDecorator::s_rotateCursor);
//}
}
}
void SelectionDecorator::paint(QPainter &painter, KoViewConverter &converter) {
......
......@@ -159,7 +159,7 @@ private:
KoSelection *m_selection;
QRectF m_bounds;
/*static*/ QImage *s_rotateCursor;
static QImage *s_rotateCursor;
//static KStaticDeleter<QImage> sd;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment