[DolphinViewActionHandler] Rename createDirectory signal

Signals should be named after an event that happened.
This commit is contained in:
Elvis Angelaccio 2018-10-24 22:49:01 +02:00
parent d575e1e884
commit 642a427d03
4 changed files with 4 additions and 4 deletions

View file

@ -142,7 +142,7 @@ DolphinMainWindow::DolphinMainWindow() :
m_actionHandler = new DolphinViewActionHandler(actionCollection(), this);
connect(m_actionHandler, &DolphinViewActionHandler::actionBeingHandled, this, &DolphinMainWindow::clearStatusBar);
connect(m_actionHandler, &DolphinViewActionHandler::createDirectory, this, &DolphinMainWindow::createDirectory);
connect(m_actionHandler, &DolphinViewActionHandler::createDirectoryTriggered, this, &DolphinMainWindow::createDirectory);
m_remoteEncoding = new DolphinRemoteEncoding(this, m_actionHandler);
connect(this, &DolphinMainWindow::urlChanged,

View file

@ -115,7 +115,7 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QVariantL
m_actionHandler = new DolphinViewActionHandler(actionCollection(), this);
m_actionHandler->setCurrentView(m_view);
connect(m_actionHandler, &DolphinViewActionHandler::createDirectory, this, &DolphinPart::createDirectory);
connect(m_actionHandler, &DolphinViewActionHandler::createDirectoryTriggered, this, &DolphinPart::createDirectory);
m_remoteEncoding = new DolphinRemoteEncoding(this, m_actionHandler);
connect(this, &DolphinPart::aboutToOpenURL,

View file

@ -95,7 +95,7 @@ void DolphinViewActionHandler::createActions()
m_actionCollection->setDefaultShortcut(newDirAction, Qt::Key_F10);
newDirAction->setIcon(QIcon::fromTheme(QStringLiteral("folder-new")));
newDirAction->setEnabled(false); // Will be enabled in slotWriteStateChanged(bool) if the current URL is writable
connect(newDirAction, &QAction::triggered, this, &DolphinViewActionHandler::createDirectory);
connect(newDirAction, &QAction::triggered, this, &DolphinViewActionHandler::createDirectoryTriggered);
// File menu

View file

@ -93,7 +93,7 @@ Q_SIGNALS:
* The receiver of the signal (DolphinMainWindow or DolphinPart) invokes
* the method createDirectory of their KNewFileMenu instance.
*/
void createDirectory();
void createDirectoryTriggered();
private Q_SLOTS:
/**