mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-02-02 13:52:55 +08:00
Apply the math options after dialog be closed
This commit is contained in:
parent
cb691623c0
commit
eb069d0b69
@ -176,7 +176,10 @@ void MathOptions::accept()
|
||||
{
|
||||
using namespace Qt;
|
||||
QDialog::accept();
|
||||
}
|
||||
|
||||
void MathOptions::Apply()
|
||||
{
|
||||
int src1 = -1;
|
||||
int src2 = -1;
|
||||
data::MathStack::MathType type = data::MathStack::MATH_ADD;
|
||||
|
@ -56,6 +56,8 @@ public:
|
||||
MathOptions(SigSession *session, QWidget *parent);
|
||||
~MathOptions();
|
||||
|
||||
void Apply();
|
||||
|
||||
private:
|
||||
void retranslateUi();
|
||||
|
||||
|
@ -285,7 +285,10 @@ void TrigBar::on_actionFft_triggered()
|
||||
void TrigBar::on_actionMath_triggered()
|
||||
{
|
||||
pv::dialogs::MathOptions math_dlg(_session, this);
|
||||
math_dlg.exec();
|
||||
if (math_dlg.exec() == QDialog::Accepted)
|
||||
{
|
||||
math_dlg.Apply();
|
||||
}
|
||||
}
|
||||
|
||||
void TrigBar::on_actionDark_triggered()
|
||||
|
Loading…
x
Reference in New Issue
Block a user