ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
Public Types | Signals | Public Member Functions | Protected Member Functions | List of all members
DialogPreview Class Reference

#include <DialogPreview.h>

Inheritance diagram for DialogPreview:
Inheritance graph
[legend]
Collaboration diagram for DialogPreview:
Collaboration graph
[legend]

Public Types

enum  CORNER { TOPLEFT =0, TOPRIGHT =1, BOTTOMRIGHT =2, BOTTOMLEFT =3 }
 Describes a corner the the dialog preview. More...
 

Signals

void colorChanged (DialogPreview::CORNER corner, const QColor &color=QColor())
 A Color has Changed. More...
 

Public Member Functions

 DialogPreview (QWidget *parent=nullptr)
 
 ~DialogPreview ()=default
 
const QColor & color (DialogPreview::CORNER)
 
void setColor (DialogPreview::CORNER corner, const QColor &newColor=QColor())
 
void setEnabled (bool enabled)
 

Protected Member Functions

void paintEvent (QPaintEvent *ev) override
 
bool event (QEvent *ev) override
 

Member Enumeration Documentation

◆ CORNER

Describes a corner the the dialog preview.

Enumerator
TOPLEFT 
TOPRIGHT 
BOTTOMRIGHT 
BOTTOMLEFT 

Constructor & Destructor Documentation

◆ DialogPreview()

DialogPreview::DialogPreview ( QWidget *  parent = nullptr)

◆ ~DialogPreview()

DialogPreview::~DialogPreview ( )
default

Member Function Documentation

◆ color()

const QColor & DialogPreview::color ( DialogPreview::CORNER  corner)

◆ colorChanged

void DialogPreview::colorChanged ( DialogPreview::CORNER  corner,
const QColor &  color = QColor() 
)
signal

A Color has Changed.

Parameters
cornerthe corner where the change happend
colorthe new color
See also
CORNER

◆ event()

bool DialogPreview::event ( QEvent *  ev)
overrideprotected

◆ paintEvent()

void DialogPreview::paintEvent ( QPaintEvent *  ev)
overrideprotected

◆ setColor()

void DialogPreview::setColor ( DialogPreview::CORNER  corner,
const QColor &  newColor = QColor() 
)

◆ setEnabled()

void DialogPreview::setEnabled ( bool  enabled)

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