+ // create 'Ask Confirmation For' group
+ KSharedConfig::Ptr konqConfig = KSharedConfig::openConfig("konquerorrc", KConfig::IncludeGlobals);
+ const KConfigGroup trashConfig(konqConfig, "Trash");
+
+ QGroupBox* confirmBox = new QGroupBox(i18n("Ask Confirmation For"), vBox);
+
+ m_confirmMoveToTrash = new QCheckBox(i18n("Move to trash"), confirmBox);
+ m_confirmMoveToTrash->setChecked(trashConfig.readEntry("ConfirmTrash", false));
+
+ m_confirmDelete = new QCheckBox(i18n("Delete"), 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