mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-07 11:59:57 +03:00
Change "getMbToPrettyString" to const function
This commit is contained in:
@@ -101,5 +101,5 @@ private:
|
|||||||
QString gbSymbol;
|
QString gbSymbol;
|
||||||
QString tbSymbol;
|
QString tbSymbol;
|
||||||
QString pbSymbol;
|
QString pbSymbol;
|
||||||
QString getMbToPrettyString(const int64_t &sizeInMbI64, const int &precisionInt, const bool &useGbBool);
|
QString getMbToPrettyString(const int64_t &sizeInMbI64, const int &precisionInt, const bool &useGbBool) const;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1451,7 +1451,7 @@ void MainWindow::on_actionSave_Image_triggered()
|
|||||||
screenshot.save(QFileDialog::getSaveFileName(this, tr("Save Image"), "QDiskInfo_" + deviceNodeLineEdit->text().section('/', -1) + ".png", tr("PNG Files (*.png)")));
|
screenshot.save(QFileDialog::getSaveFileName(this, tr("Save Image"), "QDiskInfo_" + deviceNodeLineEdit->text().section('/', -1) + ".png", tr("PNG Files (*.png)")));
|
||||||
}
|
}
|
||||||
|
|
||||||
QString MainWindow::getMbToPrettyString(const int64_t &sizeInMbI64, const int &precisionInt, const bool &useGbBool)
|
QString MainWindow::getMbToPrettyString(const int64_t &sizeInMbI64, const int &precisionInt, const bool &useGbBool) const
|
||||||
{
|
{
|
||||||
if (!sizeInMbI64)
|
if (!sizeInMbI64)
|
||||||
return "----";
|
return "----";
|
||||||
|
|||||||
Reference in New Issue
Block a user