##// END OF EJS Templates
Fix test application to have valid window size
Michal Klocek -
r147:ede69107bdd8
parent child
Show More
@@ -62,6 +62,7 void ChartPresenter::handleGeometryChanged()
62 {
62 {
63 m_rect = QRectF(QPoint(0,0),m_chart->size());
63 m_rect = QRectF(QPoint(0,0),m_chart->size());
64 m_rect.adjust(m_marginSize,m_marginSize, -m_marginSize, -m_marginSize);
64 m_rect.adjust(m_marginSize,m_marginSize, -m_marginSize, -m_marginSize);
65 Q_ASSERT(m_rect.isValid());
65 emit geometryChanged(m_rect);
66 emit geometryChanged(m_rect);
66 }
67 }
67
68
@@ -11,6 +11,7 int main(int argc, char *argv[])
11 QApplication a(argc, argv);
11 QApplication a(argc, argv);
12
12
13 MainWidget w;
13 MainWidget w;
14 w.resize(1000,600);
14 w.show();
15 w.show();
15
16
16 return a.exec();
17 return a.exec();
General Comments 0
You need to be logged in to leave comments. Login now