From 39480dcf91ee87ed68bed9ec7c367ec382a0fcf4 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Mon, 2 Aug 2021 21:10:53 -0400 Subject: [PATCH] Moved advanced key binding buttons to bottom of window. --- src/drivers/Qt/GamePadConf.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/drivers/Qt/GamePadConf.cpp b/src/drivers/Qt/GamePadConf.cpp index a7cf19d7..e2dbb34c 100644 --- a/src/drivers/Qt/GamePadConf.cpp +++ b/src/drivers/Qt/GamePadConf.cpp @@ -436,20 +436,20 @@ GamePadConfDialog_t::GamePadConfDialog_t(QWidget *parent) mainWidget->setLayout(mainLayoutH); mainWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + vbox1 = new QVBoxLayout(); hbox1 = new QHBoxLayout(); - vbox = new QVBoxLayout(); + hbox = new QHBoxLayout(); advOptLayout->setLayout(hbox1); - hbox1->addLayout(vbox); + hbox1->addLayout(vbox1); newKeyBindBtn = new QPushButton( tr("New") ); editKeyBindBtn = new QPushButton( tr("Edit") ); delKeyBindBtn = new QPushButton( tr("Delete") ); - vbox->addWidget( newKeyBindBtn , 1 ); - vbox->addWidget( editKeyBindBtn, 1 ); - vbox->addWidget( delKeyBindBtn , 1 ); - vbox->addStretch(5); + hbox->addWidget( newKeyBindBtn ); + hbox->addWidget( editKeyBindBtn ); + hbox->addWidget( delKeyBindBtn ); keyBindTree = new QTreeWidget(); @@ -468,7 +468,8 @@ GamePadConfDialog_t::GamePadConfDialog_t(QWidget *parent) keyBindTree->header()->setSectionResizeMode(QHeaderView::Interactive); keyBindTree->setMinimumWidth( 256 ); - hbox1->addWidget(keyBindTree); + vbox1->addWidget(keyBindTree); + vbox1->addLayout(hbox); connect( newKeyBindBtn, SIGNAL(clicked()), this, SLOT(newKeyBindingCallback(void))); connect(editKeyBindBtn, SIGNAL(clicked()), this, SLOT(editKeyBindingCallback(void)));