Mod ScrollArea on demand

QScrollArea is not asked if the screen is big enough.
This commit is contained in:
Simon De Backer
2020-07-23 17:24:10 +02:00
parent c5eb5af47d
commit 55beaa9be9

View File

@@ -30,8 +30,8 @@ ConfigDialog::ConfigDialog(QWidget *parent) : QDialog(parent) {
Machine_info *mymachineinfo= new Machine_info(this);
//ScrollArea for low screens
QScrollArea *scroll = new QScrollArea(this);
scroll->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
scroll->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
scroll->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
scroll->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
// liste des pages
pages_list = new QListWidget();