This commit is contained in:
2020-03-09 17:56:01 +08:00
parent 41c802c70c
commit 3d1ff9c9a9
8 changed files with 77 additions and 32 deletions

View File

@@ -0,0 +1,2 @@

#include "UserInfo.h"

View File

@@ -0,0 +1,11 @@

//用户信息相关
#pragma once
#include <QString>
class UserInfo
{
private:
QString staff_p13;
};

View File

@@ -0,0 +1,2 @@

#include "query_user.h"

View File

@@ -0,0 +1,4 @@

//查询用户、权限等相关数据
#pragma once

View File

@@ -37,6 +37,12 @@ int main( int argc, char * argv[] )
pLoginDialog = new QLoginDialog();
pLoginDialog->exec();
if ( pLoginDialog->getReturnCode() == QLoginDialog::ReturnCode::EXIT )
{
//用户点了退出
return 1;
}
}
catch ( std::runtime_error error )
{
@@ -47,8 +53,6 @@ int main( int argc, char * argv[] )
return -1;
}
return 1;
try
{
pMainFrame = new QMainFrame();