adjust some too pruning QLayout::setContentsMargins
This commit is contained in:
parent
6995ef0eb4
commit
454660c3e8
|
|
@ -1237,6 +1237,7 @@ QWidget* EntityInspector_constructWindow( QWidget* toplevel ){
|
|||
{
|
||||
// key/value entry
|
||||
auto grid = new QGridLayout;
|
||||
grid->setContentsMargins( 4, 0, 4, 0 );
|
||||
vbox->addLayout( grid );
|
||||
{
|
||||
grid->addWidget( new QLabel( "Key" ), 0, 0 );
|
||||
|
|
@ -1284,6 +1285,7 @@ QWidget* EntityInspector_constructWindow( QWidget* toplevel ){
|
|||
}
|
||||
{
|
||||
auto hbox = new QHBoxLayout;
|
||||
hbox->setContentsMargins( 4, 0, 4, 0 );
|
||||
vbox->addLayout( hbox );
|
||||
{
|
||||
auto b = new QPushButton( "Clear All" );
|
||||
|
|
|
|||
|
|
@ -283,7 +283,7 @@ void EntityList_constructWindow( QWidget* main_window ){
|
|||
g_guiSettings.addWindow( window, "EntityList/geometry", 350, 500 );
|
||||
{
|
||||
auto *vbox = new QVBoxLayout( window );
|
||||
vbox->setContentsMargins( 0, 0, 0, 0 );
|
||||
vbox->setContentsMargins( 4, 0, 4, 4 );
|
||||
{
|
||||
auto *tree = getEntityList().m_tree_view = new QTreeView;
|
||||
tree->setHeaderHidden( true );
|
||||
|
|
|
|||
|
|
@ -2230,7 +2230,7 @@ class TextEditor : public QObject
|
|||
|
||||
auto *hbox = new QHBoxLayout;
|
||||
vbox->addLayout( hbox );
|
||||
hbox->setContentsMargins( 0, 0, 0, 0 );
|
||||
hbox->setContentsMargins( 4, 0, 4, 4 );
|
||||
|
||||
m_button = new QPushButton( "Save" );
|
||||
m_button->setSizePolicy( QSizePolicy::Policy::Fixed, QSizePolicy::Policy::Fixed );
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user