Skip to content

Commit

Permalink
修改崩溃的问题
Browse files Browse the repository at this point in the history
但是会出现httpget不能完全获取数据的问题
  • Loading branch information
Edeseses committed Aug 29, 2017
1 parent 1826ea6 commit e50fe81
Show file tree
Hide file tree
Showing 27 changed files with 1,562 additions and 826 deletions.
17 changes: 7 additions & 10 deletions Hq.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ SOURCES += main.cpp\
dialog.cpp \
stockdata.cpp \
dataexchange.cpp \
stockdatathread.cpp \
blockdata.cpp \
basedata.cpp \
basehttpget.cpp \
stockhttpget.cpp \
blockhttpget.cpp \
qeastmoneyblockthread.cpp \
profiles.cpp \
qsinastkinfothread.cpp \
Expand All @@ -49,17 +45,15 @@ SOURCES += main.cpp\
qeastmoneynorthboundthread.cpp \
qeastmoneyhsgtdialog.cpp \
history/qeastmoneystockhistoryinfothread.cpp \
history/qsharehistoryinfomgr.cpp
history/qsharehistoryinfomgr.cpp \
webfile/weberror.cpp \
webfile/webfile.cpp

HEADERS += dialog.h \
stockdata.h \
dataexchange.h \
stockdatathread.h \
blockdata.h \
basedata.h \
basehttpget.h \
stockhttpget.h \
blockhttpget.h \
qeastmoneyblockthread.h \
profiles.h \
qsinastkinfothread.h \
Expand All @@ -86,7 +80,10 @@ HEADERS += dialog.h \
qeastmoneynorthboundthread.h \
qeastmoneyhsgtdialog.h \
history/qeastmoneystockhistoryinfothread.h \
history/qsharehistoryinfomgr.h
history/qsharehistoryinfomgr.h \
webfile/debugout.h \
webfile/weberror.h \
webfile/webfile.h

FORMS += dialog.ui \
qexchangedatemangagedialog.ui \
Expand Down
4 changes: 2 additions & 2 deletions Hq.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 3.6.1, 2017-08-10T17:58:27. -->
<!-- Written by QtCreator 3.6.1, 2017-08-29T13:51:28. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down Expand Up @@ -119,7 +119,7 @@
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/project/Hq/build</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Hq/build</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
Expand Down
93 changes: 0 additions & 93 deletions basehttpget.cpp

This file was deleted.

43 changes: 0 additions & 43 deletions basehttpget.h

This file was deleted.

Binary file added bin/StockData.s3db
Binary file not shown.
131 changes: 0 additions & 131 deletions blockhttpget.cpp

This file was deleted.

42 changes: 0 additions & 42 deletions blockhttpget.h

This file was deleted.

2 changes: 2 additions & 0 deletions dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,8 @@ void Dialog::slotHistoryDataFinish()
mgr->deleteLater();
}

return;

ui->updatelbl->clear();


Expand Down
4 changes: 2 additions & 2 deletions history/qsharehistoryinfomgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ void QShareHistoryInfoMgr::slotRecvCodeHistoryDate(const QString& code, const QD
void QShareHistoryInfoMgr::slotStartGetHistory()
{
if(mWorkQueueThreadList.length() == 0) return;
int len = 10000;
if(len != mWorkQueueThreadList.length()) len = mWorkQueueThreadList.length();
int len = 100;
if(len > mWorkQueueThreadList.length()) len = mWorkQueueThreadList.length();
while (len > 0)
{
QEastmoneyStockHistoryInfoThread *thread = mWorkQueueThreadList.first();
Expand Down
Loading

0 comments on commit e50fe81

Please sign in to comment.