LMMS
Loading...
Searching...
No Matches
lmms::gui::SimpleTextFloat Class Reference

#include <SimpleTextFloat.h>

Inheritance diagram for lmms::gui::SimpleTextFloat:

Public Member Functions

 SimpleTextFloat ()
 ~SimpleTextFloat () override=default
void setText (const QString &text)
void showWithDelay (int msecBeforeDisplay, int msecDisplayTime)
void showWithTimeout (int msec)
void moveGlobal (QWidget *w, const QPoint &offset)
void show ()
void hide ()
const QObject * source () const
void setSource (const QObject *source)
 Sets which object is currently controlling this text float.

Private Attributes

QLabel * m_textLabel
QTimer * m_showTimer
QTimer * m_hideTimer
const QObject * m_source = nullptr
 Which object is currently controlling this text float.

Constructor & Destructor Documentation

◆ SimpleTextFloat()

lmms::gui::SimpleTextFloat::SimpleTextFloat ( )

◆ ~SimpleTextFloat()

lmms::gui::SimpleTextFloat::~SimpleTextFloat ( )
overridedefault

Member Function Documentation

◆ hide()

void lmms::gui::SimpleTextFloat::hide ( )

◆ moveGlobal()

void lmms::gui::SimpleTextFloat::moveGlobal ( QWidget * w,
const QPoint & offset )
inline

◆ setSource()

void lmms::gui::SimpleTextFloat::setSource ( const QObject * source)
inline

Sets which object is currently controlling this text float.

◆ setText()

void lmms::gui::SimpleTextFloat::setText ( const QString & text)

◆ show()

void lmms::gui::SimpleTextFloat::show ( )

◆ showWithDelay()

void lmms::gui::SimpleTextFloat::showWithDelay ( int msecBeforeDisplay,
int msecDisplayTime )

◆ showWithTimeout()

void lmms::gui::SimpleTextFloat::showWithTimeout ( int msec)
inline

◆ source()

const QObject * lmms::gui::SimpleTextFloat::source ( ) const
inline
Returns
which object is currently controlling this text float (if known)

Member Data Documentation

◆ m_hideTimer

QTimer* lmms::gui::SimpleTextFloat::m_hideTimer
private

◆ m_showTimer

QTimer* lmms::gui::SimpleTextFloat::m_showTimer
private

◆ m_source

const QObject* lmms::gui::SimpleTextFloat::m_source = nullptr
private

Which object is currently controlling this text float.

◆ m_textLabel

QLabel* lmms::gui::SimpleTextFloat::m_textLabel
private

The documentation for this class was generated from the following files: