File indexing completed on 2024-12-22 04:13:04
0001 /* 0002 * SPDX-FileCopyrightText: 2006 Peter Simonsson <peter.simonsson@gmail.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "KoToolBoxFactory.h" 0008 #include "KoToolBox_p.h" 0009 #include "KoToolBoxDocker_p.h" 0010 0011 0012 KoToolBoxFactory::KoToolBoxFactory() 0013 { 0014 } 0015 0016 KoToolBoxFactory::~KoToolBoxFactory() { 0017 } 0018 0019 QString KoToolBoxFactory::id() const 0020 { 0021 return QLatin1String("ToolBox"); 0022 } 0023 0024 KoDockFactoryBase::DockPosition KoToolBoxFactory::defaultDockPosition() const 0025 { 0026 return KoDockFactoryBase::DockLeft; 0027 } 0028 0029 QDockWidget* KoToolBoxFactory::createDockWidget() 0030 { 0031 KoToolBox *box = new KoToolBox(); 0032 KoToolBoxDocker *docker = new KoToolBoxDocker(box); 0033 docker->setObjectName(id()); 0034 0035 return docker; 0036 }