1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-02-03 09:44:01 -05:00

Compare commits

...

3 Commits

2 changed files with 22 additions and 2 deletions

View File

@ -90,3 +90,9 @@ jobs:
with:
name: sdrangel-${{ steps.get_version.outputs.version }}-win64.exe
path: ${{ github.workspace }}/build/sdrangel-${{ steps.get_version.outputs.version }}-win64.exe
- name: Upload release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: ${{ github.workspace }}/build/sdrangel-${{ steps.get_version.outputs.version }}-win64.exe

View File

@ -16,6 +16,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#include <QStandardPaths>
#include <QColorDialog>
#include <QFileDialog>
@ -353,6 +354,7 @@ void SpectrumMarkersDialog::on_markerAdd_clicked()
m_histogramMarkers.back().m_power = m_power;
m_histogramMarkerIndex = m_histogramMarkers.size() - 1;
ui->marker->setMaximum(m_histogramMarkers.size() - 1);
ui->marker->setMinimum(0);
displayHistogramMarker();
}
@ -521,6 +523,7 @@ void SpectrumMarkersDialog::on_wMarkerAdd_clicked()
m_waterfallMarkers.back().m_time = m_time;
m_waterfallMarkerIndex = m_waterfallMarkers.size() - 1;
ui->wMarker->setMaximum(m_waterfallMarkers.size() - 1);
ui->wMarker->setMinimum(0);
displayWaterfallMarker();
}
@ -656,6 +659,7 @@ void SpectrumMarkersDialog::on_aMarkerAdd_clicked()
m_annotationMarkers.back().m_startFrequency = m_centerFrequency;
m_annotationMarkerIndex = m_annotationMarkers.size() - 1;
ui->aMarker->setMaximum(m_annotationMarkers.size() - 1);
ui->aMarker->setMinimum(0);
displayAnnotationMarker();
emit updateAnnotations();
}
@ -694,7 +698,12 @@ void SpectrumMarkersDialog::on_aMarkerBandwidth_changed(qint64 value)
void SpectrumMarkersDialog::on_aMarkersImport_clicked()
{
QFileDialog fileDialog(nullptr, "Select .csv annotation markers file to read", "", "*.csv");
QFileDialog fileDialog(
nullptr,
"Select .csv annotation markers file to read",
QStandardPaths::writableLocation(QStandardPaths::AppDataLocation),
"*.csv"
);
if (fileDialog.exec())
{
@ -753,7 +762,12 @@ void SpectrumMarkersDialog::on_aMarkersImport_clicked()
void SpectrumMarkersDialog::on_aMarkersExport_clicked()
{
QFileDialog fileDialog(nullptr, "Select file to write annotation markers to", "", "*.csv");
QFileDialog fileDialog(
nullptr,
"Select file to write annotation markers to",
QStandardPaths::writableLocation(QStandardPaths::AppDataLocation),
"*.csv"
);
fileDialog.setAcceptMode(QFileDialog::AcceptSave);
if (fileDialog.exec())