버그 수정 및 Page 갯수 설정
git-svn-id: svn://192.168.0.12/source@127 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -42,7 +42,7 @@ Widget::Widget(QWidget *parent) : QWidget(parent) , m_nMode(E_MODE_WAIT)
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0 ; i < C_CRAWLER_MAX ; i++)
|
||||
for (int i = 0 ; i < C_PLATFORM_MAX ; i++)
|
||||
m_pManage[i]->SetParent(this);
|
||||
setWindowTitle("CrawlerList " + QString::number(QCoreApplication::applicationPid()));
|
||||
|
||||
@@ -66,7 +66,7 @@ Widget::~Widget()
|
||||
}
|
||||
}
|
||||
m_db.close();
|
||||
for (int i = 0 ; i < C_CRAWLER_MAX ; i++)
|
||||
for (int i = 0 ; i < C_PLATFORM_MAX ; i++)
|
||||
m_pManage[i]->SetParent(0);
|
||||
}
|
||||
|
||||
@@ -96,11 +96,11 @@ QGroupBox *Widget::setRealGroupWidgets()
|
||||
vlayout->addLayout(hlayout);
|
||||
}
|
||||
|
||||
m_pedTime = new QLineEdit(this);
|
||||
m_pedTime->setText(QString("3"));
|
||||
m_pedUntilPage = new QLineEdit(this);
|
||||
m_pedUntilPage->setText(QString("0"));
|
||||
{
|
||||
QHBoxLayout *hlayout = new QHBoxLayout;
|
||||
hlayout->addWidget(m_pedTime);
|
||||
hlayout->addWidget(m_pedUntilPage);
|
||||
hlayout->addWidget(pbtStart);
|
||||
hlayout->addWidget(pbtStop);
|
||||
vlayout->addLayout(hlayout);
|
||||
@@ -178,7 +178,7 @@ void Widget::Start()
|
||||
if (query.next() == false) return;
|
||||
|
||||
m_nPlatform = 0;
|
||||
if(0 <= query.value(6).toInt() && query.value(6).toInt() < C_CRAWLER_MAX)
|
||||
if(0 <= query.value(6).toInt() && query.value(6).toInt() < C_PLATFORM_MAX)
|
||||
m_nPlatform = query.value(6).toInt();
|
||||
else
|
||||
{
|
||||
@@ -188,13 +188,13 @@ void Widget::Start()
|
||||
|
||||
if (m_pcheckboxReal->isChecked())
|
||||
{
|
||||
m_pManage[m_nPlatform]->Start(QDate::currentDate(),QDate::currentDate(),
|
||||
m_pManage[m_nPlatform]->Start(QDate::currentDate(),QDate::currentDate().addDays(1),
|
||||
query.value(2).toString().trimmed(),// keyword
|
||||
query.value(3).toString().trimmed(),// authorship
|
||||
query.value(4).toString().trimmed(),// keyword_id
|
||||
query.value(5).toString().trimmed(),
|
||||
1,
|
||||
m_pedTime->text().trimmed());
|
||||
m_pedUntilPage->text().trimmed().toInt());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -205,7 +205,7 @@ void Widget::Start()
|
||||
query.value(4).toString().trimmed(),// keyword_id
|
||||
query.value(5).toString().trimmed(),
|
||||
1,
|
||||
m_pedTime->text().trimmed());
|
||||
m_pedUntilPage->text().trimmed().toInt());
|
||||
}
|
||||
SetCrawlingState("Start");
|
||||
m_nMode = E_MODE_RUN;
|
||||
|
||||
Reference in New Issue
Block a user