숫자 인식 추가
git-svn-id: svn://192.168.0.12/source@195 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -3,6 +3,25 @@
|
|||||||
|
|
||||||
#include <QTableWidget>
|
#include <QTableWidget>
|
||||||
#include <QStringList>
|
#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
|
class STable : public QTableWidget
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user