Skip to content

Commit

Permalink
fix runtime warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Dec 23, 2011
1 parent 06aeb14 commit 36f9037
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/qgsbrowserdockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ QgsBrowserDockWidget::QgsBrowserDockWidget( QWidget * parent ) :
mRefreshButton->setAutoRaise( true );
connect( mRefreshButton, SIGNAL( clicked() ), this, SLOT( refresh() ) );

QVBoxLayout* layout = new QVBoxLayout( this );
QVBoxLayout* layout = new QVBoxLayout();
layout->setContentsMargins( 0, 0, 0, 0 );
layout->setSpacing( 0 );
layout->addWidget( mRefreshButton );
Expand Down
12 changes: 6 additions & 6 deletions src/plugins/roadgraph/shortestpathwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
QWidget *myWidget = new QWidget( this );
setWidget( myWidget );

QVBoxLayout *v = new QVBoxLayout( myWidget );
QVBoxLayout *v = new QVBoxLayout();
QHBoxLayout *h = NULL;
QLabel *l = NULL;

Expand Down Expand Up @@ -89,7 +89,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
h->addWidget( selectBackPoint );
v->addLayout( h );

h = new QHBoxLayout( this );
h = new QHBoxLayout();
l = new QLabel( tr( "Criterion" ), myWidget );
mCriterionName = new QComboBox( myWidget );
mCriterionName->insertItem( 0, tr( "Length" ) );
Expand All @@ -98,23 +98,23 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
h->addWidget( mCriterionName );
v->addLayout( h );

h = new QHBoxLayout( myWidget );
h = new QHBoxLayout();
l = new QLabel( tr( "Length" ), myWidget );
mPathCostLineEdit = new QLineEdit( myWidget );
mPathCostLineEdit->setReadOnly( true );
h->addWidget( l );
h->addWidget( mPathCostLineEdit );
v->addLayout( h );

h = new QHBoxLayout( myWidget );
h = new QHBoxLayout();
l = new QLabel( tr( "Time" ), myWidget );
mPathTimeLineEdit = new QLineEdit( myWidget );
mPathTimeLineEdit->setReadOnly( true );
h->addWidget( l );
h->addWidget( mPathTimeLineEdit );
v->addLayout( h );

h = new QHBoxLayout( myWidget );
h = new QHBoxLayout();
mCalculate = new QPushButton( tr( "Calculate" ), myWidget );
h->addWidget( mCalculate );
QPushButton *pbExport = new QPushButton( tr( "Export" ), myWidget );
Expand All @@ -126,7 +126,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
h->addWidget( mClear );
v->addLayout( h );

h = new QHBoxLayout( myWidget );
h = new QHBoxLayout();
QPushButton *helpButton = new QPushButton( tr( "Help" ), this );
helpButton->setIcon( style()->standardIcon( QStyle::SP_DialogHelpButton ) );
h->addWidget( helpButton );
Expand Down

0 comments on commit 36f9037

Please sign in to comment.