annotate changesetdetailitem.h @ 328:ea62eb083ed4 filelist_right_button_menu

Merge fixes: primarily, handle failed merges better
author Chris Cannam
date Fri, 11 Mar 2011 18:08:22 +0000
parents 8fd71f570884
children
rev   line source
Chris@117 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@117 2
Chris@117 3 /*
Chris@117 4 EasyMercurial
Chris@117 5
Chris@117 6 Based on HgExplorer by Jari Korhonen
Chris@117 7 Copyright (c) 2010 Jari Korhonen
Chris@244 8 Copyright (c) 2011 Chris Cannam
Chris@244 9 Copyright (c) 2011 Queen Mary, University of London
Chris@117 10
Chris@117 11 This program is free software; you can redistribute it and/or
Chris@117 12 modify it under the terms of the GNU General Public License as
Chris@117 13 published by the Free Software Foundation; either version 2 of the
Chris@117 14 License, or (at your option) any later version. See the file
Chris@117 15 COPYING included with this distribution for more information.
Chris@117 16 */
Chris@117 17
Chris@117 18 #ifndef CHANGESETDETAILITEM_H
Chris@117 19 #define CHANGESETDETAILITEM_H
Chris@117 20
Chris@117 21 #include <QGraphicsItem>
Chris@117 22 #include <QFont>
Chris@117 23
Chris@117 24 class Changeset;
Chris@117 25
Chris@117 26 class ChangesetDetailItem : public QGraphicsItem
Chris@117 27 {
Chris@117 28 public:
Chris@117 29 ChangesetDetailItem(Changeset *cs);
Chris@118 30 virtual ~ChangesetDetailItem();
Chris@117 31
Chris@117 32 virtual QRectF boundingRect() const;
Chris@117 33 virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
Chris@117 34
Chris@117 35 Changeset *getChangeset() { return m_changeset; }
Chris@117 36
Chris@117 37 private:
Chris@117 38 QFont m_font;
Chris@117 39 Changeset *m_changeset;
Chris@118 40 QTextDocument *m_doc;
Chris@118 41
Chris@118 42 void makeDocument();
Chris@117 43 };
Chris@117 44
Chris@117 45 #endif // CHANGESETDETAILITEM_H