util
environmentselectionwidget.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "environmentselectionwidget.h"
00020 #include "environmentgrouplist.h"
00021 #include <ksettings/dispatcher.h>
00022 #include <kglobal.h>
00023 #include <interfaces/icore.h>
00024 #include <kcomponentdata.h>
00025
00026 namespace KDevelop
00027 {
00028
00029 class EnvironmentSelectionWidgetPrivate
00030 {
00031 };
00032
00033 EnvironmentSelectionWidget::EnvironmentSelectionWidget( QWidget *parent )
00034 : KComboBox( parent ), d( new EnvironmentSelectionWidgetPrivate )
00035 {
00036 }
00037
00038 EnvironmentSelectionWidget::~EnvironmentSelectionWidget()
00039 {
00040 delete d;
00041 }
00042
00043 QString EnvironmentSelectionWidget::currentProfile() const
00044 {
00045 return currentText();
00046 }
00047
00048 void EnvironmentSelectionWidget::setCurrentProfile( const QString& profile )
00049 {
00050 setCurrentItem( profile );
00051 }
00052
00053
00054 }
00055
00056 #include "environmentselectionwidget.moc"