Warning, file /utilities/kdf/src/kcmdf.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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, "kcmdf.json")
0018 
0019 KDiskFreeWidget::KDiskFreeWidget( QWidget *parent, const QVariantList &args )
0020         : KCModule( parent, args )
0021 {
0022     setButtons(Help);
0023 
0024     QVBoxLayout *topLayout = new QVBoxLayout( this );
0025     topLayout->setContentsMargins({});
0026 
0027     mKdf = new KDFWidget( this, false );
0028     topLayout->addWidget( mKdf );
0029 }
0030 
0031 KDiskFreeWidget::~KDiskFreeWidget()
0032 {
0033     mKdf->applySettings();
0034 }
0035 
0036 QString KDiskFreeWidget::quickHelp() const
0037 {
0038     return i18n("A right mouse button click opens a context menu to mount/unmount a device"
0039                 " or to open it in the file manager.");
0040 }
0041 
0042 #include "kcmdf.moc"