HGGitLab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
luoliangyi
app
Commits
5a06d2a8
Commit
5a06d2a8
authored
Apr 18, 2022
by
yangjiaxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加状态栏显示设备连接状态
parent
c23dff55
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
58 deletions
+67
-58
app/scanner/Scanner_zh_CN.qm
app/scanner/Scanner_zh_CN.qm
+0
-0
app/scanner/Scanner_zh_CN.ts
app/scanner/Scanner_zh_CN.ts
+63
-58
app/scanner/mainwindow.cpp
app/scanner/mainwindow.cpp
+4
-0
No files found.
app/scanner/Scanner_zh_CN.qm
View file @
5a06d2a8
No preview for this file type
app/scanner/Scanner_zh_CN.ts
View file @
5a06d2a8
This diff is collapsed.
Click to expand it.
app/scanner/mainwindow.cpp
View file @
5a06d2a8
...
...
@@ -212,6 +212,7 @@ MainWindow::MainWindow(QWidget *parent)
m_saneNoDevAction
=
new
QAction
(
tr
(
"nodevice"
),
this
);
m_saneNoDevAction
->
setEnabled
(
false
);
ui
->
menu_device
->
addAction
(
m_saneNoDevAction
);
m_wndStatusBar
->
setDeviceStatusInfo
(
m_saneNoDevAction
->
text
());
m_saneDeviceAction
=
nullptr
;
m_saneDeviceHandle
=
nullptr
;
...
...
@@ -653,6 +654,7 @@ void MainWindow::on_sane_dev_arrive(QString devName)
{
m_saneDeviceAction
=
action_dev
;
action_dev
->
setChecked
(
true
);
m_wndStatusBar
->
setDeviceStatusInfo
(
devName
+
tr
(
" already connected"
));
}
}
}
...
...
@@ -690,6 +692,8 @@ void MainWindow::on_sane_dev_remove(QString devName)
{
ui
->
menu_device
->
addAction
(
m_saneNoDevAction
);
}
m_wndStatusBar
->
setDeviceStatusInfo
(
m_saneNoDevAction
->
text
());
}
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment