@@ -61,7 +61,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
61
61
QWidget *myWidget = new QWidget ( this );
62
62
setWidget ( myWidget );
63
63
64
- QVBoxLayout *v = new QVBoxLayout ( myWidget );
64
+ QVBoxLayout *v = new QVBoxLayout ();
65
65
QHBoxLayout *h = NULL ;
66
66
QLabel *l = NULL ;
67
67
@@ -89,7 +89,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
89
89
h->addWidget ( selectBackPoint );
90
90
v->addLayout ( h );
91
91
92
- h = new QHBoxLayout ( this );
92
+ h = new QHBoxLayout ();
93
93
l = new QLabel ( tr ( " Criterion" ), myWidget );
94
94
mCriterionName = new QComboBox ( myWidget );
95
95
mCriterionName ->insertItem ( 0 , tr ( " Length" ) );
@@ -98,23 +98,23 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
98
98
h->addWidget ( mCriterionName );
99
99
v->addLayout ( h );
100
100
101
- h = new QHBoxLayout ( myWidget );
101
+ h = new QHBoxLayout ();
102
102
l = new QLabel ( tr ( " Length" ), myWidget );
103
103
mPathCostLineEdit = new QLineEdit ( myWidget );
104
104
mPathCostLineEdit ->setReadOnly ( true );
105
105
h->addWidget ( l );
106
106
h->addWidget ( mPathCostLineEdit );
107
107
v->addLayout ( h );
108
108
109
- h = new QHBoxLayout ( myWidget );
109
+ h = new QHBoxLayout ();
110
110
l = new QLabel ( tr ( " Time" ), myWidget );
111
111
mPathTimeLineEdit = new QLineEdit ( myWidget );
112
112
mPathTimeLineEdit ->setReadOnly ( true );
113
113
h->addWidget ( l );
114
114
h->addWidget ( mPathTimeLineEdit );
115
115
v->addLayout ( h );
116
116
117
- h = new QHBoxLayout ( myWidget );
117
+ h = new QHBoxLayout ();
118
118
mCalculate = new QPushButton ( tr ( " Calculate" ), myWidget );
119
119
h->addWidget ( mCalculate );
120
120
QPushButton *pbExport = new QPushButton ( tr ( " Export" ), myWidget );
@@ -126,7 +126,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
126
126
h->addWidget ( mClear );
127
127
v->addLayout ( h );
128
128
129
- h = new QHBoxLayout ( myWidget );
129
+ h = new QHBoxLayout ();
130
130
QPushButton *helpButton = new QPushButton ( tr ( " Help" ), this );
131
131
helpButton->setIcon ( style ()->standardIcon ( QStyle::SP_DialogHelpButton ) );
132
132
h->addWidget ( helpButton );
0 commit comments