Interactive preview of the user list banner art.
More...
#include <user_card_settings_dialog.h>
Interactive preview of the user list banner art.
Renders the banner strip with the given CardArtParams through the same UserListPainter::drawCardArt() the live delegate uses, including the avatar placeholder and fade masks. Dragging pans the art vertically at output scale, the wheel zooms, arrow keys nudge, Backspace or Esc restores the parameters as of focus gain.
◆ CardArtPreviewWidget()
| CardArtPreviewWidget::CardArtPreviewWidget |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
◆ applyCropDelta()
| void CardArtPreviewWidget::applyCropDelta |
( |
qreal | dOffset, |
|
|
qreal | zoomFactor ) |
|
private |
◆ bannerTravel()
| qreal CardArtPreviewWidget::bannerTravel |
( |
| ) |
const |
|
private |
vertical travel of the art behind the strip, in output pixels
◆ focusInEvent()
| void CardArtPreviewWidget::focusInEvent |
( |
QFocusEvent * | event | ) |
|
|
overrideprotected |
◆ keyPressEvent()
| void CardArtPreviewWidget::keyPressEvent |
( |
QKeyEvent * | event | ) |
|
|
overrideprotected |
◆ mouseMoveEvent()
| void CardArtPreviewWidget::mouseMoveEvent |
( |
QMouseEvent * | event | ) |
|
|
overrideprotected |
◆ mousePressEvent()
| void CardArtPreviewWidget::mousePressEvent |
( |
QMouseEvent * | event | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
| void CardArtPreviewWidget::mouseReleaseEvent |
( |
QMouseEvent * | event | ) |
|
|
overrideprotected |
◆ paintEvent()
| void CardArtPreviewWidget::paintEvent |
( |
QPaintEvent * | event | ) |
|
|
overrideprotected |
◆ paramsEdited
| void CardArtPreviewWidget::paramsEdited |
( |
const CardArtParams & | params | ) |
|
|
signal |
Emitted whenever direct manipulation (drag, wheel, keys) changes the parameters.
◆ restoreSnapshot()
| void CardArtPreviewWidget::restoreSnapshot |
( |
| ) |
|
|
private |
◆ sameCrop()
◆ setAttribution()
| void CardArtPreviewWidget::setAttribution |
( |
const QString & | attribution | ) |
|
◆ setParams()
| void CardArtPreviewWidget::setParams |
( |
const CardArtParams & | params | ) |
|
◆ setPixmap()
| void CardArtPreviewWidget::setPixmap |
( |
const QPixmap & | pixmap | ) |
|
◆ wheelEvent()
| void CardArtPreviewWidget::wheelEvent |
( |
QWheelEvent * | event | ) |
|
|
overrideprotected |
◆ attributionText
| QString CardArtPreviewWidget::attributionText |
|
private |
◆ dragging
| bool CardArtPreviewWidget::dragging {false} |
|
private |
true between an accepted press and its release, guards stale drag positions
◆ lastDragPos
| QPoint CardArtPreviewWidget::lastDragPos |
|
private |
widget space position of the previous mouse move while panning
◆ params
◆ paramsAtFocusIn
crop as of the latest focus gain, restored by Esc or Backspace
◆ sourcePixmap
| QPixmap CardArtPreviewWidget::sourcePixmap |
|
private |
The documentation for this class was generated from the following files: