Chris@117: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@117: Chris@117: /* Chris@117: EasyMercurial Chris@117: Chris@117: Based on HgExplorer by Jari Korhonen Chris@117: Copyright (c) 2010 Jari Korhonen Chris@117: Copyright (c) 2010 Chris Cannam Chris@117: Copyright (c) 2010 Queen Mary, University of London Chris@117: Chris@117: This program is free software; you can redistribute it and/or Chris@117: modify it under the terms of the GNU General Public License as Chris@117: published by the Free Software Foundation; either version 2 of the Chris@117: License, or (at your option) any later version. See the file Chris@117: COPYING included with this distribution for more information. Chris@117: */ Chris@117: Chris@117: #ifndef CHANGESETDETAILITEM_H Chris@117: #define CHANGESETDETAILITEM_H Chris@117: Chris@117: #include Chris@117: #include Chris@117: Chris@117: class Changeset; Chris@117: Chris@117: class ChangesetDetailItem : public QGraphicsItem Chris@117: { Chris@117: public: Chris@117: ChangesetDetailItem(Changeset *cs); Chris@118: virtual ~ChangesetDetailItem(); Chris@117: Chris@117: virtual QRectF boundingRect() const; Chris@117: virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *); Chris@117: Chris@117: Changeset *getChangeset() { return m_changeset; } Chris@117: Chris@117: private: Chris@117: QFont m_font; Chris@117: Changeset *m_changeset; Chris@118: QTextDocument *m_doc; Chris@118: Chris@118: void makeDocument(); Chris@117: }; Chris@117: Chris@117: #endif // CHANGESETDETAILITEM_H