Commit 0995d687 authored by David Edmundson's avatar David Edmundson Committed by Nate Graham
Browse files

Don't show highlight changed entries button in kinfocenter

BUG: 425964
parent 3150b50a
......@@ -50,6 +50,8 @@ class SYSTEMSETTINGSVIEW_EXPORT BaseMode : public QObject
{
Q_OBJECT
Q_PROPERTY(ApplicationMode applicationMode READ applicationMode CONSTANT)
/**
* System Settings main application is allowed priviledged access to handle tooltips
*/
......
......@@ -701,6 +701,7 @@ void SidebarMode::initWidget()
d->quickWidget = new QQuickWidget(d->mainWidget);
d->quickWidget->quickWindow()->setTitle(i18n("Sidebar"));
d->quickWidget->setResizeMode(QQuickWidget::SizeRootObjectToView);
qmlRegisterUncreatableType<SidebarMode>("org.kde.systemsettings", 1, 0, "SystemSettings", QStringLiteral("Not creatable, use the systemsettings attached property"));
d->quickWidget->engine()->rootContext()->setContextProperty(QStringLiteral("systemsettings"), this);
d->package = KPackage::PackageLoader::self()->loadPackage(QStringLiteral("KPackage/GenericQML"));
......
......@@ -20,6 +20,7 @@ import QtQuick 2.5
import QtQuick.Controls 2.5 as QQC2
import QtQuick.Layouts 1.1
import org.kde.kirigami 2.10 as Kirigami
import org.kde.systemsettings 1.0
Kirigami.ScrollablePage {
id: mainColumn
......@@ -188,6 +189,7 @@ Kirigami.ScrollablePage {
color: Kirigami.Theme.backgroundColor
width: mainColumn.width
height: Kirigami.Units.gridUnit * 2
visible: systemsettings.applicationMode == SystemSettings.SystemSettings
QQC2.ToolButton {
anchors {
fill: parent
......
......@@ -21,6 +21,7 @@ import QtQuick.Controls 2.5 as QQC2
import QtQuick.Layouts 1.1
import org.kde.kirigami 2.5 as Kirigami
import org.kde.systemsettings 1.0
Kirigami.ScrollablePage {
id: subCategoryColumn
......@@ -185,7 +186,8 @@ Kirigami.ScrollablePage {
color: Kirigami.Theme.backgroundColor
width: mainColumn.width
height: Kirigami.Units.gridUnit * 2
visible: !applicationWindow().wideScreen
visible: systemsettings.applicationMode == SystemSettings.SystemSettings &&
!applicationWindow().wideScreen
QQC2.ToolButton {
anchors {
fill: parent
......
Markdown is supported
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