Add *.fits extension into filter

This commit is contained in:
2019-11-15 17:38:36 +01:00
parent ab70721ed4
commit c1d25dd663
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ bool ImageRingList::setDir(const QString path, const QString &currentFile)
if(dir.exists())
{
QStringList nameFilter;
nameFilter << "*.jpg" << "*.png" << "*.cr2" << "*.fit";
nameFilter << "*.jpg" << "*.png" << "*.cr2" << "*.fit" << "*.fits";
QStringList list = dir.entryList(nameFilter, QDir::Files | QDir::Readable, m_liveMode ? QDir::Time : QDir::Name);
QStringList absolutePaths;
+1 -1
View File
@@ -268,7 +268,7 @@ void LoadRunable::run()
raw = true;
qDebug() << "LoadRaw" << timer.elapsed();
}
else if(m_file.endsWith(".FIT", Qt::CaseInsensitive))
else if(m_file.endsWith(".FIT", Qt::CaseInsensitive) || m_file.endsWith(".FITS", Qt::CaseInsensitive))
{
loadFITS(m_file, info, m_analyzeLevel != None ? &rawImage : nullptr, &img);
}
+1 -1
View File
@@ -204,7 +204,7 @@ void MainWindow::openFile()
if(standardLocations.size())
path = standardLocations.first();
QString file = QFileDialog::getOpenFileName(this, tr("Open file"), path, tr("Images (*.jpg *.png *.cr2 *.fit *.JPG *.PNG *.CR2 *.FIT)"));
QString file = QFileDialog::getOpenFileName(this, tr("Open file"), path, tr("Images (*.jpg *.png *.cr2 *.fit *.fits *.JPG *.PNG *.CR2 *.FIT *.FITS)"));
if(!file.isEmpty())
{
QFileInfo info(file);