kdf
kcmdf.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #include "kcmdf.h"
00029
00030 #include <kdialog.h>
00031
00032 #include <QtGui/QLayout>
00033
00034 #include <QtGui/QVBoxLayout>
00035 #include <kcomponentdata.h>
00036
00037 KDiskFreeWidget::KDiskFreeWidget( const KComponentData &inst, QWidget *parent )
00038 : KCModule( inst, parent )
00039 {
00040 setButtons(Help);
00041
00042 QVBoxLayout *topLayout = new QVBoxLayout( this );
00043 topLayout->setSpacing( KDialog::spacingHint() );
00044 topLayout->setMargin( 0 );
00045
00046 mKdf = new KDFWidget( this, false );
00047 topLayout->addWidget( mKdf );
00048 }
00049
00050 KDiskFreeWidget::~KDiskFreeWidget()
00051 {
00052 mKdf->applySettings();
00053 }
00054
00055 QString KDiskFreeWidget::quickHelp() const
00056 {
00057 return i18n("<h3>Hardware Information</h3><br /> All the information modules return information"
00058 " about a certain aspect of your computer hardware or your operating system."
00059 " Not all modules are available on all hardware architectures and/or operating systems.");
00060 }
00061
00062 extern "C"
00063 {
00064 KDE_EXPORT KCModule* create_kdf( QWidget *parent, const char * )
00065 {
00066 KComponentData inst("kdf");
00067 return new KDiskFreeWidget( inst , parent );
00068 }
00069 }
00070
00071 #include "kcmdf.moc"