implement statusballoon, refactor export logic and add new icons

This commit is contained in:
uncor3
2026-01-08 21:09:47 +00:00
parent 868efa4525
commit 2a71f011d9
29 changed files with 1532 additions and 546 deletions
+8 -3
View File
@@ -291,11 +291,14 @@ void AfcExplorerWidget::onFileListContextMenu(const QPoint &pos)
if (!currPath.endsWith("/"))
currPath += "/";
// FIXME: index
int index = 0;
for (QListWidgetItem *selItem : filesToExport) {
QString fileName = selItem->text();
QString devicePath =
currPath == "/" ? "/" + fileName : currPath + fileName;
exportItems.append(ExportItem(devicePath, fileName));
exportItems.append(ExportItem(devicePath, fileName, index));
index++;
}
// Start export with singleton - manager will show its own dialog
@@ -346,11 +349,13 @@ void AfcExplorerWidget::onExportClicked()
if (!currPath.endsWith("/"))
currPath += "/";
int index = 0;
for (QListWidgetItem *item : filesToExport) {
QString fileName = item->text();
QString devicePath =
currPath == "/" ? "/" + fileName : currPath + fileName;
exportItems.append(ExportItem(devicePath, fileName));
exportItems.append(ExportItem(devicePath, fileName, index));
index++;
}
// Start export with singleton - manager will show its own dialog
@@ -869,4 +874,4 @@ void AfcExplorerWidget::goUp()
// Add the new path to history and load it
m_history.push(parentPath);
loadPath(parentPath);
}
}