}
DolphinContextMenu::~DolphinContextMenu()
-{}
+{
+}
void DolphinContextMenu::open()
{
if (popup->exec(QCursor::pos()) == emptyTrashAction) {
const QString text(i18n("Do you really want to empty the Trash? All items will get deleted."));
const bool del = KMessageBox::warningContinueCancel(m_mainWindow,
- text,
- QString(),
- KGuiItem(i18n("Empty Trash"), KIcon("user-trash"))
+ text,
+ QString(),
+ KGuiItem(i18n("Empty Trash"), KIcon("user-trash"))
) == KMessageBox::Continue;
if (del) {
KonqOperations::emptyTrash(m_mainWindow);
const KUrl selectedUrl(m_fileInfo->url());
if (selectedUrl.isValid()) {
DolphinSettings::instance().placesModel()->addPlace(selectedUrl.fileName(),
- selectedUrl);
+ selectedUrl);
}
} else if (serviceActions.contains(activatedAction)) {
// one of the 'Actions' items has been selected
}
QList<QAction*> DolphinContextMenu::insertActionItems(KMenu* popup,
- QVector<KDesktopFileActions::Service>& actionsVector)
+ QVector<KDesktopFileActions::Service>& actionsVector)
{
// Parts of the following code have been taken
// from the class KonqOperations located in