Moved advanced key binding buttons to bottom of window.
This commit is contained in:
parent
da084fb184
commit
39480dcf91
|
@ -436,20 +436,20 @@ GamePadConfDialog_t::GamePadConfDialog_t(QWidget *parent)
|
||||||
mainWidget->setLayout(mainLayoutH);
|
mainWidget->setLayout(mainLayoutH);
|
||||||
mainWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
mainWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
|
|
||||||
|
vbox1 = new QVBoxLayout();
|
||||||
hbox1 = new QHBoxLayout();
|
hbox1 = new QHBoxLayout();
|
||||||
vbox = new QVBoxLayout();
|
hbox = new QHBoxLayout();
|
||||||
|
|
||||||
advOptLayout->setLayout(hbox1);
|
advOptLayout->setLayout(hbox1);
|
||||||
hbox1->addLayout(vbox);
|
hbox1->addLayout(vbox1);
|
||||||
|
|
||||||
newKeyBindBtn = new QPushButton( tr("New") );
|
newKeyBindBtn = new QPushButton( tr("New") );
|
||||||
editKeyBindBtn = new QPushButton( tr("Edit") );
|
editKeyBindBtn = new QPushButton( tr("Edit") );
|
||||||
delKeyBindBtn = new QPushButton( tr("Delete") );
|
delKeyBindBtn = new QPushButton( tr("Delete") );
|
||||||
|
|
||||||
vbox->addWidget( newKeyBindBtn , 1 );
|
hbox->addWidget( newKeyBindBtn );
|
||||||
vbox->addWidget( editKeyBindBtn, 1 );
|
hbox->addWidget( editKeyBindBtn );
|
||||||
vbox->addWidget( delKeyBindBtn , 1 );
|
hbox->addWidget( delKeyBindBtn );
|
||||||
vbox->addStretch(5);
|
|
||||||
|
|
||||||
keyBindTree = new QTreeWidget();
|
keyBindTree = new QTreeWidget();
|
||||||
|
|
||||||
|
@ -468,7 +468,8 @@ GamePadConfDialog_t::GamePadConfDialog_t(QWidget *parent)
|
||||||
keyBindTree->header()->setSectionResizeMode(QHeaderView::Interactive);
|
keyBindTree->header()->setSectionResizeMode(QHeaderView::Interactive);
|
||||||
keyBindTree->setMinimumWidth( 256 );
|
keyBindTree->setMinimumWidth( 256 );
|
||||||
|
|
||||||
hbox1->addWidget(keyBindTree);
|
vbox1->addWidget(keyBindTree);
|
||||||
|
vbox1->addLayout(hbox);
|
||||||
|
|
||||||
connect( newKeyBindBtn, SIGNAL(clicked()), this, SLOT(newKeyBindingCallback(void)));
|
connect( newKeyBindBtn, SIGNAL(clicked()), this, SLOT(newKeyBindingCallback(void)));
|
||||||
connect(editKeyBindBtn, SIGNAL(clicked()), this, SLOT(editKeyBindingCallback(void)));
|
connect(editKeyBindBtn, SIGNAL(clicked()), this, SLOT(editKeyBindingCallback(void)));
|
||||||
|
|
Loading…
Reference in New Issue