Edited open() function to be more descriptive. Set to openFileActual
This commit is contained in:
parent
e59dd980bd
commit
6141263f45
|
@ -36,7 +36,7 @@ private:
|
||||||
void setAsset(QString);
|
void setAsset(QString);
|
||||||
void searchMeshFiles(QString path);
|
void searchMeshFiles(QString path);
|
||||||
void openFile();
|
void openFile();
|
||||||
void open(QString);
|
void openFileActual(QString);
|
||||||
void takeScreenShot();
|
void takeScreenShot();
|
||||||
void setDirList();
|
void setDirList();
|
||||||
void aboutTool();
|
void aboutTool();
|
||||||
|
|
|
@ -210,10 +210,10 @@ void MainWindow::searchMeshFiles(QString path)
|
||||||
void MainWindow::openFile()
|
void MainWindow::openFile()
|
||||||
{
|
{
|
||||||
QString fileName = QFileDialog::getOpenFileName(this, "Open File", "", "Mesh (*.msh)");
|
QString fileName = QFileDialog::getOpenFileName(this, "Open File", "", "Mesh (*.msh)");
|
||||||
open(fileName);
|
openFileActual(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::open(QString fileName)
|
void MainWindow::openFileActual(QString fileName)
|
||||||
{
|
{
|
||||||
if(!fileName.isEmpty())
|
if(!fileName.isEmpty())
|
||||||
emit loadFile(fileName);
|
emit loadFile(fileName);
|
||||||
|
@ -259,7 +259,7 @@ void MainWindow::resizeEvent(QResizeEvent * e)
|
||||||
void MainWindow::on_fileListView_doubleClicked(const QModelIndex &index)
|
void MainWindow::on_fileListView_doubleClicked(const QModelIndex &index)
|
||||||
{
|
{
|
||||||
QString clickedFile = fmodel->fileInfo(index).absoluteFilePath();
|
QString clickedFile = fmodel->fileInfo(index).absoluteFilePath();
|
||||||
open(clickedFile);
|
openFileActual(clickedFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_dirDropDownList_currentTextChanged(const QString &arg1)
|
void MainWindow::on_dirDropDownList_currentTextChanged(const QString &arg1)
|
||||||
|
|
Loading…
Reference in New Issue