Commit 999c9ddd authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Port some old style connects

parent 0d31a22e
......@@ -92,10 +92,10 @@ KateFileTree::KateFileTree(QWidget *parent)
connect(m_filelistRenameFile, &QAction::triggered, this, &KateFileTree::slotRenameFile);
m_filelistRenameFile->setWhatsThis(i18n("Rename the selected file."));
m_filelistPrintDocument = KStandardAction::print(this, SLOT(slotPrintDocument()), this);
m_filelistPrintDocument = KStandardAction::print(this, &KateFileTree::slotPrintDocument, this);
m_filelistPrintDocument->setWhatsThis(i18n("Print selected document."));
m_filelistPrintDocumentPreview = KStandardAction::printPreview(this, SLOT(slotPrintDocumentPreview()), this);
m_filelistPrintDocumentPreview = KStandardAction::printPreview(this, &KateFileTree::slotPrintDocumentPreview, this);
m_filelistPrintDocumentPreview->setWhatsThis(i18n("Show print preview of current document"));
m_filelistDeleteDocument = new QAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18nc("@action:inmenu", "Delete"), this);
......
......@@ -997,10 +997,10 @@ bool KateMainWindow::showModOnDiskPrompt(ModOnDiskMode mode)
void KateMainWindow::slotDocumentCreated(KTextEditor::Document *doc)
{
connect(doc, SIGNAL(modifiedChanged(KTextEditor::Document *)), this, SLOT(updateCaption(KTextEditor::Document *)));
connect(doc, SIGNAL(readWriteChanged(KTextEditor::Document *)), this, SLOT(updateCaption(KTextEditor::Document *)));
connect(doc, SIGNAL(documentNameChanged(KTextEditor::Document *)), this, SLOT(updateCaption(KTextEditor::Document *)));
connect(doc, SIGNAL(documentUrlChanged(KTextEditor::Document *)), this, SLOT(updateCaption(KTextEditor::Document *)));
connect(doc, &KTextEditor::Document::modifiedChanged, this, QOverload<KTextEditor::Document *>::of(&KateMainWindow::updateCaption));
connect(doc, &KTextEditor::Document::readWriteChanged, this, QOverload<KTextEditor::Document *>::of(&KateMainWindow::updateCaption));
connect(doc, &KTextEditor::Document::documentNameChanged, this, QOverload<KTextEditor::Document *>::of(&KateMainWindow::updateCaption));
connect(doc, &KTextEditor::Document::documentUrlChanged, this, QOverload<KTextEditor::Document *>::of(&KateMainWindow::updateCaption));
connect(doc, &KTextEditor::Document::documentNameChanged, this, &KateMainWindow::slotUpdateOpenWith);
updateCaption(doc);
......
......@@ -680,7 +680,7 @@ void Sidebar::restoreSession(KConfigGroup &config)
// readd the button
int newId = m_widgetToId[tv];
appendTab(tv->icon, newId, tv->text);
connect(tab(newId), SIGNAL(clicked(int)), this, SLOT(tabClicked(int)));
connect(tab(newId), &KMultiTabBarTab::clicked, this, &Sidebar::tabClicked);
tab(newId)->installEventFilter(this);
tab(newId)->setToolTip(QString());
......
......@@ -137,7 +137,7 @@ void KWrite::setupActions()
->addAction(KStandardAction::Open, QStringLiteral("file_open"), this, SLOT(slotOpen()))
->setWhatsThis(i18n("Use this command to open an existing document for editing"));
m_recentFiles = KStandardAction::openRecent(this, SLOT(slotOpen(QUrl)), this);
m_recentFiles = KStandardAction::openRecent(this, QOverload<const QUrl &>::of(&KWrite::slotOpen), this);
actionCollection()->addAction(m_recentFiles->objectName(), m_recentFiles);
m_recentFiles->setWhatsThis(i18n("This lists files which you have opened recently, and allows you to easily open them again."));
......@@ -152,9 +152,9 @@ void KWrite::setupActions()
// setup Settings menu
setStandardToolBarMenuEnabled(true);
m_paShowMenuBar = KStandardAction::showMenubar(this, SLOT(toggleMenuBar()), actionCollection());
m_paShowMenuBar = KStandardAction::showMenubar(this, &KWrite::toggleMenuBar, actionCollection());
m_paShowStatusBar = KStandardAction::showStatusbar(this, SLOT(toggleStatusBar()), this);
m_paShowStatusBar = KStandardAction::showStatusbar(this, &KWrite::toggleStatusBar, this);
actionCollection()->addAction(m_paShowStatusBar->objectName(), m_paShowStatusBar);
m_paShowStatusBar->setWhatsThis(i18n("Use this command to show or hide the view's statusbar"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment