File indexing completed on 2024-05-12 17:07:10
0001 /* 0002 "Desktop Icons Options" Tab for KDesktop configuration 0003 0004 SPDX-FileCopyrightText: 1996 Martin R. Jones 0005 SPDX-FileCopyrightText: 1998, 2007 David Faure <faure@kde.org> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include <KCModule> 0013 #include <memory> 0014 0015 namespace Ui 0016 { 0017 class DesktopPathsView; 0018 } 0019 0020 class KUrlRequester; 0021 class DesktopPathsSettings; 0022 class DesktopPathsData; 0023 0024 // The "Path" Tab contains : 0025 // The paths for Desktop and Documents 0026 0027 class DesktopPathConfig : public KCModule 0028 { 0029 Q_OBJECT 0030 public: 0031 DesktopPathConfig(QWidget *parent, const QVariantList &args); 0032 ~DesktopPathConfig() override; 0033 0034 private Q_SLOTS: 0035 void updateDefaultIndicator(); 0036 0037 private: 0038 void setDefaultIndicatorVisible(KUrlRequester *widget, const QVariant &defaultValue); 0039 0040 std::unique_ptr<Ui::DesktopPathsView> m_ui; 0041 DesktopPathsData *const m_data; 0042 };