2
/***************************************************************************
3
* Copyright 2008 by Montel Laurent <montel@kde.org> *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
19
***************************************************************************/
21
#include "shell_config.h"
24
#include <KConfigGroup>
26
#include <KPluginFactory>
27
#include <KPluginLoader>
29
#include <Plasma/AbstractRunner>
31
ShellConfig::ShellConfig(const KConfigGroup &config, QWidget* parent)
35
QHBoxLayout *hboxLayout = new QHBoxLayout(parent);
36
hboxLayout->addWidget(this);
40
connect(m_ui.cbRunAsOther, SIGNAL(clicked(bool)), this, SLOT(slotUpdateUser(bool)));
42
m_ui.cbRunAsOther->hide();
43
m_ui.lbUsername->hide();
44
m_ui.leUsername->hide();
45
m_ui.lbPassword->hide();
46
m_ui.lePassword->hide();
50
ShellConfig::~ShellConfig()
54
void ShellConfig::slotUpdateUser(bool b)
57
m_ui.leUsername->setFocus();
61
#include "shell_config.moc"