Commit 2b56fbd2 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Prevent clang-format uglification

parent e3b82e13
......@@ -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));
......
......@@ -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);
......
......@@ -48,7 +48,7 @@ public:
REMOVE_ENTRY,
ADD_MENU,
REMOVE_MENU,
MOVE_MENU
MOVE_MENU,
};
struct ActionAtom
......
......@@ -209,7 +209,7 @@ protected:
SortByName = 0,
SortByDescription,
SortAllByName,
SortAllByDescription
SortAllByDescription,
};
void contextMenuEvent(QContextMenuEvent *event) override;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment