형태소분석기 숫자 정렬 추가 batch run 시 결과값이 올바르게 나오지 않는 현상 디버깅 git-svn-id: svn://192.168.0.12/source@297 8346c931-da38-4b9b-9d4c-e48b93cbd075
39 lines
770 B
C++
39 lines
770 B
C++
#include "sutilclass.h"
|
|
STableWidgetItem::STableWidgetItem(int type): QTableWidgetItem(type)
|
|
{
|
|
|
|
}
|
|
|
|
STableWidgetItem::STableWidgetItem(const QIcon &icon, const QString &text, int type):
|
|
QTableWidgetItem(icon, text, type)
|
|
{
|
|
|
|
}
|
|
|
|
STableWidgetItem::STableWidgetItem(const QString &text, int type):
|
|
QTableWidgetItem(text, type)
|
|
{
|
|
|
|
}
|
|
|
|
STableWidgetItem::STableWidgetItem(const STableWidgetItem &other):
|
|
QTableWidgetItem(other)
|
|
{
|
|
|
|
}
|
|
|
|
bool STableWidgetItem::operator <(const QTableWidgetItem &other) const
|
|
{
|
|
bool ok1, ok2;
|
|
int nThis = text().toInt(&ok1);
|
|
int nOther = other.text().toInt(&ok2);
|
|
if (ok1 && ok2)
|
|
{
|
|
return nThis < nOther;
|
|
}
|
|
else
|
|
{
|
|
return text() < other.text();
|
|
}
|
|
}
|