Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

us_spectrum: replace (*.*) with (*) in the QFileDialog. #169

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions programs/us_spectrum/us_spectrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void US_Spectrum::load_basis()
//struct WavelengthProfile temp_wp;
QFileDialog dialog (this);

dialog.setNameFilter(tr("Text Files (*.txt *.csv *.dat *.wa *.dsp);;All Files (*.*)"));
dialog.setNameFilter(tr("Text Files (*.txt *.csv *.dat *.wa *.dsp);;All Files (*)"));
//dialog.setNameFilter(tr("Text files (*.[Rr][Ee][Ss]);;All files (*)"));
dialog.setFileMode(QFileDialog::ExistingFiles);
dialog.setViewMode(QFileDialog::Detail);
Expand Down Expand Up @@ -341,7 +341,7 @@ void US_Spectrum::plot_basis()
//brings in the target spectrum according to user specification
void US_Spectrum::load_target()
{
QString filter = tr("Text Files (*.txt *.csv *.dat *.wa *.dsp);;All Files (*.*)");
QString filter = tr("Text Files (*.txt *.csv *.dat *.wa *.dsp);;All Files (*)");
QString fpath = QFileDialog::getOpenFileName(this, "Load The Target Spectrum",

US_Settings::dataDir(), filter);
Expand Down Expand Up @@ -931,7 +931,7 @@ void US_Spectrum::findAngles()

void US_Spectrum::save()
{
QString basename = QFileDialog::getSaveFileName(this, "Set the Base Name for the 'CSV' and 'DAT' Files", US_Settings::resultDir(), "All Files (*.*)");
QString basename = QFileDialog::getSaveFileName(this, "Set the Base Name for the 'CSV' and 'DAT' Files", US_Settings::resultDir(), "All Files (*)");
if(basename.isEmpty()) {
return;
}
Expand Down
Loading