버그 수정
git-svn-id: svn://192.168.0.12/source@145 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -35,6 +35,7 @@ Widget::Widget(QWidget *parent)
|
||||
"WHEN 0 THEN 'Naver Cafe' "
|
||||
"WHEN 1 THEN 'Naver Blog' "
|
||||
"WHEN 2 THEN 'Daum Cafe' "
|
||||
"WHEN 3 THEN 'Naver News' "
|
||||
"ELSE 'UnKnown'"
|
||||
"END AS platform FROM keyword where state is null");
|
||||
m_pmodelGroup->setQuery("SELECT * FROM datagroup");
|
||||
@@ -88,7 +89,7 @@ QGroupBox *Widget::setKeywordWidgets()
|
||||
m_pcbRealTime->addItems(QStringList() << "false" << "true");
|
||||
|
||||
m_pcbPlatform = new QComboBox;
|
||||
m_pcbPlatform->addItems(QStringList() << "Naver Cafe" << "Naver Blog" << "Daum Cafe");
|
||||
m_pcbPlatform->addItems(QStringList() << "Naver Cafe" << "Naver Blog" << "Daum Cafe" << "Naver News");
|
||||
|
||||
m_pleKeyword = new QLineEdit;
|
||||
m_pleAuthorship = new QLineEdit;
|
||||
@@ -302,7 +303,12 @@ void Widget::on_keyword_currentRowChanged(QModelIndex _index)
|
||||
m_pdeEnd->setDate(QDate::fromString(rec.value("end").toString(),"yyyy-MM-dd"));
|
||||
m_pcbRealTime->setCurrentIndex(rec.value("realtime").toInt());
|
||||
m_pleKeyword->setText(rec.value("searches").toString());
|
||||
m_pcbPlatform->setCurrentIndex(rec.value("platform").toString().toInt());
|
||||
int nSelect = 0;
|
||||
QString str = rec.value("platform").toString();
|
||||
if (str == QString("Naver Blog")) nSelect = 1;
|
||||
if (str == QString("Daum Cafe")) nSelect = 2;
|
||||
if (str == QString("Naver News")) nSelect = 3;
|
||||
m_pcbPlatform->setCurrentIndex(nSelect);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -327,6 +333,7 @@ void Widget::on_keyword_button_insert()
|
||||
"WHEN 0 THEN 'Naver Cafe' "
|
||||
"WHEN 1 THEN 'Naver Blog' "
|
||||
"WHEN 2 THEN 'Daum Cafe' "
|
||||
"WHEN 3 THEN 'Naver News' "
|
||||
"ELSE 'UnKnown'"
|
||||
"END AS platform FROM keyword where state is null");
|
||||
}
|
||||
@@ -347,6 +354,7 @@ void Widget::on_keyword_button_delete()
|
||||
"WHEN 0 THEN 'Naver Cafe' "
|
||||
"WHEN 1 THEN 'Naver Blog' "
|
||||
"WHEN 2 THEN 'Daum Cafe' "
|
||||
"WHEN 3 THEN 'Naver News' "
|
||||
"ELSE 'UnKnown'"
|
||||
"END AS platform FROM keyword where state is null");
|
||||
}
|
||||
@@ -377,6 +385,7 @@ void Widget::on_keyword_button_modify()
|
||||
"WHEN 0 THEN 'Naver Cafe' "
|
||||
"WHEN 1 THEN 'Naver Blog' "
|
||||
"WHEN 2 THEN 'Daum Cafe' "
|
||||
"WHEN 3 THEN 'Naver News' "
|
||||
"ELSE 'UnKnown'"
|
||||
"END AS platform FROM keyword where state is null");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user