Files
clients/EffectUI/sutilclass.cpp
admin 199b9ca2b3 sparentprocess 클래스 추가
git-svn-id: svn://192.168.0.12/source@300 8346c931-da38-4b9b-9d4c-e48b93cbd075
2016-10-17 10:06:16 +00:00

60 lines
1.2 KiB
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 QTableWidgetItem &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();
}
}
SError::SError(): company_num(-1), platformname_num(-1)
{
}
QString ERROR_MESSAGE[static_cast<int>(E_ERROR_CODE::MAX)] =
{
"DB_OPEN_ERROR",
"DB_FULL_ERROR",
"DB_LONG_QUERY_ERROR",
"DB_QUERY_ERROR",
"DB_UNKNOWN_ERROR",
"INTERNET_ERROR",
"OUT_DATED_CRAWLER",
"DELETED_URL_ERROR",
"BLOCK_ERROR",
"TIMEOUT",
"NO_PROGRAM",
"UNKNOWN_ERROR",
};