annotate src/changesetview.h @ 397:61bde1f0ff0a item_appearance_adjustments

Replace DateItems (background items for date shading) with a date range list in the scene and dedicated rendering for it in the graphics view: this way we can ensure the shading spans the full width and the dates are always visible
author Chris Cannam
date Wed, 25 May 2011 14:32:32 +0100
parents
children 533519ebc0cb
rev   line source
Chris@397 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@397 2
Chris@397 3 /*
Chris@397 4 EasyMercurial
Chris@397 5
Chris@397 6 Based on HgExplorer by Jari Korhonen
Chris@397 7 Copyright (c) 2010 Jari Korhonen
Chris@397 8 Copyright (c) 2011 Chris Cannam
Chris@397 9 Copyright (c) 2011 Queen Mary, University of London
Chris@397 10
Chris@397 11 This program is free software; you can redistribute it and/or
Chris@397 12 modify it under the terms of the GNU General Public License as
Chris@397 13 published by the Free Software Foundation; either version 2 of the
Chris@397 14 License, or (at your option) any later version. See the file
Chris@397 15 COPYING included with this distribution for more information.
Chris@397 16 */
Chris@397 17
Chris@397 18 #ifndef CHANGESETVIEW_H
Chris@397 19 #define CHANGESETVIEW_H
Chris@397 20
Chris@397 21 #include "panned.h"
Chris@397 22
Chris@397 23 class ChangesetView : public Panned
Chris@397 24 {
Chris@397 25 Q_OBJECT
Chris@397 26
Chris@397 27 public:
Chris@397 28 ChangesetView();
Chris@397 29
Chris@397 30 private slots:
Chris@397 31 void horizontalScrollHappened();
Chris@397 32
Chris@397 33 protected:
Chris@397 34 void drawBackground(QPainter *, const QRectF &);
Chris@397 35 };
Chris@397 36
Chris@397 37 #endif