File indexing completed on 2024-11-10 05:13:55
0001 /* 0002 SPDX-FileCopyrightText: 1998 Michael Kropfberger <michael.kropfberger@gmx.net> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 // 0007 // 1999-12-05 Espen Sand 0008 // Modified to use KCModule instead of the old and obsolete 0009 // KControlApplication 0010 // 0011 0012 #include "kcmdf.h" 0013 0014 #include <KPluginFactory> 0015 #include <QVBoxLayout> 0016 0017 K_PLUGIN_CLASS_WITH_JSON(KDiskFreeWidget, "kcm_kdf.json") 0018 0019 KDiskFreeWidget::KDiskFreeWidget( QObject *parent, const KPluginMetaData &data) 0020 : KCModule( parent, data) 0021 { 0022 setButtons(Help); 0023 QVBoxLayout *topLayout = new QVBoxLayout( widget() ); 0024 topLayout->setContentsMargins({}); 0025 mKdf = new KDFWidget( widget(), false ); 0026 topLayout->addWidget( mKdf ); 0027 } 0028 0029 KDiskFreeWidget::~KDiskFreeWidget() 0030 { 0031 mKdf->applySettings(); 0032 } 0033 #include "kcmdf.moc" 0034 0035 #include "moc_kcmdf.cpp"