Skip to content

Commit

Permalink
remove unnecessary includes
Browse files Browse the repository at this point in the history
remove obs code
remove obs initializations
  • Loading branch information
WandererFan committed Sep 29, 2016
1 parent 1d281d8 commit b27a526
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 34 deletions.
4 changes: 0 additions & 4 deletions src/Mod/TechDraw/Gui/Command.cpp
Expand Up @@ -516,10 +516,6 @@ void CmdTechDrawClip::activated(int iMsg)
std::string FeatName = getUniqueObjectName("Clip");
openCommand("Create Clip");
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewClip','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.ShowFrame = True",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Height = 30.0",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Width = 30.0",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.ShowLabels = False",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.addView(App.activeDocument().%s)",PageName.c_str(),FeatName.c_str());
updateActive();
commitCommand();
Expand Down
25 changes: 0 additions & 25 deletions src/Mod/TechDraw/Gui/QGIArrow.cpp
Expand Up @@ -32,7 +32,6 @@
#include <QPainter>
#endif

#include "QGIView.h"
#include "QGIArrow.h"

using namespace TechDrawGui;
Expand All @@ -51,30 +50,6 @@ QGIArrow::QGIArrow() :
setFlag(QGraphicsItem::ItemIsMovable, false);
}

//QPainterPath QGIArrow::shape() const
//{
// return path();
//}

//void QGIArrow::setHighlighted(bool state)
//{
// QPen myPen = pen();
// QBrush myBrush = brush();
// if(state) {
// myPen.setColor(Qt::blue);
// myBrush.setColor(Qt::blue);
// } else {
// myPen.setColor(Qt::black);
// myBrush.setColor(Qt::black);
// }
// setBrush(myBrush);
// setPen(myPen);
//}

//QVariant QGIArrow::itemChange(GraphicsItemChange change, const QVariant &value)
//{
// return QGraphicsPathItem::itemChange(change, value);
//}

void QGIArrow::flip(bool state) {
isFlipped = state;
Expand Down
1 change: 0 additions & 1 deletion src/Mod/TechDraw/Gui/QGIDecoration.cpp
Expand Up @@ -36,7 +36,6 @@
#include <Base/Console.h>
#include <Base/Parameter.h>

#include <qmath.h>
#include "QGIDecoration.h"

using namespace TechDrawGui;
Expand Down
1 change: 0 additions & 1 deletion src/Mod/TechDraw/Gui/QGIDimLines.cpp
Expand Up @@ -32,7 +32,6 @@
#include <QPainter>
#endif

#include "QGIView.h"
#include "QGIDimLines.h"

using namespace TechDrawGui;
Expand Down
2 changes: 0 additions & 2 deletions src/Mod/TechDraw/Gui/QGIEdge.cpp
Expand Up @@ -36,8 +36,6 @@
#include <Base/Console.h>
#include <Base/Parameter.h>

#include <qmath.h>
#include "QGIView.h"
#include "QGIEdge.h"

using namespace TechDrawGui;
Expand Down
1 change: 0 additions & 1 deletion src/Mod/TechDraw/Gui/QGIFace.cpp
Expand Up @@ -47,7 +47,6 @@

#include "QGCustomSvg.h"
#include "QGCustomRect.h"
#include "QGIView.h"
#include "QGIFace.h"

using namespace TechDrawGui;
Expand Down
1 change: 1 addition & 0 deletions src/Mod/TechDraw/Gui/ZVALUE.h
Expand Up @@ -4,6 +4,7 @@ namespace ZVALUE {
const int BACKGROUND = -999999;
const int TEMPLATE = -1000;
const int SVGTEMPLATE = -500;
//border/label const int border = 0;
const int FACE = 10;
const int HATCH = 30;
const int HIDEDGE = 40;
Expand Down

0 comments on commit b27a526

Please sign in to comment.