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

This is a widget with dialog buttons to accept/reject a call. More...

#include <callconfirmwidget.h>

Inheritance diagram for CallConfirmWidget:
Inheritance graph
Collaboration diagram for CallConfirmWidget:
Collaboration graph

Public Slots

void reposition ()
 Recalculate our positions to track the anchor. More...
 

Signals

void accepted ()
 
void rejected ()
 

Public Member Functions

 CallConfirmWidget (const QWidget *anchor)
 

Protected Member Functions

void paintEvent (QPaintEvent *event) final
 
void showEvent (QShowEvent *event) final
 
void hideEvent (QHideEvent *event) final
 
bool eventFilter (QObject *, QEvent *event) final
 

Private Attributes

const QWidget * anchor
 The widget we're going to be tracking. More...
 
QRect mainRect
 
QPolygon spikePoly
 
QBrush brush
 
const int rectW
 
const int rectH
 
const int spikeW
 
const int spikeH
 
const int roundedFactor
 By how much are the corners of the main rect rounded. More...
 
const qreal rectRatio
 Used to correct the rounding factors on non-square rects. More...
 

Detailed Description

This is a widget with dialog buttons to accept/reject a call.

It tracks the position of another widget called the anchor and looks like a bubble at the bottom of that widget.

Definition at line 31 of file callconfirmwidget.h.

Constructor & Destructor Documentation

◆ CallConfirmWidget()

CallConfirmWidget::CallConfirmWidget ( const QWidget *  anchor)
explicit

Definition at line 53 of file callconfirmwidget.cpp.

Member Function Documentation

◆ accepted

void CallConfirmWidget::accepted ( )
signal
Here is the caller graph for this function:

◆ eventFilter()

bool CallConfirmWidget::eventFilter ( QObject *  ,
QEvent *  event 
)
finalprotected

Definition at line 174 of file callconfirmwidget.cpp.

Here is the call graph for this function:

◆ hideEvent()

void CallConfirmWidget::hideEvent ( QHideEvent *  event)
finalprotected

Definition at line 166 of file callconfirmwidget.cpp.

◆ paintEvent()

void CallConfirmWidget::paintEvent ( QPaintEvent *  event)
finalprotected

Definition at line 144 of file callconfirmwidget.cpp.

◆ rejected

void CallConfirmWidget::rejected ( )
signal
Here is the caller graph for this function:

◆ reposition

void CallConfirmWidget::reposition ( )
slot

Recalculate our positions to track the anchor.

Definition at line 116 of file callconfirmwidget.cpp.

Here is the caller graph for this function:

◆ showEvent()

void CallConfirmWidget::showEvent ( QShowEvent *  event)
finalprotected

Definition at line 155 of file callconfirmwidget.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ anchor

const QWidget * CallConfirmWidget::anchor
private

The widget we're going to be tracking.

Definition at line 51 of file callconfirmwidget.h.

◆ brush

QBrush CallConfirmWidget::brush
private

Definition at line 55 of file callconfirmwidget.h.

◆ mainRect

QRect CallConfirmWidget::mainRect
private

Definition at line 53 of file callconfirmwidget.h.

◆ rectH

const int CallConfirmWidget::rectH
private

Definition at line 57 of file callconfirmwidget.h.

◆ rectRatio

const qreal CallConfirmWidget::rectRatio
private

Used to correct the rounding factors on non-square rects.

Definition at line 60 of file callconfirmwidget.h.

◆ rectW

const int CallConfirmWidget::rectW
private

Definition at line 57 of file callconfirmwidget.h.

◆ roundedFactor

const int CallConfirmWidget::roundedFactor
private

By how much are the corners of the main rect rounded.

Definition at line 59 of file callconfirmwidget.h.

◆ spikeH

const int CallConfirmWidget::spikeH
private

Definition at line 58 of file callconfirmwidget.h.

◆ spikePoly

QPolygon CallConfirmWidget::spikePoly
private

Definition at line 54 of file callconfirmwidget.h.

◆ spikeW

const int CallConfirmWidget::spikeW
private

Definition at line 58 of file callconfirmwidget.h.


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