configproblemreporter.cpp
Go to the documentation of this file.00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "configproblemreporter.h"
00013
00014 #include <qvariant.h>
00015 #include <kdialog.h>
00016 #include <qcheckbox.h>
00017 #include <qslider.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 #include "./configproblemreporter.ui.h"
00022
00023
00024
00025
00026
00027 ConfigureProblemReporter::ConfigureProblemReporter( QWidget* parent, const char* name, WFlags fl )
00028 : QWidget( parent, name, fl )
00029 {
00030 if ( !name )
00031 setName( "ConfigureProblemReporter" );
00032 ConfigureProblemReporterLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "ConfigureProblemReporterLayout");
00033
00034 bgParserCheckbox = new QCheckBox( this, "bgParserCheckbox" );
00035 ConfigureProblemReporterLayout->addWidget( bgParserCheckbox );
00036
00037 delaySlider = new QSlider( this, "delaySlider" );
00038 delaySlider->setMaxValue( 2000 );
00039 delaySlider->setLineStep( 250 );
00040 delaySlider->setPageStep( 500 );
00041 delaySlider->setOrientation( QSlider::Horizontal );
00042 delaySlider->setTickmarks( QSlider::Right );
00043 delaySlider->setTickInterval( 250 );
00044 ConfigureProblemReporterLayout->addWidget( delaySlider );
00045 Spacer1 = new QSpacerItem( 0, 101, QSizePolicy::Minimum, QSizePolicy::Expanding );
00046 ConfigureProblemReporterLayout->addItem( Spacer1 );
00047 languageChange();
00048 resize( QSize(390, 304).expandedTo(minimumSizeHint()) );
00049 clearWState( WState_Polished );
00050
00051
00052 connect( bgParserCheckbox, SIGNAL( toggled(bool) ), this, SLOT( bgParserCheckbox_toggled(bool) ) );
00053 init();
00054 }
00055
00056
00057
00058
00059 ConfigureProblemReporter::~ConfigureProblemReporter()
00060 {
00061 destroy();
00062
00063 }
00064
00065
00066
00067
00068
00069 void ConfigureProblemReporter::languageChange()
00070 {
00071 bgParserCheckbox->setText( tr2i18n( "&Enable background parsing" ) );
00072 }
00073
00074 #include "configproblemreporter.moc"
This file is part of the documentation for KDevelop Version 3.1.2.