[Uml-devel] KDE/kdesdk/umbrello/umbrello
Ralf Habacker
ralf.habacker at gmail.com
Mon Sep 24 20:37:33 UTC 2012
SVN commit 1317626 by habacker:
Removed old style background grid printing, which has been replaced by class LayoutGrid
M +0 -18 umlscene.cpp
M +0 -2 umlscene.h
--- trunk/KDE/kdesdk/umbrello/umbrello/umlscene.cpp #1317625:1317626
@@ -3943,24 +3943,6 @@
}
/**
- * Sets the color of the background and the grid dots.
- */
-void UMLScene::drawBackground(QPainter *painter, const UMLSceneRect & clip)
-{
- Q_UNUSED(clip);
- if( isSnapGridVisible() ) {
- painter->setPen( gridDotColor() );
- int gridX = snapX();
- int gridY = snapY();
- int numX = activeView()->width() / gridX;
- int numY = activeView()->height() / gridY;
- for( int x = 0; x <= numX; x++ )
- for( int y = 0; y < numY; y++ )
- painter->drawPoint( x * gridX, y * gridY );
- }
-}
-
-/**
* Creates the "diagram" tag and fills it with the contents of the diagram.
*/
void UMLScene::saveToXMI(QDomDocument & qDoc, QDomElement & qElement)
--- trunk/KDE/kdesdk/umbrello/umbrello/umlscene.h #1317625:1317626
@@ -564,8 +564,6 @@
UMLSceneValue& px, UMLSceneValue& py, UMLSceneValue& qx, UMLSceneValue& qy);
void forceUpdateWidgetFontMetrics(QPainter *painter);
- virtual void drawBackground(QPainter *painter, const UMLSceneRect & clip);
-
int m_nCollaborationId; ///< Used for creating unique name of collaboration messages.
UMLScenePoint m_Pos;
bool m_bCreateObject;
More information about the umbrello-devel
mailing list