+ startBoxLayout->addWidget(m_splitView);
+ startBoxLayout->addWidget(m_editableUrl);
+ startBoxLayout->addWidget(m_filterBar);
+
+ // create 'Ask Confirmation For' group
+ KSharedConfig::Ptr konqConfig = KSharedConfig::openConfig("konquerorrc", KConfig::IncludeGlobals);
+ const KConfigGroup trashConfig(konqConfig, "Trash");
+
+ QGroupBox* confirmBox = new QGroupBox(i18nc("@title:group", "Ask For Confirmation When"), vBox);
+
+ m_confirmMoveToTrash = new QCheckBox(i18nc("@option:check Ask for Confirmation When",
+ "Moving files or folders to trash"), confirmBox);
+ m_confirmMoveToTrash->setChecked(trashConfig.readEntry("ConfirmTrash", false));
+
+ m_confirmDelete = new QCheckBox(i18nc("@option:check Ask for Confirmation When",
+ "Deleting files or folders"), confirmBox);
+ m_confirmDelete->setChecked(trashConfig.readEntry("ConfirmDelete", true));
+
+ QVBoxLayout* confirmBoxLayout = new QVBoxLayout(confirmBox);
+ confirmBoxLayout->addWidget(m_confirmMoveToTrash);
+ confirmBoxLayout->addWidget(m_confirmDelete);
+
+ // create 'Show the command 'Delete' in context menu' checkbox
+ m_showDeleteCommand = new QCheckBox(i18nc("@option:check", "Show 'Delete' command in context menu"), vBox);
+ const KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::NoGlobals);
+ const KConfigGroup kdeConfig(globalConfig, "KDE");
+ m_showDeleteCommand->setChecked(kdeConfig.readEntry("ShowDeleteCommand", false));