fixed issue with "empty" elements [walls, stairs, elevators] during tool selection

minor ui changes
This commit is contained in:
2017-04-16 09:47:12 +02:00
parent 648fb9590b
commit 6fb1c3a5fc
8 changed files with 42 additions and 14 deletions

View File

@@ -48,6 +48,7 @@ public:
void paint(Painter& p) override {
QBrush brush;
QPen pen;
// fill-style (depends on the mode)
switch (fo.method) {
@@ -65,8 +66,14 @@ public:
brush.setColor(QColor(255,0,0));
}
if (hasFocus()) {
brush.setStyle(Qt::BrushStyle::FDiagPattern);
}
// outline + filled area
p.setPenBrush(Qt::black, brush);
pen.setColor(Qt::black);
pen.setWidth( hasFocus() ? 2 : 1 );
p.setPenBrush(pen, brush);
p.drawPolygon(fo.poly.points);
// selected endpoints?