File indexing completed on 2022-09-27 12:24:12

0001 /*
0002     SPDX-FileCopyrightText: 2011 Rebetez Etienne <etienne.rebetez@oberwallis.ch>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KALZIUMUNITCOMBOBOX_H
0008 #define KALZIUMUNITCOMBOBOX_H
0009 
0010 #include <QComboBox>
0011 
0012 class KalziumUnitCombobox : public QComboBox
0013 {
0014 public:
0015     explicit KalziumUnitCombobox(QWidget *parent = nullptr);
0016     explicit KalziumUnitCombobox(const QList<int> &unitList, QWidget *parent = nullptr);
0017 
0018     void setUnitList(const QList<int> &unitList);
0019     int getCurrentUnitId() const;
0020     void setIndexWithUnitId(int unit);
0021 };
0022 
0023 #endif // KALZIUMUNITCOMBOBOX_H