Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
杉菜酱子
RedisDesktopManager
提交
97a401ea
R
RedisDesktopManager
项目概览
杉菜酱子
/
RedisDesktopManager
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
RedisDesktopManager
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
97a401ea
编写于
12月 08, 2020
作者:
I
Igor Malinovskiy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update Connection handlers
上级
a7d2b0db
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
30 addition
and
22 deletion
+30
-22
src/qml/LogView.qml
src/qml/LogView.qml
+1
-1
src/qml/app.qml
src/qml/app.qml
+9
-8
src/qml/bulk-operations/BulkOperationsDialog.qml
src/qml/bulk-operations/BulkOperationsDialog.qml
+3
-3
src/qml/connections-tree/BetterTreeView.qml
src/qml/connections-tree/BetterTreeView.qml
+7
-1
src/qml/value-editor/AddKeyDialog.qml
src/qml/value-editor/AddKeyDialog.qml
+3
-2
src/qml/value-editor/ValueTable.qml
src/qml/value-editor/ValueTable.qml
+5
-5
src/qml/value-editor/editors/MultilineEditor.qml
src/qml/value-editor/editors/MultilineEditor.qml
+2
-2
未找到文件。
src/qml/LogView.qml
浏览文件 @
97a401ea
...
...
@@ -25,7 +25,7 @@ FastTextView {
Connections
{
id
:
modelConnections
onLog
:
{
function
onLog
(
msg
)
{
if
(
model
.
count
>
1500
)
{
model
.
remove
(
0
,
model
.
count
-
1000
)
}
...
...
src/qml/app.qml
浏览文件 @
97a401ea
...
...
@@ -159,13 +159,13 @@ ApplicationWindow {
Connections
{
target
:
serverStatsModel
ignoreUnknownSignals
:
true
onError
:
notification
.
showError
(
error
)
function
onError
(
error
)
{
notification
.
showError
(
error
)
}
}
Connections
{
target
:
keyFactory
onNewKeyDialog
:
{
function
onNewKeyDialog
(
r
)
{
addNewKeyDialog
.
request
=
r
addNewKeyDialog
.
open
()
}
...
...
@@ -178,7 +178,7 @@ ApplicationWindow {
Connections
{
target
:
bulkOperations
onOpenDialog
:
{
function
onOpenDialog
(
operationName
)
{
bulkOperationDialog
.
operationName
=
operationName
bulkOperationDialog
.
open
()
}
...
...
@@ -187,7 +187,7 @@ ApplicationWindow {
Connections
{
target
:
appEvents
onError
:
{
function
onError
(
msg
)
{
notification
.
showError
(
msg
)
}
}
...
...
@@ -195,18 +195,18 @@ ApplicationWindow {
Connections
{
target
:
connectionsManager
onEditConnection
:
{
function
onEditConnection
(
config
)
{
connectionSettingsDialog
.
settings
=
config
connectionSettingsDialog
.
open
()
}
onEditConnectionGroup
:
{
function
onEditConnectionGroup
(
group
)
{
connectionGroupDialog
.
group
=
group
connectionGroupDialog
.
open
()
}
Component.onCompleted
:
{
if
(
connectionsManager
.
size
()
==
0
)
if
(
connectionsManager
.
size
()
==
=
0
)
quickStartDialog
.
open
()
}
}
...
...
@@ -397,7 +397,8 @@ ApplicationWindow {
Connections
{
target
:
valuesModel
ignoreUnknownSignals
:
true
onKeyError
:
{
function
onKeyError
(
error
)
{
if
(
index
!=
-
1
)
tabs
.
currentIndex
=
index
...
...
src/qml/bulk-operations/BulkOperationsDialog.qml
浏览文件 @
97a401ea
...
...
@@ -350,20 +350,20 @@ Dialog {
Connections
{
target
:
bulkOperations
onAffectedKeys
:
{
function
onAffectedKeys
(
r
)
{
console
.
log
(
"
Affected keys loaded
"
)
affectedKeysListView
.
model
=
r
uiBlocker
.
visible
=
false
}
onOperationFinished
:
{
function
onOperationFinished
()
{
affectedKeysListView
.
model
=
[]
uiBlocker
.
visible
=
false
bulkSuccessNotification
.
text
=
qsTr
(
"
Bulk Operation finished.
"
)
bulkSuccessNotification
.
open
()
}
onError
:
{
function
onError
(
e
)
{
showError
(
qsTr
(
"
Bulk Operation finished with errors
"
),
e
,
details
)
}
}
...
...
src/qml/connections-tree/BetterTreeView.qml
浏览文件 @
97a401ea
...
...
@@ -241,7 +241,13 @@ TreeView {
Connections
{
target
:
connectionsManager
onExpand
:
!
root
.
isExpanded
(
index
)
&&
root
.
expand
(
index
)
function
onExpand
(
index
)
{
if
(
root
.
isExpanded
(
index
))
return
root
.
expand
(
index
)
}
}
...
...
src/qml/value-editor/AddKeyDialog.qml
浏览文件 @
97a401ea
...
...
@@ -87,13 +87,14 @@ BetterDialog {
Connections
{
target
:
keyFactory
onKeyAdded
:
{
function
onKeyAdded
()
{
root
.
request
=
null
valueAddEditor
.
item
.
reset
()
valueAddEditor
.
item
.
initEmpty
()
root
.
close
()
}
onError
:
{
function
onError
(
err
)
{
addError
.
text
=
err
addError
.
open
()
}
...
...
src/qml/value-editor/ValueTable.qml
浏览文件 @
97a401ea
...
...
@@ -50,7 +50,6 @@ RowLayout {
anchors.margins
:
10
anchors.right
:
parent
.
right
anchors.verticalCenter
:
parent
.
verticalCenter
font.pointSize
:
8
text
:
"
▲
"
color
:
sysPalette
.
mid
visible
:
false
...
...
@@ -189,12 +188,12 @@ RowLayout {
target
:
keyTab
.
keyModel
?
keyTab
.
keyModel
:
null
onError
:
{
function
onError
(
error
)
{
valueErrorNotification
.
text
=
error
valueErrorNotification
.
open
()
}
onIsLoadedChanged
:
{
function
onIsLoadedChanged
()
{
console
.
log
(
"
model loaded (qml)
"
)
if
(
keyTab
.
keyModel
.
totalRowCount
===
0
)
{
console
.
log
(
"
Load rows count
"
)
...
...
@@ -205,11 +204,11 @@ RowLayout {
}
}
onTotalRowCountChanged
:
{
function
onTotalRowCountChanged
()
{
keyTab
.
keyModel
.
loadRows
(
table
.
currentStart
,
table
.
maxItemsOnPage
)
}
onRowsLoaded
:
{
function
onRowsLoaded
()
{
console
.
log
(
"
rows loaded
"
)
wrapper
.
hideLoader
()
...
...
@@ -293,6 +292,7 @@ RowLayout {
Layout.fillWidth
:
true
Layout.preferredHeight
:
40
visible
:
status
===
Loader
.
Ready
source
:
keyModel
&&
keyType
===
"
list
"
?
"
./filters/ListFilters.qml
"
:
""
}
...
...
src/qml/value-editor/editors/MultilineEditor.qml
浏览文件 @
97a401ea
...
...
@@ -480,12 +480,12 @@ Item
Connections
{
target
:
keyTab
.
keyModel
?
keyTab
.
keyModel
:
null
onValueUpdated
:
{
function
valueUpdated
()
{
root
.
isEdited
=
false
saveBtnTimer
.
resetSaveBtn
()
}
onError
:
saveBtnTimer
.
resetSaveBtn
()
function
error
()
{
saveBtnTimer
.
resetSaveBtn
()
}
}
Timer
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录