Skip to content

Commit

Permalink
MainLayoutEditor: Removed Up/Down buttons for QT 5.12
Browse files Browse the repository at this point in the history
There is an issue with qt 5.12 where moveRow does not work
properly. Therefore the buttons were removed for < QT5.12 (ubuntu 20.04)
  • Loading branch information
foldynl committed Nov 27, 2023
1 parent 563d928 commit 27bd1fd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ui/MainLayoutEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ MainLayoutEditor::MainLayoutEditor(const QString &layoutName,

ui->setupUi(this);

#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
// disabled for QT 5.12 (ubuntu 20.04) due to issue in QT
// moveRow does not work
ui->qsoRowADownButton->setVisible(false);
ui->qsoRowAUpButton->setVisible(false);
ui->qsoRowBDownButton->setVisible(false);
ui->qsoRowBUpButton->setVisible(false);
ui->detailColADownButton->setVisible(false);
ui->detailColAUpButton->setVisible(false);
ui->detailColBDownButton->setVisible(false);
ui->detailColBUpButton->setVisible(false);
ui->detailColCDownButton->setVisible(false);
ui->detailColCUpButton->setVisible(false);
#endif

availableFieldsModel->setStringList(dynamicWidgets->getAllFieldLabelNames());
availableFieldsModel->sort(0);

Expand Down

0 comments on commit 27bd1fd

Please sign in to comment.