NeTrainSim
0.1.1 beta
The Open-Source Network Trains Simulator
Loading...
Searching...
No Matches
disappearinglabel.h
Go to the documentation of this file.
1
13
#ifndef DISAPPEARINGLABEL_H
14
#define DISAPPEARINGLABEL_H
15
16
#include <QLabel>
17
#include <QTimer>
18
23
class
DisappearingLabel
:
public
QLabel
24
{
25
Q_OBJECT
26
27
public
:
32
explicit
DisappearingLabel
(QWidget *parent =
nullptr
);
33
40
void
setTextWithTimeout
(
const
QString &text,
int
timeoutMs);
41
42
private
:
43
QTimer m_timer;
45
private
slots:
49
void
clearText();
50
};
51
52
#endif
// DISAPPEARINGLABEL_H
DisappearingLabel
The DisappearingLabel class is a subclass of QLabel that provides functionality to display text for a...
Definition
disappearinglabel.h:24
DisappearingLabel::setTextWithTimeout
void setTextWithTimeout(const QString &text, int timeoutMs)
Sets the text with a timeout duration.
Definition
disappearinglabel.cpp:11
src
NeTrainSimGUI
gui
disappearinglabel.h
Generated by
1.9.7