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
Plasma
KMenuEdit
Commits
2b56fbd2
Commit
2b56fbd2
authored
Dec 31, 2020
by
Alexander Lohnau
💬
Browse files
Prevent clang-format uglification
parent
e3b82e13
Changes
4
Hide whitespace changes
Inline
Side-by-side
basictab.cpp
View file @
2b56fbd2
...
...
@@ -359,7 +359,8 @@ void BasicTab::setEntryInfo(MenuEntryInfo *entryInfo)
_launchCB
->
setChecked
(
df
->
desktopGroup
().
readEntry
(
"X-KDE-StartupNotify"
,
true
));
}
_onlyShowInKdeCB
->
setChecked
(
df
->
desktopGroup
().
readXdgListEntry
(
"OnlyShowIn"
).
contains
(
QLatin1String
(
"KDE"
)));
// or maybe enable only if it contains nothing but KDE?
// or maybe enable only if it contains nothing but KDE?
_onlyShowInKdeCB
->
setChecked
(
df
->
desktopGroup
().
readXdgListEntry
(
"OnlyShowIn"
).
contains
(
QLatin1String
(
"KDE"
)));
if
(
df
->
desktopGroup
().
hasKey
(
"NoDisplay"
))
{
_hiddenEntryCB
->
setChecked
(
df
->
desktopGroup
().
readEntry
(
"NoDisplay"
,
true
));
...
...
kmenuedit.cpp
View file @
2b56fbd2
...
...
@@ -157,18 +157,14 @@ void KMenuEdit::setupView()
// add padding to splitter
m_splitter
->
setContentsMargins
(
/*left=*/
5
,
/*top=*/
0
,
/*right=*/
5
,
/*bottom=*/
0
);
connect
(
m_tree
,
SIGNAL
(
entrySelected
(
MenuFolderInfo
*
)),
m_basicTab
,
SLOT
(
setFolderInfo
(
MenuFolderInfo
*
)));
connect
(
m_tree
,
SIGNAL
(
entrySelected
(
MenuEntryInfo
*
)),
m_basicTab
,
SLOT
(
setEntryInfo
(
MenuEntryInfo
*
)));
connect
(
m_tree
,
&
TreeView
::
disableAction
,
m_basicTab
,
&
BasicTab
::
slotDisableAction
);
connect
(
m_basicTab
,
SIGNAL
(
changed
(
MenuFolderInfo
*
)),
m_tree
,
SLOT
(
currentDataChanged
(
MenuFolderInfo
*
)));
connect
(
m_basicTab
,
SIGNAL
(
changed
(
MenuEntryInfo
*
)),
m_tree
,
SLOT
(
currentDataChanged
(
MenuEntryInfo
*
)));
// clang-format off
connect
(
m_tree
,
SIGNAL
(
entrySelected
(
MenuFolderInfo
*
)),
m_basicTab
,
SLOT
(
setFolderInfo
(
MenuFolderInfo
*
)));
connect
(
m_tree
,
SIGNAL
(
entrySelected
(
MenuEntryInfo
*
)),
m_basicTab
,
SLOT
(
setEntryInfo
(
MenuEntryInfo
*
)));
connect
(
m_tree
,
&
TreeView
::
disableAction
,
m_basicTab
,
&
BasicTab
::
slotDisableAction
);
connect
(
m_basicTab
,
SIGNAL
(
changed
(
MenuFolderInfo
*
)),
m_tree
,
SLOT
(
currentDataChanged
(
MenuFolderInfo
*
)));
connect
(
m_basicTab
,
SIGNAL
(
changed
(
MenuEntryInfo
*
)),
m_tree
,
SLOT
(
currentDataChanged
(
MenuEntryInfo
*
)));
// clang-format on
connect
(
m_basicTab
,
&
BasicTab
::
findServiceShortcut
,
m_tree
,
&
TreeView
::
findServiceShortcut
);
...
...
menufile.h
View file @
2b56fbd2
...
...
@@ -48,7 +48,7 @@ public:
REMOVE_ENTRY
,
ADD_MENU
,
REMOVE_MENU
,
MOVE_MENU
MOVE_MENU
,
};
struct
ActionAtom
...
...
treeview.h
View file @
2b56fbd2
...
...
@@ -209,7 +209,7 @@ protected:
SortByName
=
0
,
SortByDescription
,
SortAllByName
,
SortAllByDescription
SortAllByDescription
,
};
void
contextMenuEvent
(
QContextMenuEvent
*
event
)
override
;
...
...
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