diff options
author | ronso0 <ronso0@mixxx.org> | 2020-04-04 16:33:57 +0200 |
---|---|---|
committer | ronso0 <ronso0@mixxx.org> | 2020-04-04 16:33:57 +0200 |
commit | 8206d078aa3b41671c50e2ab428cdd5c2d924aaf (patch) | |
tree | b24ff17e0233c2360f1efa4faf5c1590f243127b /src/library | |
parent | f989b72cbc2cc7ff4d9449b66666cfc275444e75 (diff) |
make Anylysis button checkable, unchecked by default
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/dlganalysis.cpp | 4 | ||||
-rw-r--r-- | src/library/dlganalysis.ui | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/library/dlganalysis.cpp b/src/library/dlganalysis.cpp index 1a9796d4e1..8ffe6f8938 100644 --- a/src/library/dlganalysis.cpp +++ b/src/library/dlganalysis.cpp @@ -63,6 +63,7 @@ DlgAnalysis::DlgAnalysis(QWidget* parent, &QPushButton::clicked, this, &DlgAnalysis::analyze); + pushButtonAnalyze->setEnabled(false); connect(pushButtonSelectAll, &QPushButton::clicked, @@ -165,10 +166,11 @@ void DlgAnalysis::slotAnalysisActive(bool bActive) { //qDebug() << this << "slotAnalysisActive" << bActive; m_bAnalysisActive = bActive; if (bActive) { - pushButtonAnalyze->setEnabled(true); + pushButtonAnalyze->setChecked(true); pushButtonAnalyze->setText(tr("Stop Analysis")); labelProgress->setEnabled(true); } else { + pushButtonAnalyze->setChecked(false); pushButtonAnalyze->setText(tr("Analyze")); labelProgress->setText(""); labelProgress->setEnabled(false); diff --git a/src/library/dlganalysis.ui b/src/library/dlganalysis.ui index e07bc1c92a..395800c14f 100644 --- a/src/library/dlganalysis.ui +++ b/src/library/dlganalysis.ui @@ -84,6 +84,9 @@ <property name="text"> <string>Analyze</string> </property> + <property name="checkable"> + <bool>true</bool> + </property> </widget> </item> <item> |