comparison changesetdetailitem.h @ 117:d5db15bf250c

* Start to sketch thing that shows the details of a changeset in the history view
author Chris Cannam
date Fri, 26 Nov 2010 22:46:29 +0000
parents
children 9734fb0d6fff
comparison
equal deleted inserted replaced
116:807c79350bf1 117:d5db15bf250c
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 EasyMercurial
5
6 Based on HgExplorer by Jari Korhonen
7 Copyright (c) 2010 Jari Korhonen
8 Copyright (c) 2010 Chris Cannam
9 Copyright (c) 2010 Queen Mary, University of London
10
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License as
13 published by the Free Software Foundation; either version 2 of the
14 License, or (at your option) any later version. See the file
15 COPYING included with this distribution for more information.
16 */
17
18 #ifndef CHANGESETDETAILITEM_H
19 #define CHANGESETDETAILITEM_H
20
21 #include <QGraphicsItem>
22 #include <QFont>
23
24 class Changeset;
25
26 class ChangesetDetailItem : public QGraphicsItem
27 {
28 public:
29 ChangesetDetailItem(Changeset *cs);
30
31 virtual QRectF boundingRect() const;
32 virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
33
34 Changeset *getChangeset() { return m_changeset; }
35
36 private:
37 QFont m_font;
38 Changeset *m_changeset;
39 };
40
41 #endif // CHANGESETDETAILITEM_H