Changeset 100410 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 6, 2023 1:28:02 PM (20 months ago)
- svn:sync-xref-src-repo-rev:
- 158150
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICustomFileSystemModel.cpp
r100409 r100410 216 216 { 217 217 path.prepend(pParent->fileObjectName()); 218 219 218 pParent = pParent->parentItem(); 220 219 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICustomFileSystemModel.h
r100408 r100410 176 176 signals: 177 177 178 void sigItemRenamed(UICustomFileSystemItem *pItem, QString strOldPath, QString strOldName, QString strNewName); 178 void sigItemRenamed(UICustomFileSystemItem *pItem, const QString &strOldPath, 179 const QString &strOldName, const QString &strNewName); 179 180 180 181 public: -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
r100408 r100410 664 664 } 665 665 666 bool UIFileManagerGuestTable::renameItem(UICustomFileSystemItem *item, QStringstrOldPath)666 bool UIFileManagerGuestTable::renameItem(UICustomFileSystemItem *item, const QString &strOldPath) 667 667 { 668 668 if (!item || item->isUpDirectory()) -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.h
r100408 r100410 85 85 virtual void deleteByPath(const QStringList &pathList) override final; 86 86 virtual void goToHomeDirectory() override final; 87 virtual bool renameItem(UICustomFileSystemItem *item, QStringstrOldPath) override final;87 virtual bool renameItem(UICustomFileSystemItem *item, const QString &strOldPath) override final; 88 88 virtual bool createDirectory(const QString &path, const QString &directoryName) override final; 89 89 virtual QString fsObjectPropertyString() override final; -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerHostTable.cpp
r100408 r100410 325 325 } 326 326 327 bool UIFileManagerHostTable::renameItem(UICustomFileSystemItem *item, QStringstrOldPath)327 bool UIFileManagerHostTable::renameItem(UICustomFileSystemItem *item, const QString &strOldPath) 328 328 { 329 329 if (!item || item->isUpDirectory()) -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerHostTable.h
r100408 r100410 65 65 virtual void deleteByPath(const QStringList &pathList) override final; 66 66 virtual void goToHomeDirectory() override final; 67 virtual bool renameItem(UICustomFileSystemItem *item, QStringstrOldPath) override final;67 virtual bool renameItem(UICustomFileSystemItem *item, const QString &strOldPath) override final; 68 68 virtual bool createDirectory(const QString &path, const QString &directoryName) override final; 69 69 virtual QString fsObjectPropertyString() override final; -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp
r100408 r100410 893 893 } 894 894 895 void UIFileManagerTable::sltHandleItemRenameAttempt(UICustomFileSystemItem *pItem, QStringstrOldPath,896 QString strOldName, QStringstrNewName)895 void UIFileManagerTable::sltHandleItemRenameAttempt(UICustomFileSystemItem *pItem, const QString &strOldPath, 896 const QString &strOldName, const QString &strNewName) 897 897 { 898 898 Q_UNUSED(strNewName); -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.h
r100408 r100410 214 214 virtual void deleteByPath(const QStringList &pathList) = 0; 215 215 virtual void goToHomeDirectory() = 0; 216 virtual bool renameItem(UICustomFileSystemItem *item, QStringstrOldPath) = 0;216 virtual bool renameItem(UICustomFileSystemItem *item, const QString &strOldPath) = 0; 217 217 virtual bool createDirectory(const QString &path, const QString &directoryName) = 0; 218 218 virtual QString fsObjectPropertyString() = 0; … … 279 279 * if the file system rename fails we restore the old name of the item. See the comment of 280 280 * sltRename() for more details. Note that when this slot is called item->path() has also changed. Thus strOldPath. */ 281 void sltHandleItemRenameAttempt(UICustomFileSystemItem *pItem, QString strOldPath, QString strOldName, QString strNewName); 281 void sltHandleItemRenameAttempt(UICustomFileSystemItem *pItem, const QString &strOldPath, 282 const QString &strOldName, const QString &strNewName); 282 283 void sltHandleNavigationWidgetPathChange(const QString& strPath); 283 284 void sltHandleNavigationWidgetHistoryListChanged(); -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoContentBrowser.cpp
r100408 r100410 924 924 } 925 925 926 void UIVisoContentBrowser::sltItemRenameAttempt(UICustomFileSystemItem *pItem, QString strOldPath, QString strOldName, QString strNewName) 926 void UIVisoContentBrowser::sltItemRenameAttempt(UICustomFileSystemItem *pItem, const QString &strOldPath, 927 const QString &strOldName, const QString &strNewName) 927 928 { 928 929 Q_UNUSED(strOldPath); -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoContentBrowser.h
r100408 r100410 86 86 /** Handles the signal we get from the model during setData call. Restores the old name of the file object 87 87 * to @p strOldName if need be (if rename fails for some reason). */ 88 void sltItemRenameAttempt(UICustomFileSystemItem *pItem, QString strOldPath, QString strOldName, QString strNewName); 88 void sltItemRenameAttempt(UICustomFileSystemItem *pItem, const QString &strOldPath, 89 const QString &strOldName, const QString &strNewName); 89 90 void sltRemoveItems(); 90 91 void sltResetAction();
Note:
See TracChangeset
for help on using the changeset viewer.