숫자 인식 추가

git-svn-id: svn://192.168.0.12/source@195 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
admin
2015-09-24 04:13:52 +00:00
parent 0237784497
commit 7961401b3d

View File

@@ -3,6 +3,25 @@
#include <QTableWidget>
#include <QStringList>
#include <QTableWidgetItem>
class STableNumberItem : public QTableWidgetItem
{
public:
STableNumberItem(QString txt):QTableWidgetItem(txt)
{
}
bool operator <(const QTableWidgetItem &other) const
{
return text().toDouble() < other.text().toDouble();
}
bool operator >(const QTableWidgetItem &other) const
{
return text().toDouble() > other.text().toDouble();
}
};
class STable : public QTableWidget
{