Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Konversation
Commits
9936b310
Commit
9936b310
authored
Aug 28, 2022
by
Friedrich W. H. Kossebau
Browse files
Add icons to some more dialog buttons
parent
cc461ba3
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/connectionmanager.cpp
View file @
9936b310
...
...
@@ -590,7 +590,7 @@ bool ConnectionManager::validateIdentity(IdentityPtr identity, bool interactive)
mainWindow
,
i18n
(
"<qt>Your identity
\"
%1
\"
is not set up correctly:<br/>%2</qt>"
,
identity
->
getName
(),
errors
),
i18n
(
"Identity Settings"
),
KGuiItem
(
i18n
(
"Edit Identity..."
)),
KGuiItem
(
i18n
(
"Edit Identity..."
)
,
QStringLiteral
(
"document-edit"
)
),
KStandardGuiItem
::
cancel
());
if
(
result
==
KMessageBox
::
Continue
)
...
...
src/dcc/resumedialog.cpp
View file @
9936b310
...
...
@@ -157,7 +157,7 @@ namespace Konversation
{
if
(
m_item
->
getFileURL
()
==
m_urlreqFileURL
->
url
())
{
m_buttonBox
->
button
(
QDialogButtonBox
::
Ok
)
->
setText
(
KStandardGuiItem
::
overwrite
()
.
text
()
);
KGuiItem
::
assign
(
m_buttonBox
->
button
(
QDialogButtonBox
::
Ok
)
,
KStandardGuiItem
::
overwrite
());
m_buttonBox
->
button
(
QDialogButtonBox
::
Ok
)
->
setEnabled
(
m_enabledActions
&
RA_Overwrite
);
if
(
m_buttonBox
->
standardButtons
()
&
QDialogButtonBox
::
Retry
)
...
...
@@ -168,6 +168,7 @@ namespace Konversation
else
{
m_buttonBox
->
button
(
QDialogButtonBox
::
Ok
)
->
setText
(
i18n
(
"R&ename"
));
m_buttonBox
->
button
(
QDialogButtonBox
::
Ok
)
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"edit-rename"
)));
m_buttonBox
->
button
(
QDialogButtonBox
::
Ok
)
->
setEnabled
(
m_enabledActions
&
RA_Rename
);
if
(
m_buttonBox
->
standardButtons
()
&
QDialogButtonBox
::
Retry
)
...
...
src/viewer/ircinput.cpp
View file @
9936b310
...
...
@@ -481,8 +481,8 @@ bool IRCInput::checkPaste(QString& text)
"the chat. This can cause connection resets or flood kills. "
"Do you really want to continue?</qt>"
,
bytesString
,
linesString
),
i18n
(
"Large Paste Warning"
),
KGuiItem
(
i18n
(
"Paste"
)),
KGuiItem
(
i18n
(
"&Edit..."
)),
KGuiItem
(
i18n
(
"Paste"
)
,
QStringLiteral
(
"edit-paste"
)
),
KGuiItem
(
i18n
(
"&Edit..."
)
,
QStringLiteral
(
"document-edit"
)
),
KStandardGuiItem
::
cancel
(),
QStringLiteral
(
"LargePaste"
),
KMessageBox
::
Dangerous
);
...
...
src/viewer/statuspanel.cpp
View file @
9936b310
...
...
@@ -234,7 +234,7 @@ bool StatusPanel::closeYourself(bool confirm)
this
,
i18n
(
"Do you want to disconnect from '%1'?
\n\n
All associated tabs will be closed as well."
,
m_server
->
getServerName
()),
i18n
(
"Disconnect From Server"
),
KGuiItem
(
i18n
(
"Disconnect"
)),
KGuiItem
(
i18n
(
"Disconnect"
)
,
QStringLiteral
(
"network-disconnect"
)
),
KStandardGuiItem
::
cancel
(),
QStringLiteral
(
"QuitServerTab"
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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