3#include <NDEVR/QCustomStackedWidget.h>
4#include <NDEVR/RandomMessageGenerator.h>
33 bool event(QEvent* event)
override;
38 QLabel*
label()
const {
return m_label; }
Stores a collection of translated messages and provides random selection from them.
void setMessageGenerator(const RandomMessageGenerator &generator)
Replaces the message generator used to supply random messages.
QLabel * label() const
Returns the label widget used to display the current message.
void setMessageDuration(TimeSpan span)
Sets the duration each message is displayed before cycling to the next.
void showNewMessageSlot()
Slot that selects and displays a new random message.
RandomMessageView(const RandomMessageGenerator &generator, QWidget *parent=nullptr)
Constructs a random message view using the given generator.
Stores a time span, or difference between two times, with an optional start time.
The primary namespace for the NDEVR SDK.