qgsuserinputwidget.cpp (QGIS-final-3_10_11) | : | qgsuserinputwidget.cpp (QGIS-final-3_10_12) | ||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
#include "qgsuserinputwidget.h" | #include "qgsuserinputwidget.h" | |||
#include <QFrame> | #include <QFrame> | |||
QgsUserInputWidget::QgsUserInputWidget( QWidget *parent ) | QgsUserInputWidget::QgsUserInputWidget( QWidget *parent ) | |||
: QgsFloatingWidget( parent ? parent->window() : nullptr ) | : QgsFloatingWidget( parent ? parent->window() : nullptr ) | |||
{ | { | |||
//TODO add title tr( "User Input Panel" ) | //TODO add title tr( "User Input Panel" ) | |||
QFrame *f = new QFrame(); | QFrame *f = new QFrame(); | |||
f->setObjectName( QStringLiteral( "mUserInputContainer" ) ); | ||||
QPalette pal = palette(); | QPalette pal = palette(); | |||
pal.setBrush( backgroundRole(), pal.window() ); | pal.setBrush( backgroundRole(), pal.window() ); | |||
f->setPalette( pal ); | f->setPalette( pal ); | |||
f->setAutoFillBackground( true ); | f->setAutoFillBackground( true ); | |||
f->setFrameShape( QFrame::StyledPanel ); | f->setFrameShape( QFrame::StyledPanel ); | |||
f->setFrameShadow( QFrame::Plain ); | f->setFrameShadow( QFrame::Plain ); | |||
mLayout = new QBoxLayout( QBoxLayout::TopToBottom ); | mLayout = new QBoxLayout( QBoxLayout::TopToBottom ); | |||
mLayout->setAlignment( Qt::AlignRight | Qt::AlignTop ); | mLayout->setAlignment( Qt::AlignRight | Qt::AlignTop ); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |