Skip to content

Commit

Permalink
rename button "Apply" to "Done"
Browse files Browse the repository at this point in the history
  • Loading branch information
w0lek committed Nov 16, 2023
1 parent 7f55c04 commit b502ace
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/InteractivePathAnalysis/custommenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ CustomMenu::CustomMenu(QPushButton* caller): QWidget(caller)
layout->addLayout(buttonsLayout);

QPushButton* bnCancel = new QPushButton(tr("Cancel"));
QPushButton* bnApply = new QPushButton(tr("Apply"));
QPushButton* bnDone = new QPushButton(tr("Done"));

connect(bnCancel, &QPushButton::clicked, this, [this](){
hide();

});
connect(bnApply, &QPushButton::clicked, this, [this](){
connect(bnDone, &QPushButton::clicked, this, [this](){
m_isAccepted = true;
hide();
emit accepted();
});

buttonsLayout->addStretch(1);
buttonsLayout->addWidget(bnCancel);
buttonsLayout->addWidget(bnApply);
buttonsLayout->addWidget(bnDone);
buttonsLayout->addStretch(1);

connect(caller, &QPushButton::clicked, this, [this](){
Expand Down
2 changes: 1 addition & 1 deletion src/InteractivePathAnalysis/ncriticalpathtoolswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ void NCriticalPathToolsWidget::setupCriticalPathsOptionsMenu(QPushButton* caller
});
formLayout->addRow(new QLabel(tr("Paths num limit:")), m_leNCriticalPathNum);

m_cbSaveSettings = new QCheckBox("Save settings on apply");
m_cbSaveSettings = new QCheckBox("Save settings");
m_cbSaveSettings->setChecked(NCriticalPathSettings::instance().getSavePathListSettings());
connect(m_cbSaveSettings, &QCheckBox::toggled, this, [](bool checked){
NCriticalPathSettings::instance().setSavePathListSettings(checked);
Expand Down
2 changes: 1 addition & 1 deletion src/InteractivePathAnalysis/ncriticalpathview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void NCriticalPathView::setupFilterMenu()
m_inputFilter = new NCriticalPathFilterWidget(tr("Input Nodes:"));
m_outputFilter = new NCriticalPathFilterWidget(tr("Output Nodes:"));

m_cbSaveSettings = new QCheckBox(tr("Save settings on apply"));
m_cbSaveSettings = new QCheckBox(tr("Save settings"));
m_cbSaveSettings->setChecked(NCriticalPathSettings::instance().getSaveFilterSettings());
connect(m_cbSaveSettings, &QCheckBox::toggled, this, [](bool checked){
NCriticalPathSettings::instance().setSaveFilterSettings(checked);
Expand Down

0 comments on commit b502ace

Please sign in to comment.