Skip to content

Commit

Permalink
[iss-239]
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit 0feb0b8
Author: joaquin.f.fernandez <joaquin.f.fernandez@gmail.com>
Date:   Fri Sep 8 16:15:42 2023 -0300

    Hide test methods in GUI.
  • Loading branch information
joaquinffernandez committed Sep 8, 2023
1 parent 5df9b6f commit b630048
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/gui/runform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ RunDlg::RunDlg(QWidget *parent) : QDialog(parent)
_debugChk->setCheckState(Qt::Unchecked);
on__parallel_currentIndexChanged(_parallel->currentIndex());
connect(_test_methods_cbx, &QCheckBox::stateChanged, this, &RunDlg::updateTestMethods);
updateTestMethods(_test_methods_cbx->checkState());
// Not needed for the moment, if adding test methods we should enable it.
// updateTestMethods(_test_methods_cbx->checkState());
_test_methods_cbx->setVisible(false);
_test_methods_lbl->setVisible(false);
}

void RunDlg::on__showAll_stateChanged(int state)
Expand Down Expand Up @@ -295,9 +298,9 @@ QString RunDlg::getDtSynchString(int idx)
void RunDlg::updateTestMethods(int state)
{
bool hide = state == Qt::Unchecked;
QListView *solver_list = qobject_cast<QListView *>(_solver->view());
solver_list->setRowHidden(getSolverIdx("mLIQSS"), hide);
solver_list->setRowHidden(getSolverIdx("mLIQSS2"), hide);
// To hide a test method use:
// QListView *solver_list = qobject_cast<QListView *>(_solver->view());
// solver_list->setRowHidden(getSolverIdx("my_test_method"), hide);
if (hide) {
setSolver("QSS");
}
Expand Down

0 comments on commit b630048

Please sign in to comment.