Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_home
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
fmp_home
Commits
13705999
Commit
13705999
authored
Feb 06, 2018
by
xiaoqing.gu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加登录成功提示界面
parent
d27d0ead
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
fmp_login.cpp
+1
-0
fmp_message.cpp
+7
-0
fmp_message.h
+2
-0
No files found.
fmp_login.cpp
View file @
13705999
...
...
@@ -78,6 +78,7 @@ void FMPLogin::on_login_btn_clicked()
this
->
setEnabled
(
false
);
if
(
login
(
ui
->
user_edit
->
text
(),
ui
->
pwd_edit
->
text
()))
{
FMPMessage
::
success
(
this
,
QString
::
fromLocal8Bit
(
"登录成功!"
));
this
->
close
();
}
else
{
FMPMessage
::
critical
(
this
,
_errorMsg
);
...
...
fmp_message.cpp
View file @
13705999
...
...
@@ -54,3 +54,10 @@ int FMPMessage::critical(QWidget *parent, const QString &msg)
window
.
SetContent
(
FMPMessage
::
ERROR
,
msg
);
return
window
.
exec
();
}
int
FMPMessage
::
success
(
QWidget
*
parent
,
const
QString
&
msg
)
{
FMPMessage
window
(
parent
);
window
.
SetContent
(
FMPMessage
::
SUCCESS
,
msg
);
return
window
.
exec
();
}
fmp_message.h
View file @
13705999
...
...
@@ -27,6 +27,8 @@ public:
static
int
critical
(
QWidget
*
parent
,
const
QString
&
msg
);
static
int
success
(
QWidget
*
parent
,
const
QString
&
msg
);
private
:
Ui
::
FMPMessage
*
ui
;
...
...
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