rename filesystem namespace
This commit is contained in:
parent
a3d95101b3
commit
dac46935c7
3 changed files with 16 additions and 10 deletions
|
@ -24,6 +24,8 @@
|
|||
#include <QStandardPaths>
|
||||
#include <QtGui/QDesktopServices>
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
constexpr int STATUSBAR_TIMEOUT = 5000;
|
||||
|
||||
MainWindow::MainWindow()
|
||||
|
@ -378,7 +380,7 @@ void MainWindow::onImportSellerExcelActionTriggered()
|
|||
if (filename.isEmpty())
|
||||
return;
|
||||
|
||||
std::filesystem::path filePath(filename.toStdWString());
|
||||
fs::path filePath(filename.toStdWString());
|
||||
|
||||
ExcelReader::readSellersFromFile(filePath, marketplace_.get());
|
||||
}
|
||||
|
@ -399,7 +401,7 @@ void MainWindow::onImportSellerJsonActionTriggered()
|
|||
if (filename.isEmpty())
|
||||
return;
|
||||
|
||||
std::filesystem::path filePath(filename.toStdWString());
|
||||
fs::path filePath(filename.toStdWString());
|
||||
|
||||
JsonUtil::importSellers(filePath, marketplace_.get());
|
||||
}
|
||||
|
@ -412,7 +414,7 @@ void MainWindow::onExportSellerJsonActionTriggered()
|
|||
if (filename.isEmpty())
|
||||
return;
|
||||
|
||||
std::filesystem::path filePath(filename.toStdWString());
|
||||
fs::path filePath(filename.toStdWString());
|
||||
|
||||
JsonUtil::exportSellers(filePath, marketplace_.get());
|
||||
}
|
||||
|
@ -427,7 +429,7 @@ void MainWindow::onExportSalesJsonActionTriggered()
|
|||
if (filename.isEmpty())
|
||||
return;
|
||||
|
||||
std::filesystem::path filePath(filename.toStdWString());
|
||||
fs::path filePath(filename.toStdWString());
|
||||
|
||||
JsonUtil::exportSales(filePath, marketplace_.get(),
|
||||
settings.value("global/cashPointNo").toInt());
|
||||
|
@ -443,7 +445,7 @@ void MainWindow::onImportSalesJsonActionTriggered()
|
|||
if (filename.isEmpty())
|
||||
return;
|
||||
|
||||
std::filesystem::path filePath(filename.toStdWString());
|
||||
fs::path filePath(filename.toStdWString());
|
||||
|
||||
delete ui_.salesView->model();
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue