Warning, file /office/skrooge/skgbasegui/skgcombobox.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /*************************************************************************** 0002 * SPDX-FileCopyrightText: 2022 S. MANKOWSKI stephane@mankowski.fr 0003 * SPDX-FileCopyrightText: 2022 G. DE BURE support@mankowski.fr 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 ***************************************************************************/ 0006 #ifndef SKGCOMBOBOX_H 0007 #define SKGCOMBOBOX_H 0008 /** @file 0009 * A combo box with more features. 0010 * 0011 * @author Stephane MANKOWSKI / Guillaume DE BURE 0012 */ 0013 0014 #include "skgbasegui_export.h" 0015 #include <kcombobox.h> 0016 /** 0017 * This file is a combo box with more features. 0018 */ 0019 class SKGBASEGUI_EXPORT SKGComboBox : public KComboBox 0020 { 0021 Q_OBJECT 0022 /** 0023 * Text of the combobox 0024 */ 0025 Q_PROPERTY(QString text READ text WRITE setText USER true) // clazy:exclude=qproperty-without-notify 0026 0027 public: 0028 /** 0029 * Default Constructor 0030 * @param iParent the parent 0031 */ 0032 explicit SKGComboBox(QWidget* iParent = nullptr); 0033 0034 /** 0035 * Default Destructor 0036 */ 0037 ~SKGComboBox() override; 0038 0039 /** 0040 * Get the text for the combo 0041 * @return the text 0042 */ 0043 virtual QString text() const; 0044 0045 /** 0046 * Set the text for the combo 0047 * @param iText the text 0048 */ 0049 virtual void setText(const QString& iText); 0050 0051 /** 0052 * Set the Palette for the combobox. 0053 * Reimplemented since the base method does 0054 * not apply the Palette to the underlying 0055 * QlineEdit 0056 * @param iPalette the new palette 0057 */ 0058 virtual void setPalette(const QPalette& iPalette); 0059 }; 0060 0061 #endif // SKGCOMBOBOX_H