Commit 57dc36b9 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

s/KLineEdit/QLineEdit

parent e3e06ff1
......@@ -246,7 +246,7 @@ void EditProfileDialog::setupGeneralPage(const Profile::Ptr profile)
ProfileGroup::Ptr group = profile->asGroup();
if (!group || group->profiles().count() < 2) {
_ui->profileNameEdit->setText(profile->name());
_ui->profileNameEdit->setClearButtonShown(true);
_ui->profileNameEdit->setClearButtonEnabled(true);
_ui->emptyNameWarningWidget->setVisible(profile->name().isEmpty());
_ui->emptyNameWarningWidget->setText(i18n("Profile name is empty."));
......@@ -261,16 +261,18 @@ void EditProfileDialog::setupGeneralPage(const Profile::Ptr profile)
ShellCommand command(profile->command() , profile->arguments());
_ui->commandEdit->setText(command.fullCommand());
KUrlCompletion* exeCompletion = new KUrlCompletion(KUrlCompletion::ExeCompletion);
exeCompletion->setParent(this);
exeCompletion->setDir(QUrl());
_ui->commandEdit->setCompletionObject(exeCompletion);
#pragma message("Look at this setCompletionObject again")
// KUrlCompletion* exeCompletion = new KUrlCompletion(KUrlCompletion::ExeCompletion);
// exeCompletion->setParent(this);
// exeCompletion->setDir(QUrl());
// _ui->commandEdit->setCompletionObject(exeCompletion);
_ui->initialDirEdit->setText(profile->defaultWorkingDirectory());
KUrlCompletion* dirCompletion = new KUrlCompletion(KUrlCompletion::DirCompletion);
dirCompletion->setParent(this);
_ui->initialDirEdit->setCompletionObject(dirCompletion);
_ui->initialDirEdit->setClearButtonShown(true);
#pragma message("Look at this setCompletionObject again")
// KUrlCompletion* dirCompletion = new KUrlCompletion(KUrlCompletion::DirCompletion);
// dirCompletion->setParent(this);
// _ui->initialDirEdit->setCompletionObject(dirCompletion);
_ui->initialDirEdit->setClearButtonEnabled(true);
_ui->dirSelectButton->setIcon(KIcon("folder-open"));
_ui->iconSelectButton->setIcon(KIcon(profile->icon()));
......
......@@ -53,7 +53,7 @@
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="KLineEdit" name="profileNameEdit">
<widget class="QLineEdit" name="profileNameEdit">
<property name="toolTip">
<string>A descriptive name for the profile</string>
</property>
......@@ -73,7 +73,7 @@
</widget>
</item>
<item row="2" column="1" colspan="2">
<widget class="KLineEdit" name="commandEdit">
<widget class="QLineEdit" name="commandEdit">
<property name="toolTip">
<string>The command to execute when new terminal sessions are created using this profile</string>
</property>
......@@ -93,7 +93,7 @@
</widget>
</item>
<item row="3" column="1" colspan="2">
<widget class="KLineEdit" name="initialDirEdit">
<widget class="QLineEdit" name="initialDirEdit">
<property name="toolTip">
<string>The initial working directory for new terminal sessions using this profile</string>
</property>
......@@ -758,7 +758,7 @@
</widget>
</item>
<item>
<widget class="KLineEdit" name="wordCharacterEdit">
<widget class="QLineEdit" name="wordCharacterEdit">
<property name="toolTip">
<string>Characters which are considered part of a word when double-clicking to select whole words in the terminal</string>
</property>
......@@ -1268,11 +1268,6 @@
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
<customwidget>
<class>KIntSpinBox</class>
<extends>QSpinBox</extends>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment