Debian Codegraph @

src/app/qml/dialogs/ConfirmRenameDialog.qml

raw
1 import QtQuick 2.4
2 import Lomiri.Components 1.3
3 import Lomiri.Components.Popups 1.3
4
5 import "templates"
6
7 ConfirmDialogWithInput {
8 id: rootItem
9
10 property var folderModel
11
12 // IMPROVE: this does not seem good: the backend expects row and new name.
13 // But what if new files are added/deleted in the background while user is
14 // entering the new name? The indices change and wrong file is renamed.
15 // Perhaps the backend should take as parameters the "old name" and "new name"?
16 // This is not currently a problem since the backend does not poll changes in
17 // the filesystem, but may be a problem in the future.
18 property int modelRow
19
20 title: i18n.tr("Rename")
21 text: i18n.tr("Enter a new name")
22 }