umbrello
2.39.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
umbrello
dialogs
widgets
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
class
KComboBox;
14
15
// Qt forwards
16
class
QHBoxLayout;
17
class
QLabel;
18
19
class
ImageTypeWidget
:
public
QWidget
20
{
21
Q_OBJECT
22
public
:
23
explicit
ImageTypeWidget
(
const
QStringList &imageTypes,
const
QString &_default, QWidget *parent =
nullptr
);
24
QString
currentType
();
25
26
private
:
27
QLabel *
m_label
;
28
KComboBox*
m_comboBox
;
29
30
Q_SIGNALS:
31
void
currentIndexChanged
(
const
QString &index);
32
33
private
Q_SLOTS:
34
void
slotCurrentIndexChanged
(
const
QString &index);
35
};
36
37
#endif
// IMAGETYPEWIDGET_H
ImageTypeWidget
Definition
imagetypewidget.h:20
ImageTypeWidget::slotCurrentIndexChanged
void slotCurrentIndexChanged(const QString &index)
Definition
imagetypewidget.cpp:54
ImageTypeWidget::ImageTypeWidget
ImageTypeWidget(const QStringList &imageTypes, const QString &_default, QWidget *parent=nullptr)
Definition
imagetypewidget.cpp:23
ImageTypeWidget::currentType
QString currentType()
Definition
imagetypewidget.cpp:46
ImageTypeWidget::m_label
QLabel * m_label
Definition
imagetypewidget.h:27
ImageTypeWidget::m_comboBox
KComboBox * m_comboBox
The image type selected.
Definition
imagetypewidget.h:28
ImageTypeWidget::currentIndexChanged
void currentIndexChanged(const QString &index)
Generated by
1.10.0