Skip to content

Commit

Permalink
Revert "UI: make the layout scrollable when there are many buttons"
Browse files Browse the repository at this point in the history
This reverts commit 0957dc3.

The scroll area adds ugly scroll bars to the button configuration part of the dialog.
  • Loading branch information
orivej committed Dec 31, 2017
1 parent d7624c5 commit 7444bf9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions src/layout_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,9 @@ LayoutEdit::LayoutEdit( LayoutManager* l )
mainLayout->addWidget( joyButtons );

//we have a WidgetStack to represent the multiple joypads
padScroll = new QScrollArea(this);
padScroll->setWidgetResizable(true);
mainLayout->addWidget(padScroll);
padStack = new QStackedWidget( this );
padStack->setFrameStyle(QFrame::Box | QFrame::Sunken );
padScroll->setWidget(padStack);
mainLayout->addWidget(padStack);

//go through each of the available joysticks
// i is the current index into PadStack
Expand Down
2 changes: 0 additions & 2 deletions src/layout_edit.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef QJOYPAD_LAYOUT_EDIT_H
#define QJOYPAD_LAYOUT_EDIT_H

#include <QScrollArea>
#include <QStackedWidget>

//for the tab list of joypads
Expand Down Expand Up @@ -34,7 +33,6 @@ class LayoutEdit : public QWidget {
LayoutManager* lm;
//parts of the dialog:
QVBoxLayout *mainLayout;
QScrollArea *padScroll;
QStackedWidget *padStack;
FlashRadioArray *joyButtons;
QComboBox* cmbLayouts;
Expand Down

0 comments on commit 7444bf9

Please sign in to comment.