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
Kate
Commits
d12c9306
Commit
d12c9306
authored
Feb 27, 2021
by
Waqar Ahmed
Browse files
Remove unnecessary ctors/dtors
parent
d8107866
Changes
2
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojecttreeviewcontextmenu.cpp
View file @
d12c9306
...
...
@@ -7,6 +7,7 @@
#include "kateprojecttreeviewcontextmenu.h"
#include "git/gitutils.h"
#include "kateprojectviewtree.h"
#include <KApplicationTrader>
#include <KIO/ApplicationLauncherJob>
...
...
@@ -26,17 +27,7 @@
#include <QMimeType>
#include <QStandardPaths>
#include "kateprojectviewtree.h"
KateProjectTreeViewContextMenu
::
KateProjectTreeViewContextMenu
()
{
}
KateProjectTreeViewContextMenu
::~
KateProjectTreeViewContextMenu
()
{
}
void
KateProjectTreeViewContextMenu
::
exec
(
const
QString
&
filename
,
const
QModelIndex
&
index
,
const
QPoint
&
pos
,
QWidget
*
parent
)
void
KateProjectTreeViewContextMenu
::
exec
(
const
QString
&
filename
,
const
QModelIndex
&
index
,
const
QPoint
&
pos
,
KateProjectViewTree
*
parent
)
{
/**
* Create context menu
...
...
@@ -122,7 +113,7 @@ void KateProjectTreeViewContextMenu::exec(const QString &filename, const QModelI
dlg
->
setAttribute
(
Qt
::
WA_DeleteOnClose
);
dlg
->
show
();
}
else
if
(
action
==
rename
)
{
static_cast
<
KateProjectViewTree
*>
(
parent
)
->
edit
(
index
);
parent
->
edit
(
index
);
}
else
if
(
action
==
fileHistory
)
{
showFileHistory
(
index
.
data
(
Qt
::
UserRole
).
toString
());
}
else
{
...
...
addons/project/kateprojecttreeviewcontextmenu.h
View file @
d12c9306
...
...
@@ -14,6 +14,7 @@
class
QWidget
;
class
QModelIndex
;
class
KateProjectViewTree
;
class
KateProjectTreeViewContextMenu
:
public
QObject
{
...
...
@@ -24,18 +25,13 @@ public:
* @param pluginView our plugin view
* @param project project this view is for
*/
KateProjectTreeViewContextMenu
();
/**
* deconstruct project
*/
~
KateProjectTreeViewContextMenu
();
KateProjectTreeViewContextMenu
()
=
default
;
/**
* our project.
* @return project
*/
void
exec
(
const
QString
&
filename
,
const
QModelIndex
&
index
,
const
QPoint
&
pos
,
QWidget
*
parent
);
void
exec
(
const
QString
&
filename
,
const
QModelIndex
&
index
,
const
QPoint
&
pos
,
KateProjectViewTree
*
parent
);
/**
* emits on clicking Menu->Show File History
...
...
Write
Preview
Supports
Markdown
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