Chris@119: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@119: Chris@119: /* Chris@119: EasyMercurial Chris@119: Chris@119: Based on HgExplorer by Jari Korhonen Chris@119: Copyright (c) 2010 Jari Korhonen Chris@119: Copyright (c) 2010 Chris Cannam Chris@119: Copyright (c) 2010 Queen Mary, University of London Chris@119: Chris@119: This program is free software; you can redistribute it and/or Chris@119: modify it under the terms of the GNU General Public License as Chris@119: published by the Free Software Foundation; either version 2 of the Chris@119: License, or (at your option) any later version. See the file Chris@119: COPYING included with this distribution for more information. Chris@119: */ Chris@119: Chris@119: #include "changesetscene.h" Chris@119: #include "changesetitem.h" Chris@119: Chris@119: ChangesetScene::ChangesetScene() Chris@119: : QGraphicsScene(), m_detailShown(0) Chris@119: { Chris@119: } Chris@119: Chris@119: void Chris@119: ChangesetScene::changesetDetailShown() Chris@119: { Chris@119: ChangesetItem *csi = qobject_cast(sender()); Chris@119: if (!csi) return; Chris@119: Chris@119: if (m_detailShown) { Chris@119: m_detailShown->hideDetail(); Chris@119: } Chris@119: m_detailShown = csi; Chris@119: } Chris@119: