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

Use Q_EMIT

parent 9b108afb
......@@ -140,7 +140,7 @@ void KWalletConfig::newLocalWallet()
_wcw->_localWallet->setCurrentIndex(_wcw->_localWallet->findText(n));
emit changed(true);
Q_EMIT changed(true);
}
void KWalletConfig::newNetworkWallet()
......@@ -154,7 +154,7 @@ void KWalletConfig::newNetworkWallet()
_wcw->_defaultWallet->setCurrentIndex(_wcw->_defaultWallet->findText(n));
emit changed(true);
Q_EMIT changed(true);
}
void KWalletConfig::launchManager()
......@@ -170,7 +170,7 @@ void KWalletConfig::launchManager()
void KWalletConfig::configChanged()
{
emit changed(true);
Q_EMIT changed(true);
}
void KWalletConfig::load()
......@@ -246,7 +246,7 @@ void KWalletConfig::load()
}
}
_wcw->_accessList->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
emit changed(false);
Q_EMIT changed(false);
}
void KWalletConfig::save()
......@@ -334,7 +334,7 @@ void KWalletConfig::save()
kwalletd.call(QStringLiteral("reconfigure"));
}
emit changed(false);
Q_EMIT changed(false);
}
void KWalletConfig::defaults()
......@@ -351,7 +351,7 @@ void KWalletConfig::defaults()
_wcw->_localWalletSelected->setChecked(false);
_wcw->_localWallet->setCurrentIndex(0);
_wcw->_accessList->clear();
emit changed(true);
Q_EMIT changed(true);
}
QString KWalletConfig::quickHelp() const
......@@ -376,7 +376,7 @@ void KWalletConfig::deleteEntry()
QList<QTreeWidgetItem *> items = _wcw->_accessList->selectedItems();
if (items.count() == 1 && items[0]) {
delete items[0];
emit changed(true);
Q_EMIT changed(true);
}
}
......
......@@ -20,7 +20,7 @@ DisconnectAppButton::DisconnectAppButton(const QString &appName, KWallet::Wallet
void DisconnectAppButton::onClicked()
{
if (_wallet->disconnectApplication(_wallet->walletName(), _appName)) {
emit appDisconnected(_appName);
Q_EMIT appDisconnected(_appName);
}
}
......
......@@ -133,9 +133,9 @@ KWalletEditor::KWalletEditor(QWidget *parent, const QString &name)
KWalletEditor::~KWalletEditor()
{
emit enableFolderActions(false);
emit enableWalletActions(false);
emit enableContextFolderActions(false);
Q_EMIT enableFolderActions(false);
Q_EMIT enableWalletActions(false);
Q_EMIT enableContextFolderActions(false);
// save splitter size
KConfigGroup cg(KSharedConfig::openConfig(), "WalletEditor");
cg.writeEntry("SplitterSize", _splitter->sizes());
......@@ -165,9 +165,9 @@ void KWalletEditor::setWallet(KWallet::Wallet *wallet, bool isPath)
connect(_w, SIGNAL(folderListUpdated()), this, SLOT(updateFolderList()));
updateFolderList();
emit enableFolderActions(true);
emit enableWalletActions(true);
emit enableContextFolderActions(true);
Q_EMIT enableFolderActions(true);
Q_EMIT enableWalletActions(true);
Q_EMIT enableContextFolderActions(true);
_mapEditorShowHide->setChecked(false);
showHideMapEditorValue(false);
......@@ -307,8 +307,8 @@ void KWalletEditor::walletClosed()
{
_w = nullptr;
setEnabled(false);
emit enableWalletActions(false);
emit enableFolderActions(false);
Q_EMIT enableWalletActions(false);
Q_EMIT enableFolderActions(false);
}
void KWalletEditor::updateFolderList(bool checkEntries)
......@@ -897,9 +897,9 @@ void KWalletEditor::changePassword()
void KWalletEditor::walletOpened(bool success)
{
if (success) {
emit enableFolderActions(true);
emit enableContextFolderActions(false);
emit enableWalletActions(true);
Q_EMIT enableFolderActions(true);
Q_EMIT enableContextFolderActions(false);
Q_EMIT enableWalletActions(true);
updateFolderList();
_entryList->setWallet(_w);
} else {
......@@ -1256,18 +1256,18 @@ void KWalletEditor::setNewWallet(bool x)
void KWalletEditor::hideEvent(QHideEvent *)
{
emit enableContextFolderActions(false);
emit enableFolderActions(false);
emit enableWalletActions(false);
Q_EMIT enableContextFolderActions(false);
Q_EMIT enableFolderActions(false);
Q_EMIT enableWalletActions(false);
disconnectActions();
}
void KWalletEditor::showEvent(QShowEvent *)
{
connectActions();
emit enableContextFolderActions(true);
emit enableFolderActions(true);
emit enableWalletActions(true);
Q_EMIT enableContextFolderActions(true);
Q_EMIT enableFolderActions(true);
Q_EMIT enableWalletActions(true);
}
void KWalletEditor::onSearchTextChanged(const QString &text)
......
......@@ -75,27 +75,27 @@ KWalletPopup::~KWalletPopup()
void KWalletPopup::openWallet()
{
emit walletOpened(_walletName);
Q_EMIT walletOpened(_walletName);
}
void KWalletPopup::deleteWallet()
{
emit walletDeleted(_walletName);
Q_EMIT walletDeleted(_walletName);
}
void KWalletPopup::closeWallet()
{
emit walletClosed(_walletName);
Q_EMIT walletClosed(_walletName);
}
void KWalletPopup::changeWalletPassword()
{
emit walletChangePassword(_walletName);
Q_EMIT walletChangePassword(_walletName);
}
void KWalletPopup::createWallet()
{
emit walletCreated();
Q_EMIT walletCreated();
}
void KWalletPopup::disconnectApp()
......
......@@ -177,7 +177,7 @@ void KWMapEditor::erase()
}
}
emit dirty();
Q_EMIT dirty();
}
void KWMapEditor::saveMap()
......@@ -202,12 +202,12 @@ void KWMapEditor::addEntry()
setItem(x, 2, new QTableWidgetItem());
scrollToItem(item(x, 1));
setCurrentCell(x, 1);
emit dirty();
Q_EMIT dirty();
}
void KWMapEditor::emitDirty()
{
emit dirty();
Q_EMIT dirty();
}
void KWMapEditor::contextMenu(const QPoint &pos)
......
......@@ -19,7 +19,7 @@ RevokeAuthButton::RevokeAuthButton(const QString &appName, KWallet::Wallet *wall
void RevokeAuthButton::onClicked()
{
emit appRevoked(_appName);
Q_EMIT appRevoked(_appName);
}
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