mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
[DolphinViewActionHandler] Rename createDirectory signal
Signals should be named after an event that happened.
This commit is contained in:
parent
d575e1e884
commit
642a427d03
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue