Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | List of all members
LearnCardWidget Class Reference

A card widget displaying learning resources, links, and action buttons. More...

#include <learn_card_widget.h>

Inheritance diagram for LearnCardWidget:

Public Member Functions

 LearnCardWidget (QWidget *parent=nullptr)
 Construct a LearnCardWidget.
 
 ~LearnCardWidget ()
 Destroy the widget and its UI form.
 
void setLinksCollapsed (bool collapsed)
 Collapse or expand the links section.
 
bool isLinksCollapsed () const
 Return whether the links section is currently collapsed.
 

Protected Member Functions

bool event (QEvent *event) override
 Handle widget events, including palette and style changes.
 

Detailed Description

A card widget displaying learning resources, links, and action buttons.

Constructor & Destructor Documentation

◆ LearnCardWidget()

LearnCardWidget::LearnCardWidget ( QWidget *  parent = nullptr)
explicit

Construct a LearnCardWidget.

Parameters
parentThe parent widget; may be nullptr.

Member Function Documentation

◆ event()

bool LearnCardWidget::event ( QEvent *  event)
overrideprotected

Handle widget events, including palette and style changes.

Parameters
eventThe event to handle.
Returns
true if the event was consumed; false to allow further processing by the base class.

◆ isLinksCollapsed()

bool LearnCardWidget::isLinksCollapsed ( ) const

Return whether the links section is currently collapsed.

Returns
true if the link list is hidden; false if it is visible.

◆ setLinksCollapsed()

void LearnCardWidget::setLinksCollapsed ( bool  collapsed)

Collapse or expand the links section.

Parameters
collapsedtrue to hide the links list; false to show it.

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