keyword 멀티 Delete 추가
git-svn-id: svn://192.168.0.12/source@143 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -333,12 +333,16 @@ void Widget::on_keyword_button_insert()
|
||||
|
||||
void Widget::on_keyword_button_delete()
|
||||
{
|
||||
QStringList strList;
|
||||
foreach (QModelIndex index,m_ptableKeyword->selectionModel()->selectedIndexes())
|
||||
strList.push_back(m_pmodelKeyword->record(index.row()).value("id").toString());
|
||||
|
||||
foreach (QString str, strList)
|
||||
{
|
||||
QSqlRecord rec = m_pmodelKeyword->record(index.row());
|
||||
QString strQuery = QString("UPDATE keyword set state = '1' where id = '" + rec.value("id").toString() + "'");
|
||||
QString strQuery = QString("UPDATE keyword set state = '1' where id = '" + str + "'");
|
||||
m_pmodelKeyword->setQuery(QString(strQuery.toUtf8()));
|
||||
}
|
||||
|
||||
m_pmodelKeyword->setQuery("SELECT id,realtime,searches,start,end,authorship,CASE platform "
|
||||
"WHEN 0 THEN 'Naver Cafe' "
|
||||
"WHEN 1 THEN 'Naver Blog' "
|
||||
|
||||
Reference in New Issue
Block a user