Merge pull request #808 from jpnurmi/slideshow

Improve the slide show
This commit is contained in:
Roeland Jago Douma 2018-11-12 14:47:56 +01:00 committed by GitHub
commit 778489d445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -85,7 +85,7 @@ OwncloudSetupPage::OwncloudSetupPage(QWidget *parent)
_ui.slideShow->addSlide(Theme::hidpiFileName(":/client/theme/colored/wizard-groupware.png"), tr("Easy-to-use web mail, calendaring & contacts"));
_ui.slideShow->addSlide(Theme::hidpiFileName(":/client/theme/colored/wizard-talk.png"), tr("Screensharing, online meetings & web conferences"));
connect(_ui.slideShow, &SlideShow::clicked, _ui.slideShow, &SlideShow::nextSlide);
_ui.slideShow->startShow(2500);
_ui.slideShow->startShow();
QPalette pal = _ui.slideShow->palette();
pal.setColor(QPalette::WindowText, theme->wizardHeaderBackgroundColor());

View file

@ -138,7 +138,7 @@ void SlideShow::mousePressEvent(QMouseEvent *event)
void SlideShow::mouseReleaseEvent(QMouseEvent *event)
{
if (QLineF(_pressPoint, event->pos()).length() < QGuiApplication::styleHints()->startDragDistance())
if (!_animation && QLineF(_pressPoint, event->pos()).length() < QGuiApplication::styleHints()->startDragDistance())
emit clicked();
}

View file

@ -69,7 +69,7 @@ private:
void drawSlide(QPainter *painter, int index);
bool _reverse = false;
int _interval = 2500;
int _interval = 3500;
int _currentIndex = 0;
QPoint _pressPoint;
QBasicTimer _timer;