changeset 4556 | c7f4eb6cbd0c |
parent 4520 | e7882bd1a894 |
child 4560 | 5d6c7f88db73 |
4555:85150dfb5959 | 4556:c7f4eb6cbd0c |
---|---|
34 Q_UNUSED(event); |
34 Q_UNUSED(event); |
35 |
35 |
36 if(ui->graphicsView && ui->graphicsView->scene()) |
36 if(ui->graphicsView && ui->graphicsView->scene()) |
37 ui->graphicsView->fitInView(ui->graphicsView->scene()->sceneRect(), Qt::KeepAspectRatio); |
37 ui->graphicsView->fitInView(ui->graphicsView->scene()->sceneRect(), Qt::KeepAspectRatio); |
38 } |
38 } |
39 |
|
40 void DrawMapWidget::showEvent(QShowEvent * event) |
|
41 { |
|
42 Q_UNUSED(event); |
|
43 |
|
44 resizeEvent(0); |
|
45 } |