필터 업데이트
애널저 숫자 정렬 추가 git-svn-id: svn://192.168.0.12/source@280 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -86,11 +86,13 @@ void SDataDlg::DataReload(QString _strTableName,int _nSelect)
|
||||
for (int i = 0; i < pTable->columnCount() ; i++)
|
||||
{
|
||||
QString str = query.value(i).toString().replace("\n"," ");
|
||||
/*
|
||||
if((i == GetColumn().getColumnIndex("platform_form")) && (str.trimmed() == "post" || str.trimmed() == "channel" || str.trimmed() == "story"))
|
||||
str = "sns";
|
||||
if((i == GetColumn().getColumnIndex("platform_form")) && (str.trimmed() == "group"))
|
||||
str = "community";
|
||||
pTable->setItem(nCount,i,new QTableWidgetItem(" "+str.replace("\t"," ")+" "));
|
||||
*/
|
||||
pTable->setItem(nCount,i,new STableWidgetItem(" "+str.replace("\t"," ")+" "));
|
||||
}
|
||||
nCount++;
|
||||
GetMainWindow()->m_progress.setValue(nCount);
|
||||
@@ -102,7 +104,7 @@ void SDataDlg::InsertCopyRow(int _nRow,QTableWidget *_pCurrent,QTableWidget *_pN
|
||||
{
|
||||
_pNew->setRowCount(_pNew->rowCount()+1);
|
||||
for (int nCount = 0;nCount < _pCurrent->columnCount() ;nCount++ )
|
||||
_pNew->setItem(_pNew->rowCount()-1,nCount,new QTableWidgetItem(*_pCurrent->item(_nRow,nCount)));
|
||||
_pNew->setItem(_pNew->rowCount()-1,nCount,new STableWidgetItem(*_pCurrent->item(_nRow,nCount)));
|
||||
}
|
||||
|
||||
void SDataDlg::SearchDate(QDate _dtStart,QDate _dtEnd)
|
||||
@@ -327,10 +329,10 @@ void SDataDlg::SearchReplace(int _nCatalogIndex,int _nReplaceFindIndex,int _nRep
|
||||
strOut = strMiddle;
|
||||
break;
|
||||
}
|
||||
pNew->setItem(nCount,nColumnCount,new QTableWidgetItem(strOut));
|
||||
pNew->setItem(nCount,nColumnCount,new STableWidgetItem(strOut));
|
||||
}
|
||||
else
|
||||
pNew->setItem(nCount,nColumnCount,new QTableWidgetItem(*pCurrent->item(nCount,nColumnCount)));
|
||||
pNew->setItem(nCount,nColumnCount,new STableWidgetItem(*pCurrent->item(nCount,nColumnCount)));
|
||||
}
|
||||
GetMainWindow()->m_progress.setValue(nCount);
|
||||
GetMainWindow()->m_progress.repaint();
|
||||
@@ -432,7 +434,7 @@ void SDataDlg::Import(QVector <QByteArray> _vecImport )
|
||||
if(column.at(j).at(SColumn::E_DATABASE).compare(strings.at(i)) == 0)
|
||||
strings[i] = column.at(j).at(SColumn::E_NAME);
|
||||
}
|
||||
pNew->setHorizontalHeaderItem(i-1,new QTableWidgetItem(strings.at(i)));
|
||||
pNew->setHorizontalHeaderItem(i-1,new STableWidgetItem(strings.at(i)));
|
||||
}
|
||||
bFirst = false;
|
||||
pNew->setRowCount(_vecImport.size()-1);
|
||||
@@ -446,7 +448,7 @@ void SDataDlg::Import(QVector <QByteArray> _vecImport )
|
||||
QStringList strings = strLine.split(",");
|
||||
int ncCol=0;
|
||||
foreach(QString str,strings)
|
||||
pNew->setItem(ncRow,ncCol++,new QTableWidgetItem(QString(" " + str + " ")));
|
||||
pNew->setItem(ncRow,ncCol++,new STableWidgetItem(QString(" " + str + " ")));
|
||||
GetMainWindow()->m_progress.setValue(ncRow++);
|
||||
GetMainWindow()->m_progress.repaint();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user