umbrello: umbrello/dialogs/widgets/imagetypewidget.h Source File

umbrello 2.32.1 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

imagetypewidget.h
Go to the documentation of this file.
1 /*
2 SPDX-FileCopyrightText: 2015-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
5 */
6
7 #ifndef IMAGETYPEWIDGET_H
8 #define IMAGETYPEWIDGET_H
9
10 #include <QWidget>
11
12 // KDE forwards
13 #if QT_VERSION >= 0x050000
14 class KComboBox;
15 #else
16 class KFileFilterCombo;
17 #endif
18
19 // Qt forwards
20 class QHBoxLayout;
21 class QLabel;
22
23 class ImageTypeWidget : public QWidget
24 {
25 Q_OBJECT
26 public:
27 explicit ImageTypeWidget(const QStringList &imageTypes, const QString &_default, QWidget *parent = 0);
28 QString currentType();
29
30 private:
31 QLabel *m_label;
32 #if QT_VERSION >= 0x050000
33 KComboBox* m_comboBox;
34 #else
35 KFileFilterCombo* m_comboBox;
36 #endif
37
38 signals:
39 void currentIndexChanged(const QString &index);
40
41 private slots:
42 void slotCurrentIndexChanged(const QString &index);
43 };
44
45 #endif // IMAGETYPEWIDGET_H
ImageTypeWidget
Definition: imagetypewidget.h:24
ImageTypeWidget::slotCurrentIndexChanged
void slotCurrentIndexChanged(const QString &index)
Definition: imagetypewidget.cpp:66
ImageTypeWidget::m_comboBox
KFileFilterCombo * m_comboBox
The image type selected.
Definition: imagetypewidget.h:35
ImageTypeWidget::currentType
QString currentType()
Definition: imagetypewidget.cpp:54
ImageTypeWidget::m_label
QLabel * m_label
Definition: imagetypewidget.h:31
ImageTypeWidget::ImageTypeWidget
ImageTypeWidget(const QStringList &imageTypes, const QString &_default, QWidget *parent=0)
Definition: imagetypewidget.cpp:26
ImageTypeWidget::currentIndexChanged
void currentIndexChanged(const QString &index)