All pastes #1863596 Raw Edit

Something

public text v1 · immutable
#1863596 ·published 2010-04-16 18:28 UTC
rendered paste body
#ifndef PERSONLISTWIDGETITEM_H
#define PERSONLISTWIDGETITEM_H

#include <QListWidget>
#include <QString>

class LabeledPersonListWidgetItem : public QListWidgetItem
{
    public:
        LabeledPersonListWidgetItem(QListWidget* view = 0, int type = 1001);
        LabeledPersonListWidgetItem(const QString& text, const QString &fName, const QString &lName, QListWidget* view = 0);
        ~LabeledPersonListWidgetItem();

        QString firstName() { return m_firstName; }
        QString lastName() { return m_lastName; }

        void setFirstName(const QString &fName);
        void setLastName(const QString &lName);
        
        bool operator<(const LabeledPersonListWidgetItem& other) const;

    private:
        QString m_firstName;
        QString m_lastName;
};

#endif // PERSONLISTWIDGETITEM_H