File indexing completed on 2022-11-23 10:43:24

0001 /*
0002     KBlackBox - A simple game inspired by an emacs module
0003 
0004     SPDX-FileCopyrightText: 2007 Nicolas Roffet <nicolas-kde@roffet.com>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 
0010 #include "kbbgraphicsitem.h"
0011 
0012 
0013 
0014 #include "kbbthememanager.h"
0015 
0016 
0017 
0018 //
0019 // Constructor / Destructor
0020 //
0021 
0022 KBBGraphicsItem::KBBGraphicsItem(KBBScalableGraphicWidget::itemType itemType, QGraphicsScene* scene, KBBThemeManager* themeManager) : QGraphicsSvgItem()
0023 {
0024     setSharedRenderer(themeManager->svgRenderer());
0025     setElementId(themeManager->elementId(itemType));
0026     setZValue(themeManager->zValue(itemType));
0027     
0028     scene->addItem(this);
0029 }