Mod name to clarify value is int

This commit is contained in:
Simon De Backer 2020-07-23 16:49:31 +02:00
parent 698db4e5c0
commit 7420eeb60d
2 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ ConfigDialog::ConfigDialog(QWidget *parent) : QDialog(parent) {
// liste des pages
pages_list = new QListWidget();
pages_list -> setViewMode(QListView::IconMode);
if(mymachineinfo->get_max_screen_height()<1000){
if(mymachineinfo->i_max_screen_height()<1000){
pages_list -> setIconSize(QSize(64, 64));
} else {
pages_list -> setIconSize(QSize(128, 128));
@ -80,8 +80,8 @@ ConfigDialog::ConfigDialog(QWidget *parent) : QDialog(parent) {
connect(pages_list, SIGNAL(currentRowChanged(int)),
pages_widget, SLOT(setCurrentIndex(int)));
resize(mymachineinfo->get_max_screen_width(),
mymachineinfo->get_max_screen_height());
resize(mymachineinfo->i_max_screen_width(),
mymachineinfo->i_max_screen_height());
#ifdef Q_OS_MACOS
if (parent) {

View File

@ -29,8 +29,8 @@ class Machine_info : public QObject
Q_OBJECT
public:
explicit Machine_info(QObject *parent = nullptr);
int32_t get_max_screen_width();
int32_t get_max_screen_height();
int32_t i_max_screen_width();
int32_t i_max_screen_height();
signals: