File indexing completed on 2024-05-12 15:56:48
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2006-2007 Jan Hambrecht <jaham@gmx.net> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "KoShapeLayer.h" 0008 0009 #include <QRectF> 0010 0011 #include "SimpleShapeContainerModel.h" 0012 #include "KoShapeSavingContext.h" 0013 #include "KoShapeLoadingContext.h" 0014 #include <KoXmlWriter.h> 0015 #include <KoXmlNS.h> 0016 0017 KoShapeLayer::KoShapeLayer() 0018 : KoShapeContainer(new SimpleShapeContainerModel()) 0019 { 0020 setSelectable(false); 0021 } 0022 0023 KoShapeLayer::KoShapeLayer(KoShapeContainerModel *model) 0024 : KoShapeContainer(model) 0025 { 0026 setSelectable(false); 0027 } 0028 0029 bool KoShapeLayer::hitTest(const QPointF &position) const 0030 { 0031 Q_UNUSED(position); 0032 return false; 0033 } 0034 0035 QRectF KoShapeLayer::boundingRect() const 0036 { 0037 return KoShape::boundingRect(shapes()); 0038 } 0039 0040 void KoShapeLayer::paintComponent(QPainter &) const 0041 { 0042 }