File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,32 @@ void MainWindow::loadSVG()
110
110
return ;
111
111
}
112
112
113
+ // Show everithing
114
+ for (ssplib::ItemBase& label : stationPlan->labels )
115
+ {
116
+ label.visible = true ;
117
+ }
118
+ for (ssplib::ItemBase& track : stationPlan->platforms )
119
+ {
120
+ track.visible = true ;
121
+ }
122
+ for (ssplib::ItemBase& track : stationPlan->trackConnections )
123
+ {
124
+ track.visible = true ;
125
+ }
126
+ stationPlan->drawLabels = true ;
127
+ stationPlan->drawTracks = true ;
128
+ stationPlan->platformPenWidth = 2 ;
129
+
113
130
setZoom (100 );
114
131
zoomToFit ();
115
132
}
116
133
117
134
void MainWindow::setZoom (int val)
118
135
{
119
- if (val == zoom || val > 400 || val < 25 )
136
+ val = qBound (25 , val, 400 );
137
+
138
+ if (val == zoom)
120
139
return ;
121
140
122
141
zoom = val;
You can’t perform that action at this time.
0 commit comments