Fix FileManagement Build-Fehler (BUILD_RTI=OFF)
- flm_db.h: Stub-Header mit Folder/FileContent Klassen erstellt - flm_enums.hpp: MainFolder Enum hinzugefügt (None=0) - flm_translation.h: toInt() entfernt, trFolderName() angepasst - Plugin-Interfaces erstellt (flm, opm, exm) - Viewer-Dialogs: QString-Konvertierungen behoben - AdvancedSymbology CMakeLists.txt: Ungültige Pfade entfernt - ism_mounting_point.cpp: Redundante Definitionen entfernt Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
c21083700a
commit
e5d8bfa432
15 files changed
+815
-91
No files matched your search
@@ -88,7 +88,7 @@ QVariant DialogModelFile::data(const QModelIndex &index, int role) const
|
||||
switch (index.column())
|
||||
{
|
||||
case NAME:
|
||||
return QString::fromStdString(fl.name());
|
||||
return fl.name();
|
||||
case ISTEMPLATE:
|
||||
return fl.isTemplate() ? tr("Yes") : tr("No");
|
||||
case FOLDER:
|
||||
@@ -110,7 +110,7 @@ QVariant DialogModelFile::data(const QModelIndex &index, int role) const
|
||||
case USES:
|
||||
return QString::fromStdString(fl.usedBy());
|
||||
case LASTMODIFIED:
|
||||
return DTG::toStringMSec(fl.lastModified());
|
||||
return DTG::toStringMSec(fl.lastModified().toMSecsSinceEpoch());
|
||||
case PROPERTIES:
|
||||
return QString::fromStdString(fl.properties());
|
||||
default:
|
||||
@@ -136,7 +136,7 @@ int DialogModelFile::findFileIdFromName(const QString &fileName) const
|
||||
for (int row = 0; row < rc; ++row)
|
||||
{
|
||||
const FileManagement::FileContent &fl = this->getRowData(row);
|
||||
if (QString::fromStdString(fl.name()) == fileName)
|
||||
if (fl.name() == fileName)
|
||||
{
|
||||
return fl.id();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user