mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Merge two relevant ifdef blocks
GIT_SILENT
This commit is contained in:
parent
d661bb1a33
commit
397b496470
1 changed files with 4 additions and 7 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue