diff options
author | Arno <arno@disconnect.de> | 2015-08-12 19:29:44 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2015-08-12 19:29:44 +0200 |
commit | dc2927587eb758754babf98adb764c3bbdccd024 (patch) | |
tree | 7fc3a9c94f2e895862de0523a06475a3572112e7 /shemov.cpp | |
parent | 49b943474c4ac39ee5f0f2e900fddd1253a84366 (diff) | |
download | SheMov-dc2927587eb758754babf98adb764c3bbdccd024.tar.gz SheMov-dc2927587eb758754babf98adb764c3bbdccd024.tar.bz2 SheMov-dc2927587eb758754babf98adb764c3bbdccd024.zip |
Implement slide through all pictures
Wow, that was much more complicated than I first thought, but it seems
to work. Maybe it's much more convoluted than it has to be :)
Diffstat (limited to 'shemov.cpp')
-rw-r--r-- | shemov.cpp | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -586,13 +586,30 @@ void SheMov::createActions(){ picViewer->addAction(createSeparator()); // Slide + mPVToggleSlideA = new QAction(QIcon(":/chastity_belt.png"), tr("Slide"), this); + mPVToggleSlideA->setCheckable(true); + mPVToggleSlideA->setChecked(false); + mPVToggleSlideA->setData(PictureViewer2::ToggleSlideAction); + QActionGroup *slideGroup = new QActionGroup(this); + slideGroup->setExclusive(true); + connect(mPVToggleSlideA, SIGNAL(toggled(bool)), picViewer, SLOT(toggleSlide(bool))); + connect(mPVToggleSlideA, SIGNAL(toggled(bool)), this, SLOT(setSlide(bool))); mPVSlideA = new QAction(QIcon(":/chastity_belt_with_cuffs.png"), tr("Slide"), this); mPVSlideA->setCheckable(true); - mPVSlideA->setData(PictureViewer2::SlideAction); + mPVSlideA->setData(PictureViewer2::SlideSelectedAction); + mPVSlideA->setChecked(true); connect(mPVSlideA, SIGNAL(toggled(bool)), picViewer, SLOT(slide(bool))); - connect(mPVSlideA, SIGNAL(toggled(bool)), this, SLOT(setSlide(bool))); + slideGroup->addAction(mPVSlideA); + mPVSlideAllA = new QAction(QIcon(":/nipple_up.png"), tr("Slide all"), this); + mPVSlideAllA->setCheckable(true); + mPVSlideAllA->setData(PictureViewer2::SlideAllAction); + connect(mPVSlideAllA, SIGNAL(triggered(bool)), picViewer, SLOT(slideThrouhghAll(bool))); + slideGroup->addAction(mPVSlideAllA); picViewer->addAction(createSeparator()); + picViewer->addAction(mPVToggleSlideA); picViewer->addAction(mPVSlideA); + picViewer->addAction(mPVSlideAllA); + picViewer->addAction(createSeparator()); mPVSkipForwardA = new QAction(tr("Skip 25 forward"), this); connect(mPVSkipForwardA, SIGNAL(triggered()), this, SLOT(skipForward())); mPVSkipForwardA->setData(PictureViewer2::SkipForwardAction); |