File indexing completed on 2024-05-19 04:07:47
0001 /* 0002 SPDX-FileCopyrightText: 2010 Stefan Majewsky <majewsky@gmx.net> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef PALAPELI_CONFIGDIALOG_P_H 0008 #define PALAPELI_CONFIGDIALOG_P_H 0009 0010 #include <KComboBox> 0011 0012 namespace Palapeli 0013 { 0014 class TriggerComboBox : public KComboBox 0015 { 0016 Q_OBJECT 0017 Q_PROPERTY(QString backgroundKey READ backgroundKey WRITE setBackgroundKey NOTIFY backgroundKeyChanged USER true) 0018 public: 0019 explicit TriggerComboBox(QWidget* parent = nullptr); 0020 0021 QString backgroundKey() const; 0022 public Q_SLOTS: 0023 void setBackgroundKey(const QString& backgroundKey); 0024 Q_SIGNALS: 0025 void backgroundKeyChanged(const QString& backgroundKey); 0026 void itemTypeChanged(bool isColor); 0027 private Q_SLOTS: 0028 void handleCurrentIndexChanged(int index); 0029 }; 0030 } 0031 0032 #endif // PALAPELI_CONFIGDIALOG_P_H