#ifndef TABLEWIDGETITEM_H
#define TABLEWIDGETITEM_H
#include <QTableWidgetItem>
#include <QDate>
class TableWidgetItem : public QTableWidgetItem
{
public:
explicit TableWidgetItem(const QString &text, int type = Type);
bool operator< (const QTableWidgetItem& other) const;
};
#endif // TABLEWIDGETITEM_H
#include "tablewidgetitem.h"
TableWidgetItem::TableWidgetItem(const QString &text, int type) :
QTableWidgetItem(text,type)
{
}
bool TableWidgetItem::operator <(const QTableWidgetItem& other) const
{
return(QDate::fromString(other.data( Qt::DisplayRole ).toString(), "MM.yyyy") >
...
Читать дальше »
Просмотров:
3027
|
Добавил:
qt-boy
|
Дата:
27.10.2011
|