diff --git a/model/placesmodel.cpp b/model/placesmodel.cpp index 1b8f658..e3b7fff 100644 --- a/model/placesmodel.cpp +++ b/model/placesmodel.cpp @@ -83,7 +83,7 @@ PlacesModel::PlacesModel(QObject *parent) m_items.append(item); } - PlacesItem *trashItem = new PlacesItem(tr("Trash"), QUrl(QStringLiteral("trash:/"))); + PlacesItem *trashItem = new PlacesItem(tr("Trash"), QUrl(QStringLiteral("trash:///"))); trashItem->setIconPath("user-trash.svg"); m_items.append(trashItem); diff --git a/qml/Dialogs/CreateFolderDialog.qml b/qml/Dialogs/CreateFolderDialog.qml index 976cb6b..c52898f 100644 --- a/qml/Dialogs/CreateFolderDialog.qml +++ b/qml/Dialogs/CreateFolderDialog.qml @@ -31,7 +31,7 @@ Window { visible: true width: 400 + FishUI.Units.largeSpacing * 2 - height: _mainLayout.implicitHeight + FishUI.Units.largeSpacing * 2 + height: _mainLayout.implicitHeight + FishUI.Units.largeSpacing minimumWidth: width minimumHeight: height @@ -48,7 +48,8 @@ Window { anchors.fill: parent anchors.leftMargin: FishUI.Units.largeSpacing anchors.rightMargin: FishUI.Units.largeSpacing - spacing: 0 + anchors.bottomMargin: FishUI.Units.largeSpacing + spacing: FishUI.Units.largeSpacing TextField { id: _textField diff --git a/qml/Dialogs/EmptyTrashDialog.qml b/qml/Dialogs/EmptyTrashDialog.qml index dd875d5..e59cdac 100644 --- a/qml/Dialogs/EmptyTrashDialog.qml +++ b/qml/Dialogs/EmptyTrashDialog.qml @@ -32,7 +32,7 @@ Window { visible: true width: 300 + FishUI.Units.largeSpacing * 2 - height: _mainLayout.implicitHeight + FishUI.Units.largeSpacing * 3 + height: _mainLayout.implicitHeight + FishUI.Units.largeSpacing * 2 minimumWidth: width minimumHeight: height diff --git a/qml/FolderGridView.qml b/qml/FolderGridView.qml index 00094ba..3f9f829 100644 --- a/qml/FolderGridView.qml +++ b/qml/FolderGridView.qml @@ -147,7 +147,9 @@ GridView { highlightMoveDuration: 0 keyNavigationEnabled : true keyNavigationWraps : true - Keys.onPressed: { + Keys.onPressed: { + control.keyPress(event) + if (event.key === Qt.Key_Control) { ctrlPressed = true } else if (event.key === Qt.Key_Shift) { @@ -160,8 +162,6 @@ GridView { } else if (event.key === Qt.Key_Minus && event.modifiers & Qt.ControlModifier) { control.decreaseIconSize() } - - control.keyPress(event) } Keys.onReleased: { if (event.key === Qt.Key_Control) { @@ -625,7 +625,6 @@ GridView { width = targetItem.width - FishUI.Units.smallSpacing height = targetItem.labelArea.paintedHeight + FishUI.Units.largeSpacing * 2 x = targetItem.x + Math.abs(Math.min(control.contentX, control.originX)) - x = targetItem.x + (targetItem.width - _editor.width) y = pos.y - FishUI.Units.largeSpacing text = targetItem.labelArea.text targetItem.labelArea.visible = false diff --git a/qml/FolderListView.qml b/qml/FolderListView.qml index 0e01ce8..891c846 100644 --- a/qml/FolderListView.qml +++ b/qml/FolderListView.qml @@ -96,6 +96,8 @@ ListView { highlightMoveDuration: 0 Keys.enabled: true Keys.onPressed: { + control.keyPress(event) + if (event.key === Qt.Key_Control) { ctrlPressed = true } else if (event.key === Qt.Key_Shift) { @@ -104,8 +106,6 @@ ListView { if (currentIndex != -1) anchorIndex = currentIndex } - - control.keyPress(event) } Keys.onReleased: { diff --git a/translations/zh_CN.ts b/translations/zh_CN.ts index da4a191..33eecef 100644 --- a/translations/zh_CN.ts +++ b/translations/zh_CN.ts @@ -6,12 +6,12 @@ New folder name - 新文件夹名 + 新建文件夹名称 New folder - 新文件夹 + 新建文件夹