From d99cf71a6249d171be51118fc6732a434b10d632 Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Fri, 16 Mar 2012 10:53:07 +0800 Subject: [PATCH] Rename method to match what it really does --- src/ViewManager.cpp | 4 ++-- src/ViewManager.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp index 43e38dd7b..b65e8cdf5 100644 --- a/src/ViewManager.cpp +++ b/src/ViewManager.cpp @@ -650,7 +650,7 @@ ViewContainer* ViewManager::createContainer() connect(container, SIGNAL(newViewRequest()), this, SIGNAL(newViewRequest())); connect(container, SIGNAL(moveViewRequest(int,int,bool&)), this , SLOT(containerMoveViewRequest(int,int,bool&))); - connect(container , SIGNAL(viewRemoved(QWidget*)) , this , SLOT(viewCloseRequest(QWidget*))); + connect(container , SIGNAL(viewRemoved(QWidget*)) , this , SLOT(viewDestroyed(QWidget*))); connect(container , SIGNAL(activeViewChanged(QWidget*)) , this , SLOT(viewActivated(QWidget*))); return container; @@ -724,7 +724,7 @@ void ViewManager::containerViewsChanged(QObject* container) } } -void ViewManager::viewCloseRequest(QWidget* view) +void ViewManager::viewDestroyed(QWidget* view) { // Note: the received QWidget has already been destroyed, so // using dynamic_cast<> or qobject_cast<> does not work here diff --git a/src/ViewManager.h b/src/ViewManager.h index 2e2467642..2bc0e9507 100644 --- a/src/ViewManager.h +++ b/src/ViewManager.h @@ -291,8 +291,8 @@ private slots: // called when a session terminates - the view manager will delete any // views associated with the session void sessionFinished(); - // called when the container requests to close a particular view - void viewCloseRequest(QWidget* widget); + // called when one view has been destroyed + void viewDestroyed(QWidget* widget); // controller detects when an associated view is given the focus // and emits a signal. ViewManager listens for that signal