From e803b2c447d0e5f83cc9b9bae665f174d812affd Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 4 Nov 2012 14:07:55 +0000 Subject: [PATCH] Changed to switch Start/Stop button text, when Slide is running or not. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5773 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.cpp | 4 ++++ retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.ui | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.cpp b/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.cpp index 2e9f925bb..f64120908 100644 --- a/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.cpp +++ b/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.cpp @@ -106,10 +106,14 @@ void PhotoSlideShow::StartStop() if (mRunning) { mRunning = false; + ui.pushButton_StartStop->setText(tr("Start")); + ui.pushButton_StartStop->setToolTip(tr("Start Slide Show")); } else { mRunning = true; + ui.pushButton_StartStop->setText(tr("Stop")); + ui.pushButton_StartStop->setToolTip(tr("Stop Slide Show")); if (!mShotActive) // make sure only one timer running { mShotActive = true; diff --git a/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.ui b/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.ui index be5148197..bc771eec0 100644 --- a/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.ui +++ b/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.ui @@ -10,6 +10,9 @@ 671 + + false + @@ -99,7 +102,7 @@ :/images/window_fullscreen.png:/images/window_fullscreen.png - true + false @@ -112,8 +115,11 @@ + + + - Stop/Run + Stop