Commit 2043f455 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Port old style connect

parent 1c330887
......@@ -43,15 +43,15 @@ Preview::Preview(QQuickItem* parent)
m_plugins = allPlugins();
foreach(PreviewPlugin* plugin, m_plugins) {
connect(plugin, SIGNAL(previewGenerated(QQuickItem*)),
this, SLOT(slotPreviewGenerated(QQuickItem*)));
connect(plugin, &PreviewPlugin::previewGenerated,
this, &Preview::slotPreviewGenerated);
if (plugin->mimetypes().contains(QStringLiteral("file")))
m_filePlugin = plugin;
}
// When the object is created, it doesn't have a QQmlContext
QTimer::singleShot(0, this, SLOT(setPluginContexts()));
QTimer::singleShot(0, this, &Preview::setPluginContexts);
}
void Preview::setPluginContexts()
......
......@@ -38,8 +38,8 @@ SourcesModel::SourcesModel(QObject* parent)
, m_size(0)
{
m_manager = new Plasma::RunnerManager(this);
connect(m_manager, SIGNAL(matchesChanged(QList<Plasma::QueryMatch>)),
this, SLOT(slotMatchesChanged(QList<Plasma::QueryMatch>)));
connect(m_manager, &Plasma::RunnerManager::matchesChanged,
this, &SourcesModel::slotMatchesChanged);
KDirWatch* watch = KDirWatch::self();
connect(watch, &KDirWatch::created, this, &SourcesModel::slotSettingsFileChanged);
......@@ -48,7 +48,7 @@ SourcesModel::SourcesModel(QObject* parent)
m_resetTimer.setSingleShot(true);
m_resetTimer.setInterval(500);
connect(&m_resetTimer, SIGNAL(timeout()), this, SLOT(slotResetTimeout()));
connect(&m_resetTimer, &QTimer::timeout, this, &SourcesModel::slotResetTimeout);
}
SourcesModel::~SourcesModel()
......
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