SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Private Attributes | List of all members
SDRangelSplash Class Reference

#include <sdrangelsplash.h>

Inherits QSplashScreen.

Public Member Functions

 SDRangelSplash (const QPixmap &pixmap)
 
 ~SDRangelSplash ()
 
virtual void drawContents (QPainter *painter)
 
void showStatusMessage (const QString &message, const QColor &color=Qt::black)
 
void setMessageRect (QRect rect, int alignment=Qt::AlignLeft)
 

Private Attributes

QString message
 
int alignement
 
QColor color
 
QRect rect
 

Detailed Description

Definition at line 26 of file sdrangelsplash.h.

Constructor & Destructor Documentation

◆ SDRangelSplash()

SDRangelSplash::SDRangelSplash ( const QPixmap &  pixmap)

Definition at line 22 of file sdrangelsplash.cpp.

23 {
24  QSplashScreen::setPixmap(pixmap);
25 };

◆ ~SDRangelSplash()

SDRangelSplash::~SDRangelSplash ( )

Definition at line 27 of file sdrangelsplash.cpp.

28 {
29 };

Member Function Documentation

◆ drawContents()

void SDRangelSplash::drawContents ( QPainter *  painter)
virtual

Definition at line 31 of file sdrangelsplash.cpp.

References alignement, color, message, and rect.

32 {
33  QPixmap textPix = QSplashScreen::pixmap();
34  painter->setPen(this->color);
35  painter->drawText(this->rect, this->alignement, this->message);
36 };

◆ setMessageRect()

void SDRangelSplash::setMessageRect ( QRect  rect,
int  alignment = Qt::AlignLeft 
)

Definition at line 45 of file sdrangelsplash.cpp.

References alignement, and rect.

Referenced by MainWindow::MainWindow().

46 {
47  this->rect = rect;
48  this->alignement = alignement;
49 }
+ Here is the caller graph for this function:

◆ showStatusMessage()

void SDRangelSplash::showStatusMessage ( const QString &  message,
const QColor &  color = Qt::black 
)

Definition at line 38 of file sdrangelsplash.cpp.

References alignement, color, and message.

Referenced by MainWindow::MainWindow().

39 {
40  this->message = message;
41  this->color = color;
42  this->showMessage(this->message, this->alignement, this->color);
43 };
+ Here is the caller graph for this function:

Member Data Documentation

◆ alignement

int SDRangelSplash::alignement
private

Definition at line 36 of file sdrangelsplash.h.

Referenced by drawContents(), setMessageRect(), and showStatusMessage().

◆ color

QColor SDRangelSplash::color
private

Definition at line 37 of file sdrangelsplash.h.

Referenced by drawContents(), and showStatusMessage().

◆ message

QString SDRangelSplash::message
private

Definition at line 35 of file sdrangelsplash.h.

Referenced by drawContents(), and showStatusMessage().

◆ rect

QRect SDRangelSplash::rect
private

Definition at line 38 of file sdrangelsplash.h.

Referenced by drawContents(), and setMessageRect().


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