Commit f7c595ca authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use Q_EMIT

parent 2f547b5b
......@@ -55,5 +55,5 @@ void FileGroupDetails::slotAutoEmbedClicked(int button)
return;
}
m_mimeTypeData->setAutoEmbed((MimeTypeData::AutoEmbed)button);
emit changed(true);
Q_EMIT changed(true);
}
......@@ -184,7 +184,7 @@ void FileTypeDetails::updateIcon(const QString &icon)
m_item->setIcon(icon);
}
emit changed(true);
Q_EMIT changed(true);
}
void FileTypeDetails::updateDescription(const QString &desc)
......@@ -195,7 +195,7 @@ void FileTypeDetails::updateDescription(const QString &desc)
m_mimeTypeData->setComment(desc);
emit changed(true);
Q_EMIT changed(true);
}
void FileTypeDetails::addExtension()
......@@ -212,7 +212,7 @@ void FileTypeDetails::addExtension()
patt += ext;
m_mimeTypeData->setPatterns(patt);
updateRemoveButton();
emit changed(true);
Q_EMIT changed(true);
}
}
......@@ -229,7 +229,7 @@ void FileTypeDetails::removeExtension()
m_mimeTypeData->setPatterns(patt);
delete extensionLB->takeItem(extensionLB->currentRow());
updateRemoveButton();
emit changed(true);
Q_EMIT changed(true);
}
void FileTypeDetails::slotAutoEmbedClicked(int button)
......@@ -242,7 +242,7 @@ void FileTypeDetails::slotAutoEmbedClicked(int button)
updateAskSave();
emit changed(true);
Q_EMIT changed(true);
}
void FileTypeDetails::updateAskSave()
......@@ -315,7 +315,7 @@ void FileTypeDetails::slotAskSaveToggled(bool askSave)
}
m_mimeTypeData->setAskSave(askSave);
emit changed(true);
Q_EMIT changed(true);
}
void FileTypeDetails::setMimeTypeData(MimeTypeData *mimeTypeData, TypesListItem *item)
......
......@@ -145,7 +145,7 @@ FileTypesView::~FileTypesView()
void FileTypesView::setDirty(bool state)
{
emit changed(state);
Q_EMIT changed(state);
m_dirty = state;
}
......
......@@ -183,7 +183,7 @@ void KServiceListWidget::promoteService()
updatePreferredServices();
emit changed(true);
Q_EMIT changed(true);
}
void KServiceListWidget::demoteService()
......@@ -204,7 +204,7 @@ void KServiceListWidget::demoteService()
updatePreferredServices();
emit changed(true);
Q_EMIT changed(true);
}
void KServiceListWidget::addService()
......@@ -260,7 +260,7 @@ void KServiceListWidget::addService()
updatePreferredServices();
emit changed(true);
Q_EMIT changed(true);
}
void KServiceListWidget::editService()
......@@ -334,7 +334,7 @@ void KServiceListWidget::editService()
updatePreferredServices();
emit changed(true);
Q_EMIT changed(true);
}
void KServiceListWidget::removeService()
......@@ -349,7 +349,7 @@ void KServiceListWidget::removeService()
delete servicesLB->takeItem(selected);
updatePreferredServices();
emit changed(true);
Q_EMIT changed(true);
}
// Update buttons and service list again (e.g. to re-add "None")
......
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