fixed issue with "empty" elements [walls, stairs, elevators] during tool selection
minor ui changes
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user