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
83c4620d
Commit
83c4620d
authored
Sep 01, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Sep 03, 2022
Browse files
Use DiffWidget for file history
parent
07ee5372
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectview.cpp
View file @
83c4620d
...
...
@@ -156,8 +156,9 @@ void KateProjectView::showFileGitHistory(const QString &file)
auto
fhs
=
new
FileHistoryWidget
(
dotGitPath
.
value
(),
file
);
connect
(
fhs
,
&
FileHistoryWidget
::
backClicked
,
this
,
&
KateProjectView
::
setTreeViewAsCurrent
);
connect
(
fhs
,
&
FileHistoryWidget
::
commitClicked
,
this
,
[
this
](
const
QByteArray
&
diff
)
{
m_pluginView
->
showDiffInFixedView
(
diff
);
connect
(
fhs
,
&
FileHistoryWidget
::
commitClicked
,
this
,
[
this
,
file
](
const
QByteArray
&
diff
)
{
auto
mw
=
m_pluginView
->
mainWindow
()
->
window
();
QMetaObject
::
invokeMethod
(
mw
,
"showDiff"
,
Q_ARG
(
QByteArray
,
diff
),
Q_ARG
(
QString
,
file
),
Q_ARG
(
QString
,
{}));
});
connect
(
fhs
,
&
FileHistoryWidget
::
errorMessage
,
m_pluginView
,
[
this
](
const
QString
&
s
,
bool
warn
)
{
QVariantMap
genericMessage
;
...
...
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