File indexing completed on 2025-01-26 05:24:20
0001 /* 0002 This file is part of the Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2009 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef KASTEN_TOGGLEBUTTON_P_HPP 0010 #define KASTEN_TOGGLEBUTTON_P_HPP 0011 0012 // Qt 0013 #include <QIcon> 0014 #include <QString> 0015 0016 namespace Kasten { 0017 0018 class ToggleButton; 0019 0020 class ToggleButtonPrivate 0021 { 0022 public: 0023 explicit ToggleButtonPrivate(ToggleButton* parent); 0024 ToggleButtonPrivate(const ToggleButtonPrivate&) = delete; 0025 0026 ~ToggleButtonPrivate() = default; 0027 0028 ToggleButtonPrivate& operator=(const ToggleButtonPrivate&) = delete; 0029 0030 public: 0031 void setOtherState(const QIcon& icon, const QString& text, const QString& toolTip); 0032 0033 public: 0034 void onToggled(); 0035 0036 private: 0037 QIcon mOtherIcon; 0038 QString mOtherText; 0039 QString mOtherToolTip; 0040 0041 ToggleButton* const p; 0042 }; 0043 0044 } 0045 0046 #endif