Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
TipsOfTheDay Class Reference

#include <tip_of_the_day.h>

Inheritance diagram for TipsOfTheDay:
[legend]
Collaboration diagram for TipsOfTheDay:
[legend]

Public Types

enum  Columns { TitleColumn , ContentColumn , ImagePathColumn , DateColumn }

Public Member Functions

 TipsOfTheDay (QString xmlPath, QObject *parent=nullptr)
 ~TipsOfTheDay () override
TipOfTheDay getTip (int tipId)
int rowCount (const QModelIndex &parent=QModelIndex()) const override
QVariant data (const QModelIndex &index, int role) const override

Private Attributes

QList< TipOfTheDay > * tipList

Member Enumeration Documentation

◆ Columns

Enumerator
TitleColumn 
ContentColumn 
ImagePathColumn 
DateColumn 

Constructor & Destructor Documentation

◆ TipsOfTheDay()

TipsOfTheDay::TipsOfTheDay ( QString xmlPath,
QObject * parent = nullptr )
explicit

◆ ~TipsOfTheDay()

TipsOfTheDay::~TipsOfTheDay ( )
override

Member Function Documentation

◆ data()

QVariant TipsOfTheDay::data ( const QModelIndex & index,
int role ) const
nodiscardoverride
Here is the call graph for this function:

◆ getTip()

TipOfTheDay TipsOfTheDay::getTip ( int tipId)

◆ rowCount()

int TipsOfTheDay::rowCount ( const QModelIndex & parent = QModelIndex()) const
nodiscardoverride

Member Data Documentation

◆ tipList

QList<TipOfTheDay>* TipsOfTheDay::tipList
private

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