Make use of showEvent, so there's no more need in manual resizing of draw map widget
--- a/QTfrontend/drawmapwidget.cpp Sat Dec 18 21:08:02 2010 +0300
+++ b/QTfrontend/drawmapwidget.cpp Sat Dec 18 21:17:12 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 21:08:02 2010 +0300
+++ b/QTfrontend/drawmapwidget.h Sat Dec 18 21:17:12 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;