#include "dolphin_generalsettings.h"
-GeneralSettingsPage::GeneralSettingsPage(DolphinMainWindow* mainWin,QWidget* parent) :
- SettingsPageBase(parent),
- m_mainWindow(mainWin),
- m_homeUrl(0),
- m_startSplit(0),
- m_startEditable(0),
- m_showDeleteCommand(0)
+GeneralSettingsPage::GeneralSettingsPage(DolphinMainWindow* mainWin, QWidget* parent) :
+ SettingsPageBase(parent),
+ m_mainWindow(mainWin),
+ m_homeUrl(0),
+ m_startSplit(0),
+ m_startEditable(0),
+ m_showDeleteCommand(0)
{
const int spacing = KDialog::spacingHint();
GeneralSettings* settings = DolphinSettings::instance().generalSettings();
vBox->setSpacing(spacing);
// create 'Home URL' editor
- QGroupBox* homeBox = new QGroupBox(i18n("Home folder"), vBox);
+ QGroupBox* homeBox = new QGroupBox(i18n("Home Folder"), vBox);
KHBox* homeUrlBox = new KHBox(homeBox);
homeUrlBox->setSpacing(spacing);
KHBox* buttonBox = new KHBox(homeBox);
buttonBox->setSpacing(spacing);
- QPushButton* useCurrentButton = new QPushButton(i18n("Use current location"), buttonBox);
+ QPushButton* useCurrentButton = new QPushButton(i18n("Use Current Location"), buttonBox);
connect(useCurrentButton, SIGNAL(clicked()),
this, SLOT(useCurrentLocation()));
- QPushButton* useDefaultButton = new QPushButton(i18n("Use default location"), buttonBox);
+ QPushButton* useDefaultButton = new QPushButton(i18n("Use Default Location"), buttonBox);
connect(useDefaultButton, SIGNAL(clicked()),
this, SLOT(useDefaultLocation()));
GeneralSettingsPage::~GeneralSettingsPage()
-{
-}
+{}
void GeneralSettingsPage::applySettings()
{
void GeneralSettingsPage::selectHomeUrl()
{
const QString homeUrl(m_homeUrl->text());
- KUrl url(KFileDialog::getExistingUrl(homeUrl));
+ KUrl url(KFileDialog::getExistingDirectoryUrl(homeUrl));
if (!url.isEmpty()) {
m_homeUrl->setText(url.prettyUrl());
}