summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-01-14 10:22:54 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-15 21:23:28 (GMT)
commitfbd769dea957d4ba548293d3b9db94350aafd77f (patch)
treefb6584a965b62a941bf2d448915e1161a747d6e0 /src/gui
parent05f5df11fb8041d44502a8ef8eb2674155fc6047 (diff)
downloadQt-fbd769dea957d4ba548293d3b9db94350aafd77f.zip
Qt-fbd769dea957d4ba548293d3b9db94350aafd77f.tar.gz
Qt-fbd769dea957d4ba548293d3b9db94350aafd77f.tar.bz2
Fix QVistaHelper::disconnectBackButton().
Restrict disconnect() to the clicked() signal, leaving connections to destroyed() (as used by QStyleSheetStyle) intact. Task-number: QTBUG-20292 Change-Id: I7471b4d1262ec0684e4446b5c17513717c502749 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> (cherry picked from qtbase/273713b81f5e580748c281c17e08e8b3e2e8ee70)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/dialogs/qwizard_win.cpp6
-rw-r--r--src/gui/dialogs/qwizard_win_p.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/dialogs/qwizard_win.cpp b/src/gui/dialogs/qwizard_win.cpp
index aa7cf1a..b933f3b 100644
--- a/src/gui/dialogs/qwizard_win.cpp
+++ b/src/gui/dialogs/qwizard_win.cpp
@@ -287,6 +287,12 @@ QVistaHelper::VistaState QVistaHelper::vistaState()
return cachedVistaState;
}
+void QVistaHelper::disconnectBackButton()
+{
+ if (backButton_) // Leave QStyleSheetStyle's connections on destroyed() intact.
+ backButton_->disconnect(SIGNAL(clicked()));
+}
+
QColor QVistaHelper::basicWindowFrameColor()
{
DWORD rgb;
diff --git a/src/gui/dialogs/qwizard_win_p.h b/src/gui/dialogs/qwizard_win_p.h
index 88ee619..ceb3bf4 100644
--- a/src/gui/dialogs/qwizard_win_p.h
+++ b/src/gui/dialogs/qwizard_win_p.h
@@ -94,7 +94,7 @@ public:
void resizeEvent(QResizeEvent *event);
void paintEvent(QPaintEvent *event);
QVistaBackButton *backButton() const { return backButton_; }
- void disconnectBackButton() { if (backButton_) backButton_->disconnect(); }
+ void disconnectBackButton();
void hideBackButton() { if (backButton_) backButton_->hide(); }
void setWindowPosHack();
QColor basicWindowFrameColor();