Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KWalletManager
Commits
bc9c5aca
Commit
bc9c5aca
authored
May 17, 2021
by
Laurent Montel
😁
Browse files
Use Q_EMIT
parent
9b108afb
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/konfigurator/konfigurator.cpp
View file @
bc9c5aca
...
...
@@ -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
);
}
}
...
...
src/manager/disconnectappbutton.cpp
View file @
bc9c5aca
...
...
@@ -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
);
}
}
...
...
src/manager/kwalleteditor.cpp
View file @
bc9c5aca
...
...
@@ -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
)
...
...
src/manager/kwalletpopup.cpp
View file @
bc9c5aca
...
...
@@ -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
()
...
...
src/manager/kwmapeditor.cpp
View file @
bc9c5aca
...
...
@@ -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
)
...
...
src/manager/revokeauthbutton.cpp
View file @
bc9c5aca
...
...
@@ -19,7 +19,7 @@ RevokeAuthButton::RevokeAuthButton(const QString &appName, KWallet::Wallet *wall
void
RevokeAuthButton
::
onClicked
()
{
emit
appRevoked
(
_appName
);
Q_EMIT
appRevoked
(
_appName
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment