--- a/QTfrontend/drawmapwidget.cpp Sat Dec 18 19:15:26 2010 +0100
+++ b/QTfrontend/drawmapwidget.cpp Sat Dec 18 21:17:37 2010 +0300
@@ -36,3 +36,10 @@
if(ui->graphicsView && ui->graphicsView->scene())
ui->graphicsView->fitInView(ui->graphicsView->scene()->sceneRect(), Qt::KeepAspectRatio);
}
+
+void DrawMapWidget::showEvent(QShowEvent * event)
+{
+ Q_UNUSED(event);
+
+ resizeEvent(0);
+}
--- a/QTfrontend/drawmapwidget.h Sat Dec 18 19:15:26 2010 +0100
+++ b/QTfrontend/drawmapwidget.h Sat Dec 18 21:17:37 2010 +0300
@@ -53,6 +53,7 @@
protected:
void changeEvent(QEvent *e);
virtual void resizeEvent(QResizeEvent * event);
+ virtual void showEvent(QShowEvent * event);
private:
Ui::DrawMapWidget *ui;