if (m_keyInfo->isKeyPressed(Qt::Key_Shift) || m_keyInfo->isKeyLatched(Qt::Key_Shift)) {
m_shiftPressed = true;
}
- connect(m_keyInfo, SIGNAL(keyPressed(Qt::Key, bool)),
- this, SLOT(slotKeyModifierPressed(Qt::Key, bool)));
+ connect(m_keyInfo, SIGNAL(keyPressed(Qt::Key,bool)),
+ this, SLOT(slotKeyModifierPressed(Qt::Key,bool)));
}
m_removeAction = new QAction(this);
QAction *action = m_popup->exec(QCursor::pos());
if (action == emptyTrashAction) {
- const QString text(i18nc("@info", "Do you really want to empty the Trash? All items will be deleted."));
- const bool del = KMessageBox::warningContinueCancel(m_mainWindow,
- text,
- QString(),
- KGuiItem(i18nc("@action:button", "Empty Trash"),
- KIcon("user-trash"))
- ) == KMessageBox::Continue;
- if (del) {
- KonqOperations::emptyTrash(m_mainWindow);
- }
+ KonqOperations::emptyTrash(m_mainWindow);
} else if (action == addToPlacesAction) {
const KUrl& url = m_mainWindow->activeViewContainer()->url();
if (url.isValid()) {
// setup 'Create New' menu
DolphinNewFileMenu* newFileMenu = new DolphinNewFileMenu(m_mainWindow);
const DolphinView* view = m_mainWindow->activeViewContainer()->view();
- newFileMenu->setViewShowsHiddenFiles(view->showHiddenFiles());
+ newFileMenu->setViewShowsHiddenFiles(view->hiddenFilesShown());
newFileMenu->checkUpToDate();
newFileMenu->setPopupFiles(m_fileInfo.url());
newFileMenu->setEnabled(selectedItemsProperties().supportsWriting());
// setup 'Create New' menu
KNewFileMenu* newFileMenu = m_mainWindow->newFileMenu();
const DolphinView* view = m_mainWindow->activeViewContainer()->view();
- newFileMenu->setViewShowsHiddenFiles(view->showHiddenFiles());
+ newFileMenu->setViewShowsHiddenFiles(view->hiddenFilesShown());
newFileMenu->checkUpToDate();
newFileMenu->setPopupFiles(m_baseUrl);
m_popup->addMenu(newFileMenu->menu());
addCustomActions();
- QAction* propertiesAction = m_popup->addAction(i18nc("@action:inmenu", "Properties"));
- propertiesAction->setIcon(KIcon("document-properties"));
+ QAction* propertiesAction = m_mainWindow->actionCollection()->action("properties");
+ m_popup->addAction(propertiesAction);
addShowMenuBarAction();
QAction* action = m_popup->exec(QCursor::pos());
- if (action == propertiesAction) {
- const KUrl& url = m_mainWindow->activeViewContainer()->url();
-
- KPropertiesDialog* dialog = new KPropertiesDialog(url, m_mainWindow);
- dialog->setAttribute(Qt::WA_DeleteOnClose);
- dialog->show();
- } else if (addToPlacesAction && (action == addToPlacesAction)) {
- const KUrl& url = m_mainWindow->activeViewContainer()->url();
+ if (addToPlacesAction && (action == addToPlacesAction)) {
+ const KUrl url = m_mainWindow->activeViewContainer()->url();
if (url.isValid()) {
DolphinSettings::instance().placesModel()->addPlace(placesName(url), url);
}