• 大小: 379KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-03
  • 语言: C/C++
  • 标签:

资源简介

谢谢支持,相互交流。QQ:250485396

资源截图

代码片段和文件信息

#include “BookDialog.h“

BookDialog::BookDialog(QWidget *parent) :
QDialog(parent)
{
setupUi(this);
setModal(true);
Qobject::connect(confirmBtn SIGNAL(clicked()) this SLOT(SetBookInfo()));
Qobject::connect(clearBtn SIGNAL(clicked()) this SLOT(ClearTextInfo()));
Qobject::connect(cancelBtn SIGNAL(clicked()) this SLOT(close()));
}

BookDialog::~BookDialog()
{

}
void BookDialog::closeEvent(QCloseEvent *event)
{
ClearTextInfo();
}
void BookDialog::SetBookInfo()
{
BOOKINFO bookInfo;
bool ok;
QDate addDate;
if (idEdit->text() == ““ || nameEdit->text() == ““ || typeEdit->text() == ““)
{
QMessageBox::warning(this tr(“Warning“) tr(“Input information incompletely!“));
return;
}
bookInfo.sID = idEdit->text();
bookInfo.sName = nameEdit->text();
bookInfo.sAuthor = authorE

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-06-23 18:45  BookSystem\
     目录           0  2010-06-23 18:45  BookSystemServer\
     文件          53  2010-05-05 23:10  BookSystemServer\BookSystem.rc
     文件        4213  2010-05-24 21:52  BookSystemServer\booksystemserver.cpp
     文件        1357  2010-05-24 21:55  BookSystemServer\booksystemserver.h
     文件         491  2010-05-07 11:23  BookSystemServer\BookSystemServer.pro
     文件         100  2010-05-05 23:12  BookSystemServer\BookSystemServer.qrc
     目录           0  2010-06-23 18:45  BookSystemServer\DB\
     文件       20604  2010-05-06 00:22  BookSystemServer\DB\mysql-libbook.sql
     目录           0  2010-05-26 12:22  BookSystemServer\debug\
     文件        5829  2010-05-24 20:36  BookSystemServer\GlobalDefine.h
     目录           0  2010-06-23 18:45  BookSystemServer\icon\
     文件       99678  2008-01-29 09:52  BookSystemServer\icon\systemserver.ico
     目录           0  2010-06-23 18:45  BookSystemServer\language\
     文件        3915  2010-05-06 12:16  BookSystemServer\language\BookSystemServer_Ch.qm
     文件       18303  2010-05-06 12:16  BookSystemServer\language\BookSystemServer_Ch.ts
     文件         323  2010-05-05 23:34  BookSystemServer\main.cpp
     文件        5285  2010-05-24 20:01  BookSystemServer\Makefile
     文件        9216  2010-05-24 20:01  BookSystemServer\Makefile.Debug
     文件        9443  2010-05-24 20:01  BookSystemServer\Makefile.Release
     文件         314  2010-05-24 20:01  BookSystemServer\object_script.BKSystemServer.Debug
     文件         338  2010-05-24 20:01  BookSystemServer\object_script.BKSystemServer.Release
     目录           0  2010-05-26 12:22  BookSystemServer\release\
     文件        1298  2010-05-06 22:06  BookSystemServer\server.cpp
     文件         642  2010-05-06 22:06  BookSystemServer\server.h
     文件         563  2010-05-06 23:28  BookSystemServer\ServerTime.cpp
     文件         399  2010-05-24 20:39  BookSystemServer\ServerTime.h
     文件       43516  2010-05-24 20:42  BookSystemServer\SqlCommand.cpp
     文件        3139  2010-05-24 20:37  BookSystemServer\SqlCommand.h
     文件        2698  2010-05-07 11:24  BookSystemServer\TCPClientThread.cpp
     文件         647  2010-05-06 22:07  BookSystemServer\TCPClientThread.h
............此处省略100个文件信息

评论

共有 条评论

相关资源