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)
29 QVariant currentData()
30 {
31 return itemData(currentIndex());
32 }
33#endif
34};
35
36#endif
QComboBox(QWidget *parent)
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
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Thu Jan 23 2025 18:59:03 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.