Skip to content

Commit

Permalink
Simplify some editor widget parenting
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 5, 2016
1 parent 0c16195 commit c58a198
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/gui/editorwidgets/qgsfilenamewidgetwrapper.cpp
Expand Up @@ -70,8 +70,8 @@ QWidget* QgsFileNameWidgetWrapper::createWidget( QWidget* parent )
container->setBackgroundRole( QPalette::Window );
container->setAutoFillBackground( true );

QLineEdit* le = new QgsFilterLineEdit( container );
QPushButton* pbn = new QPushButton( tr( "..." ), container );
QLineEdit* le = new QgsFilterLineEdit();
QPushButton* pbn = new QPushButton( tr( "..." ) );
QGridLayout* layout = new QGridLayout();

layout->setMargin( 0 );
Expand Down
8 changes: 4 additions & 4 deletions src/gui/editorwidgets/qgsphotowidgetwrapper.cpp
Expand Up @@ -160,11 +160,11 @@ void QgsPhotoWidgetWrapper::showIndeterminateState()
QWidget* QgsPhotoWidgetWrapper::createWidget( QWidget* parent )
{
QWidget* container = new QWidget( parent );
QGridLayout* layout = new QGridLayout( container );
QgsFilterLineEdit* le = new QgsFilterLineEdit( container );
QgsPixmapLabel* label = new QgsPixmapLabel( parent );
QGridLayout* layout = new QGridLayout();
QgsFilterLineEdit* le = new QgsFilterLineEdit();
QgsPixmapLabel* label = new QgsPixmapLabel();
label->setObjectName( "PhotoLabel" );
QPushButton* pb = new QPushButton( tr( "..." ), container );
QPushButton* pb = new QPushButton( tr( "..." ) );
pb->setObjectName( "FileChooserButton" );

layout->addWidget( label, 0, 0, 1, 2 );
Expand Down
8 changes: 4 additions & 4 deletions src/gui/editorwidgets/qgswebviewwidgetwrapper.cpp
Expand Up @@ -71,11 +71,11 @@ void QgsWebViewWidgetWrapper::showIndeterminateState()
QWidget* QgsWebViewWidgetWrapper::createWidget( QWidget* parent )
{
QWidget* container = new QWidget( parent );
QGridLayout* layout = new QGridLayout( container );
QgsFilterLineEdit* le = new QgsFilterLineEdit( container );
QWebView* webView = new QWebView( parent );
QGridLayout* layout = new QGridLayout();
QgsFilterLineEdit* le = new QgsFilterLineEdit();
QWebView* webView = new QWebView();
webView->setObjectName( "EditorWebView" );
QPushButton* pb = new QPushButton( tr( "..." ), container );
QPushButton* pb = new QPushButton( tr( "..." ) );
pb->setObjectName( "FileChooserButton" );

layout->addWidget( webView, 0, 0, 1, 2 );
Expand Down

0 comments on commit c58a198

Please sign in to comment.