Массовые исправления UX: вкладки (MouseArea не блокирует ×), контент редактора (onDocIndexChanged), авто-расширение .md, ошибка дубликата, ПКМ-создание внутри папок, точки в календаре, граф (зум колесом, клик по файлу, pan правой кнопкой), fileExists(), 16/16 тестов
This commit is contained in:
+14
-14
@@ -47,14 +47,20 @@ Item {
|
||||
anchors.rightMargin: 2
|
||||
spacing: 4
|
||||
|
||||
Label {
|
||||
id: tabLabel
|
||||
MouseArea {
|
||||
Layout.fillWidth: true
|
||||
elide: Text.ElideMiddle
|
||||
text: root.baseName(modelData)
|
||||
+ (documentManager.isDirty(index) ? " •" : "")
|
||||
font.pixelSize: 12
|
||||
color: active ? "#111" : "#555"
|
||||
Layout.fillHeight: true
|
||||
onClicked: documentManager.setActiveIndex(index)
|
||||
onDoubleClicked: documentManager.closeTab(index)
|
||||
|
||||
Label {
|
||||
id: tabLabel
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: root.baseName(tab.modelData)
|
||||
+ (documentManager.isDirty(tab.index) ? " •" : "")
|
||||
font.pixelSize: 12
|
||||
color: tab.active ? "#111" : "#555"
|
||||
}
|
||||
}
|
||||
|
||||
ToolButton {
|
||||
@@ -63,15 +69,9 @@ Item {
|
||||
implicitHeight: 20
|
||||
font.pixelSize: 9
|
||||
opacity: tab.active || hovered ? 1 : 0
|
||||
onClicked: documentManager.closeTab(index)
|
||||
onClicked: documentManager.closeTab(tab.index)
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: documentManager.setActiveIndex(index)
|
||||
onDoubleClicked: documentManager.closeTab(index)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user