umbrello
2.32.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
umbrello
dialogs
widgets
imagetypewidget.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2015-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
3
4
This program is free software; you can redistribute it and/or
5
modify it under the terms of the GNU General Public License as
6
published by the Free Software Foundation; either version 2 of
7
the License or (at your option) version 3 or any later version
8
accepted by the membership of KDE e.V. (or its successor approved
9
by the membership of KDE e.V.), which shall act as a proxy
10
defined in Section 14 of version 3 of the license.
11
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef IMAGETYPEWIDGET_H
22
#define IMAGETYPEWIDGET_H
23
24
#include <QWidget>
25
26
// KDE forwards
27
#if QT_VERSION >= 0x050000
28
class
KComboBox;
29
#else
30
class
KFileFilterCombo;
31
#endif
32
33
// Qt forwards
34
class
QHBoxLayout;
35
class
QLabel;
36
37
class
ImageTypeWidget
:
public
QWidget
38
{
39
Q_OBJECT
40
public
:
41
explicit
ImageTypeWidget
(
const
QStringList &imageTypes,
const
QString &_default, QWidget *parent = 0);
42
QString
currentType
();
43
44
private
:
45
QLabel *
m_label
;
46
#if QT_VERSION >= 0x050000
47
KComboBox*
m_comboBox
;
48
#else
49
KFileFilterCombo*
m_comboBox
;
50
#endif
51
52
signals:
53
void
currentIndexChanged
(
const
QString &index);
54
55
private
slots:
56
void
slotCurrentIndexChanged
(
const
QString &index);
57
};
58
59
#endif
// IMAGETYPEWIDGET_H
ImageTypeWidget
Definition:
imagetypewidget.h:38
ImageTypeWidget::slotCurrentIndexChanged
void slotCurrentIndexChanged(const QString &index)
Definition:
imagetypewidget.cpp:80
ImageTypeWidget::m_comboBox
KFileFilterCombo * m_comboBox
The image type selected.
Definition:
imagetypewidget.h:49
ImageTypeWidget::currentType
QString currentType()
Definition:
imagetypewidget.cpp:68
ImageTypeWidget::m_label
QLabel * m_label
Definition:
imagetypewidget.h:45
ImageTypeWidget::ImageTypeWidget
ImageTypeWidget(const QStringList &imageTypes, const QString &_default, QWidget *parent=0)
Definition:
imagetypewidget.cpp:40
ImageTypeWidget::currentIndexChanged
void currentIndexChanged(const QString &index)
Definition:
moc_imagetypewidget.cpp:138
Generated by
1.9.1