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
Utilities
Kate
Commits
92d59de1
Commit
92d59de1
authored
Sep 08, 2022
by
Waqar Ahmed
Browse files
Add an icon for DiffWidget
To be consistent with other tabs
parent
f832c443
Pipeline
#229241
passed with stage
in 12 minutes and 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/katemainwindow.cpp
View file @
92d59de1
...
...
@@ -1332,6 +1332,8 @@ void KateMainWindow::showDiff(const QByteArray &wordDiff, const DiffParams ¶
else
w
->
setWindowTitle
(
i18n
(
"Diff %1..%2"
,
Utils
::
fileNameFromPath
(
params
.
srcFile
),
Utils
::
fileNameFromPath
(
params
.
destFile
)));
}
w
->
setWindowIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"text-x-patch"
)));
addWidget
(
w
);
w
->
openDiff
(
wordDiff
);
}
...
...
apps/lib/katetabbar.cpp
View file @
92d59de1
...
...
@@ -482,6 +482,7 @@ QVector<KTextEditor::Document *> KateTabBar::documentList() const
void
KateTabBar
::
setCurrentWidget
(
QWidget
*
widget
)
{
int
idx
=
insertTab
(
-
1
,
widget
->
windowTitle
());
setTabIcon
(
idx
,
widget
->
windowIcon
());
setTabData
(
idx
,
QVariant
::
fromValue
(
widget
));
setCurrentIndex
(
idx
);
}
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