Changeset View
Changeset View
Standalone View
Standalone View
src/kmessagewidget.cpp
Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Line(s) | 306 | { | |||
---|---|---|---|---|---|
310 | } | 310 | } | ||
311 | } | 311 | } | ||
312 | 312 | | |||
313 | int KMessageWidget::heightForWidth(int width) const | 313 | int KMessageWidget::heightForWidth(int width) const | ||
314 | { | 314 | { | ||
315 | ensurePolished(); | 315 | ensurePolished(); | ||
316 | return QFrame::heightForWidth(width); | 316 | return QFrame::heightForWidth(width); | ||
317 | } | 317 | } | ||
318 | #include <QDebug> | 318 | | ||
319 | void KMessageWidget::paintEvent(QPaintEvent *event) | 319 | void KMessageWidget::paintEvent(QPaintEvent *event) | ||
320 | { | 320 | { | ||
321 | Q_UNUSED(event) | 321 | Q_UNUSED(event) | ||
322 | QPainter painter(this); | 322 | QPainter painter(this); | ||
323 | if (d->timeLine->state() == QTimeLine::Running) { | 323 | if (d->timeLine->state() == QTimeLine::Running) { | ||
324 | painter.setOpacity(d->timeLine->currentValue() * d->timeLine->currentValue()); | 324 | painter.setOpacity(d->timeLine->currentValue() * d->timeLine->currentValue()); | ||
325 | } | 325 | } | ||
326 | constexpr float radius = 4 * 0.6; | 326 | constexpr float radius = 4 * 0.6; | ||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |