summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 8fbceed..77c9a98 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -619,6 +619,7 @@ void SheMov::createActions(){
// viewer actions
mPVToggleA = new QAction(QIcon(":/dick_in_cage.png"), tr("Show/Hide Picture Viewer"), this);
mPVToggleA->setCheckable(true);
+ mPVToggleA->setData(PictureViewer2::HideAction);
connect(mPVToggleA, SIGNAL(toggled(bool)), mPicWidget, SLOT(showPicViewer(bool)));
mPVToggleA->setChecked(false);
mPicWidget->picView()->addAction(mPVToggleA);
@@ -644,7 +645,8 @@ void SheMov::createActions(){
mPicWidget->picView()->addAction(pvSep2);
mPVSlideA = new QAction(QIcon(":/chastity_belt_with_cuffs.png"), tr("Slide"), this);
mPVSlideA->setCheckable(true);
- connect(mPVSlideA, SIGNAL(triggered()), mPicWidget->picView()->PV(), SLOT(slide()));
+ mPVSlideA->setData(PictureViewer2::SlideAction);
+ connect(mPVSlideA, SIGNAL(toggled(bool)), mPicWidget->picView()->PV(), SLOT(slide(bool)));
mPicWidget->picView()->addAction(mPVSlideA);
QAction *pv2Sep1 = new QAction(this);
pv2Sep1->setSeparator(true);
@@ -664,6 +666,7 @@ void SheMov::createActions(){
mPicWidget->setPicViewerAction(mPVToggleA);
+ mPicWidget->picView()->PV()->initActions();
//don't add actions with checkable(true) unless you know what you're doing!
mPicActionGroup = new QActionGroup(this);
mPicActionGroup->addAction(mPWDeletePicFromA);