CCIMXDesktop
 
Loading...
Searching...
No Matches
LocalWeatherCard Class Reference

The LocalWeatherCard class is the card widgets, press it to trigger the light service(current displaying by toast depatching) More...

#include <localweathercard.h>

Inheritance diagram for LocalWeatherCard:
AppCardWidget

Public Member Functions

 LocalWeatherCard ()=delete
 Construct a new Local Weather Card object default disabled.
 
 Q_DISABLE_COPY (LocalWeatherCard)
 disable copy
 
 LocalWeatherCard (DesktopToast *toast, QWidget *parent=nullptr)
 Construct a new Local Weather Card object.
 
void invoke_preLaunch_work () override
 concrete implementation of the AppCardWidget
 
void operate_comment_label () override
 operate_comment_label operating self labels
 
- Public Member Functions inherited from AppCardWidget
 Q_DISABLE_COPY (AppCardWidget)
 Disable copy constructor and assignment operator.
 
 AppCardWidget ()=delete
 Default constructor deleted to force usage of parameterized constructor.
 
 AppCardWidget (DesktopToast *toast, QWidget *parent=nullptr)
 Constructs an AppCardWidget.
 
 ~AppCardWidget ()
 Virtual destructor.
 
virtual void setCurrentIcon (const QPixmap &icons)
 Set the current icon for the app card.
 
void invoke_textlabel_stylefresh ()
 invoke_textlabel_stylefresh
 
bool eventFilter (QObject *watched, QEvent *event) override
 Event filter to handle user interaction events.
 

Protected Member Functions

void postAppCardWidget () override
 postAppCardWidget is the concrete implementation of the AppCardWidget
 
void setupSelfTextLabelStyle (QLabel *selfTextLabel) override
 textlabel style reset
 
- Protected Member Functions inherited from AppCardWidget
virtual void setHelperFunction (const QString &what)
 setHelperFunction: plainly set the text for shown
 

Protected Attributes

LocalWeatherLightFetcherlocalFetcher { nullptr }
 fetcher instance
 
- Protected Attributes inherited from AppCardWidget
DesktopToastbinding_toast
 Pointer to the toast widget used for posting messages.
 
Ui::AppCardWidget * ui
 UI object generated from the Qt Designer form.
 

Detailed Description

The LocalWeatherCard class is the card widgets, press it to trigger the light service(current displaying by toast depatching)

Member Function Documentation

◆ invoke_preLaunch_work()

void LocalWeatherCard::invoke_preLaunch_work ( )
overridevirtual

concrete implementation of the AppCardWidget

Implements AppCardWidget.

◆ operate_comment_label()

void LocalWeatherCard::operate_comment_label ( )
overridevirtual

operate_comment_label operating self labels

Implements AppCardWidget.

◆ postAppCardWidget()

void LocalWeatherCard::postAppCardWidget ( )
overrideprotectedvirtual

postAppCardWidget is the concrete implementation of the AppCardWidget

Note
this is the main function to post the message to the toast

Implements AppCardWidget.

◆ setupSelfTextLabelStyle()

void LocalWeatherCard::setupSelfTextLabelStyle ( QLabel *  selfTextLabel)
overrideprotectedvirtual

textlabel style reset

Implements AppCardWidget.


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