swift
src
gui
labelandicon.h
1
// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
4
#ifndef SWIFT_GUI_LABELANDICON_H
5
#define SWIFT_GUI_LABELANDICON_H
6
7
#include <QFrame>
8
#include <QObject>
9
#include <QScopedPointer>
10
#include <QString>
11
12
#include "
gui/swiftguiexport.h
"
13
14
class
QPixmap;
15
class
QWidget;
16
17
namespace
Ui
18
{
19
class
CLabelAndIcon;
20
}
21
22
namespace
swift::gui
23
{
27
class
SWIFT_GUI_EXPORT
CLabelAndIcon
:
public
QFrame
28
{
29
Q_OBJECT
30
31
public
:
33
explicit
CLabelAndIcon
(QWidget *parent =
nullptr
);
34
36
~
CLabelAndIcon
();
37
39
void
set(
const
QPixmap &pixmap,
const
QString &text);
40
42
void
set(
const
QString &text,
const
QPixmap &pixmap);
43
44
private
:
45
QScopedPointer<Ui::CLabelAndIcon> ui;
46
};
47
48
}
// namespace swift::gui
49
50
#endif
// SWIFT_GUI_LABELANDICON_H
swift::gui::CLabelAndIcon
Label and icon frame.
Definition:
labelandicon.h:28
swift::gui
GUI related classes.
Definition:
altitudeedit.cpp:13
swiftguiexport.h
SWIFT_GUI_EXPORT
#define SWIFT_GUI_EXPORT
Export a class or function from the library.
Definition:
swiftguiexport.h:19
Generated on Mon Mar 24 2025 16:42:20 for swift by
1.9.1