// toolbar only for the mediaView
mainToolBar->setVisible(widget == mediaView && !compactViewAct->isChecked());
+ setUpdatesEnabled(true);
+
history->push(widget);
#ifdef Q_WS_MAC
views->setCurrentWidget(widget);
- setUpdatesEnabled(true);
}
void MainWindow::fadeInWidget(QWidget *oldWidget, QWidget *newWidget) {
FaderWidget::FaderWidget(QWidget *parent) : QWidget(parent) {
timeLine = new QTimeLine(333, this);
- timeLine->setFrameRange(1000, 0);
+ timeLine->setFrameRange(500, 0);
connect(timeLine, SIGNAL(frameChanged(int)), this, SLOT(update()));
setAttribute(Qt::WA_DeleteOnClose);
resize(parent->size());
}
void FaderWidget::paintEvent(QPaintEvent *) {
- const qreal opacity = timeLine->currentFrame() / 1000.;
+ const qreal opacity = timeLine->currentFrame() / 500.;
QPainter painter(this);
painter.setOpacity(opacity);
- painter.drawPixmap(rect(), frozenView);
+ painter.drawPixmap(0, 0, frozenView);
if (opacity <= 0.)
close();