@@ -61,7 +61,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
6161 QWidget *myWidget = new QWidget ( this );
6262 setWidget ( myWidget );
6363
64- QVBoxLayout *v = new QVBoxLayout ( myWidget );
64+ QVBoxLayout *v = new QVBoxLayout ();
6565 QHBoxLayout *h = NULL ;
6666 QLabel *l = NULL ;
6767
@@ -89,7 +89,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
8989 h->addWidget ( selectBackPoint );
9090 v->addLayout ( h );
9191
92- h = new QHBoxLayout ( this );
92+ h = new QHBoxLayout ();
9393 l = new QLabel ( tr ( " Criterion" ), myWidget );
9494 mCriterionName = new QComboBox ( myWidget );
9595 mCriterionName ->insertItem ( 0 , tr ( " Length" ) );
@@ -98,23 +98,23 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
9898 h->addWidget ( mCriterionName );
9999 v->addLayout ( h );
100100
101- h = new QHBoxLayout ( myWidget );
101+ h = new QHBoxLayout ();
102102 l = new QLabel ( tr ( " Length" ), myWidget );
103103 mPathCostLineEdit = new QLineEdit ( myWidget );
104104 mPathCostLineEdit ->setReadOnly ( true );
105105 h->addWidget ( l );
106106 h->addWidget ( mPathCostLineEdit );
107107 v->addLayout ( h );
108108
109- h = new QHBoxLayout ( myWidget );
109+ h = new QHBoxLayout ();
110110 l = new QLabel ( tr ( " Time" ), myWidget );
111111 mPathTimeLineEdit = new QLineEdit ( myWidget );
112112 mPathTimeLineEdit ->setReadOnly ( true );
113113 h->addWidget ( l );
114114 h->addWidget ( mPathTimeLineEdit );
115115 v->addLayout ( h );
116116
117- h = new QHBoxLayout ( myWidget );
117+ h = new QHBoxLayout ();
118118 mCalculate = new QPushButton ( tr ( " Calculate" ), myWidget );
119119 h->addWidget ( mCalculate );
120120 QPushButton *pbExport = new QPushButton ( tr ( " Export" ), myWidget );
@@ -126,7 +126,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
126126 h->addWidget ( mClear );
127127 v->addLayout ( h );
128128
129- h = new QHBoxLayout ( myWidget );
129+ h = new QHBoxLayout ();
130130 QPushButton *helpButton = new QPushButton ( tr ( " Help" ), this );
131131 helpButton->setIcon ( style ()->standardIcon ( QStyle::SP_DialogHelpButton ) );
132132 h->addWidget ( helpButton );
0 commit comments