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