Merge two relevant ifdef blocks

GIT_SILENT
This commit is contained in:
Ahmad Samir 2022-05-06 17:26:15 +02:00
parent d661bb1a33
commit 397b496470

View file

@ -84,6 +84,10 @@ ContextMenuSettingsPage::ContextMenuSettingsPage(QWidget* parent,
m_listView->setVerticalScrollMode(QListView::ScrollPerPixel); m_listView->setVerticalScrollMode(QListView::ScrollPerPixel);
connect(m_listView, &QListView::clicked, this, &ContextMenuSettingsPage::changed); connect(m_listView, &QListView::clicked, this, &ContextMenuSettingsPage::changed);
topLayout->addWidget(label);
topLayout->addWidget(m_searchLineEdit);
topLayout->addWidget(m_listView);
#ifndef Q_OS_WIN #ifndef Q_OS_WIN
auto *downloadButton = new KNS3::Button(i18nc("@action:button", "Download New Services..."), auto *downloadButton = new KNS3::Button(i18nc("@action:button", "Download New Services..."),
QStringLiteral("servicemenu.knsrc"), QStringLiteral("servicemenu.knsrc"),
@ -94,13 +98,6 @@ ContextMenuSettingsPage::ContextMenuSettingsPage(QWidget* parent,
loadServices(); loadServices();
} }
}); });
#endif
topLayout->addWidget(label);
topLayout->addWidget(m_searchLineEdit);
topLayout->addWidget(m_listView);
#ifndef Q_OS_WIN
topLayout->addWidget(downloadButton); topLayout->addWidget(downloadButton);
#endif #endif