Alkimia API

alkcombobox.h
1/*
2 SPDX-FileCopyrightText: 2020 Ralf Habacker ralf.habacker @freenet.de
3
4 This file is part of libalkimia.
5
6 SPDX-License-Identifier: GPL-2.0-or-later
7*/
8
9#ifndef ALKCOMBOBOX_H
10#define ALKCOMBOBOX_H
11
12#include <QtGlobal>
13
14#include <QComboBox>
15class AlkComboBox : public QComboBox
16{
17public:
18 AlkComboBox(QWidget *parent)
20 {
21 }
22
23 template<class T> void setData(T value)
24 {
26 }
27
28#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
30 {
31 return itemData(currentIndex());
32 }
33#endif
34};
35
36#endif
void setCurrentIndex(int index)
int findData(const QVariant &data, int role, Qt::MatchFlags flags) const const
QVariant itemData(int index, int role) const const
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.