qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Slots | Public Member Functions | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
NotificationScrollArea Class Referencefinal

#include <notificationscrollarea.h>

Inheritance diagram for NotificationScrollArea:
Inheritance graph
Collaboration diagram for NotificationScrollArea:
Collaboration graph

Public Slots

void trackWidget (GenericChatroomWidget *widget)
 
void updateVisualTracking ()
 Delete notification bar from visible elements on scroll area. More...
 
void updateTracking (GenericChatroomWidget *widget)
 Delete notification bar from visible elements and widget on scroll area. More...
 

Public Member Functions

 NotificationScrollArea (QWidget *parent=nullptr)
 
- Public Member Functions inherited from AdjustingScrollArea
 AdjustingScrollArea (QWidget *parent=nullptr)
 
virtual ~AdjustingScrollArea ()=default
 

Protected Member Functions

void resizeEvent (QResizeEvent *event) final
 
- Protected Member Functions inherited from AdjustingScrollArea
void resizeEvent (QResizeEvent *ev) override
 
QSize sizeHint () const final
 

Private Types

enum  Visibility : uint8_t { Visible, Above, Below }
 

Private Slots

void findNextWidget ()
 
void findPreviousWidget ()
 

Private Member Functions

Visibility widgetVisible (QWidget *widget) const
 
void recalculateTopEdge ()
 
void recalculateBottomEdge ()
 

Private Attributes

QHash< GenericChatroomWidget *, VisibilitytrackedWidgets
 
NotificationEdgeWidgettopEdge = nullptr
 
NotificationEdgeWidgetbottomEdge = nullptr
 
size_t referencesAbove = 0
 
size_t referencesBelow = 0
 

Detailed Description

Definition at line 28 of file notificationscrollarea.h.

Member Enumeration Documentation

◆ Visibility

enum NotificationScrollArea::Visibility : uint8_t
private
Enumerator
Visible 
Above 
Below 

Definition at line 46 of file notificationscrollarea.h.

Constructor & Destructor Documentation

◆ NotificationScrollArea()

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

Definition at line 25 of file notificationscrollarea.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ findNextWidget

void NotificationScrollArea::findNextWidget ( )
privateslot

Definition at line 116 of file notificationscrollarea.cpp.

Here is the caller graph for this function:

◆ findPreviousWidget

void NotificationScrollArea::findPreviousWidget ( )
privateslot

Definition at line 146 of file notificationscrollarea.cpp.

Here is the caller graph for this function:

◆ recalculateBottomEdge()

void NotificationScrollArea::recalculateBottomEdge ( )
private

Definition at line 194 of file notificationscrollarea.cpp.

Here is the caller graph for this function:

◆ recalculateTopEdge()

void NotificationScrollArea::recalculateTopEdge ( )
private

Definition at line 188 of file notificationscrollarea.cpp.

Here is the caller graph for this function:

◆ resizeEvent()

void NotificationScrollArea::resizeEvent ( QResizeEvent *  event)
finalprotected

Definition at line 106 of file notificationscrollarea.cpp.

Here is the call graph for this function:

◆ trackWidget

void NotificationScrollArea::trackWidget ( GenericChatroomWidget widget)
slot

Definition at line 34 of file notificationscrollarea.cpp.

Here is the call graph for this function:

◆ updateTracking

void NotificationScrollArea::updateTracking ( GenericChatroomWidget widget)
slot

Delete notification bar from visible elements and widget on scroll area.

Parameters
widgetChatroom widget to remove from tracked widgets

Definition at line 79 of file notificationscrollarea.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateVisualTracking

void NotificationScrollArea::updateVisualTracking ( )
slot

Delete notification bar from visible elements on scroll area.

Definition at line 70 of file notificationscrollarea.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ widgetVisible()

NotificationScrollArea::Visibility NotificationScrollArea::widgetVisible ( QWidget *  widget) const
private

Definition at line 176 of file notificationscrollarea.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ bottomEdge

NotificationEdgeWidget* NotificationScrollArea::bottomEdge = nullptr
private

Definition at line 58 of file notificationscrollarea.h.

◆ referencesAbove

size_t NotificationScrollArea::referencesAbove = 0
private

Definition at line 59 of file notificationscrollarea.h.

◆ referencesBelow

size_t NotificationScrollArea::referencesBelow = 0
private

Definition at line 60 of file notificationscrollarea.h.

◆ topEdge

NotificationEdgeWidget* NotificationScrollArea::topEdge = nullptr
private

Definition at line 57 of file notificationscrollarea.h.

◆ trackedWidgets

QHash<GenericChatroomWidget*, Visibility> NotificationScrollArea::trackedWidgets
private

Definition at line 56 of file notificationscrollarea.h.


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