Commit 79141d86 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use Q_EMIT to make it compile against kf5.82

parent 9647a627
......@@ -82,7 +82,7 @@ void DirModel::setFolder(const QUrl &folder)
if (folder != m_lister->url()) {
m_dirModel.openUrl(folder);
emit folderChanged();
Q_EMIT folderChanged();
}
}
......@@ -100,7 +100,7 @@ void DirModel::setShowDotFiles(bool showDotFiles)
{
m_lister->setShowingDotFiles(showDotFiles);
m_lister->emitChanges();
emit showDotFilesChanged();
Q_EMIT showDotFilesChanged();
}
QString DirModel::nameFilter() const
......@@ -114,7 +114,7 @@ void DirModel::setNameFilter(const QString &nameFilter)
m_lister->setNameFilter(nameFilter);
m_lister->emitChanges();
emit nameFilterChanged();
Q_EMIT nameFilterChanged();
}
}
......@@ -132,7 +132,7 @@ void DirModel::setMimeFilters(const QStringList &mimeFilters)
m_lister->setMimeFilter(newMimeFilters);
m_lister->emitChanges();
emit mimeFiltersChanged();
Q_EMIT mimeFiltersChanged();
}
}
......
......@@ -22,7 +22,7 @@ QString FileChooserQmlCallback::title() const
void FileChooserQmlCallback::setTitle(const QString &title)
{
m_title = title;
emit titleChanged();
Q_EMIT titleChanged();
}
bool FileChooserQmlCallback::selectMultiple() const
......@@ -33,7 +33,7 @@ bool FileChooserQmlCallback::selectMultiple() const
void FileChooserQmlCallback::setSelectMultiple(bool selectMultiple)
{
m_selectMultiple = selectMultiple;
emit selectMultipleChanged();
Q_EMIT selectMultipleChanged();
}
bool FileChooserQmlCallback::selectExisting() const
......@@ -44,7 +44,7 @@ bool FileChooserQmlCallback::selectExisting() const
void FileChooserQmlCallback::setSelectExisting(bool selectExisting)
{
m_selectExisting = selectExisting;
emit selectExistingChanged();
Q_EMIT selectExistingChanged();
}
QStringList FileChooserQmlCallback::nameFilters() const
......@@ -55,7 +55,7 @@ QStringList FileChooserQmlCallback::nameFilters() const
void FileChooserQmlCallback::setNameFilters(const QStringList &nameFilters)
{
m_nameFilters = nameFilters;
emit nameFiltersChanged();
Q_EMIT nameFiltersChanged();
}
QStringList FileChooserQmlCallback::mimeTypeFilters() const
......@@ -66,7 +66,7 @@ QStringList FileChooserQmlCallback::mimeTypeFilters() const
void FileChooserQmlCallback::setMimeTypeFilters(const QStringList &mimeTypeFilters)
{
m_mimeTypeFilters = mimeTypeFilters;
emit mimeTypeFiltersChanged();
Q_EMIT mimeTypeFiltersChanged();
}
QUrl FileChooserQmlCallback::folder() const
......@@ -77,7 +77,7 @@ QUrl FileChooserQmlCallback::folder() const
void FileChooserQmlCallback::setFolder(const QUrl &folder)
{
m_folder = folder;
emit folderChanged();
Q_EMIT folderChanged();
}
QString FileChooserQmlCallback::currentFile() const
......@@ -88,7 +88,7 @@ QString FileChooserQmlCallback::currentFile() const
void FileChooserQmlCallback::setCurrentFile(const QString &currentFile)
{
m_currentFile = currentFile;
emit currentFileChanged();
Q_EMIT currentFileChanged();
}
QString FileChooserQmlCallback::acceptLabel() const
......@@ -99,7 +99,7 @@ QString FileChooserQmlCallback::acceptLabel() const
void FileChooserQmlCallback::setAcceptLabel(const QString &acceptLabel)
{
m_acceptLabel = acceptLabel;
emit acceptLabelChanged();
Q_EMIT acceptLabelChanged();
}
bool FileChooserQmlCallback::selectFolder() const
......@@ -110,5 +110,5 @@ bool FileChooserQmlCallback::selectFolder() const
void FileChooserQmlCallback::setSelectFolder(bool selectFolder)
{
m_selectFolder = selectFolder;
emit selectFolderChanged();
Q_EMIT selectFolderChanged();
}
Supports Markdown
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