From a6c65ee69dab9853b9e80eb2e1f70fc6ae523063 Mon Sep 17 00:00:00 2001 From: narunlifescience Date: Thu, 14 Sep 2017 05:51:29 +0530 Subject: [PATCH] remove unwanted focus signals from MyWidget --- alphaplot/src/ApplicationWindow.cpp | 4 ---- alphaplot/src/MyWidget.cpp | 10 ---------- alphaplot/src/MyWidget.h | 4 ---- 3 files changed, 18 deletions(-) diff --git a/alphaplot/src/ApplicationWindow.cpp b/alphaplot/src/ApplicationWindow.cpp index c7377fba..d5cf1b59 100644 --- a/alphaplot/src/ApplicationWindow.cpp +++ b/alphaplot/src/ApplicationWindow.cpp @@ -2504,10 +2504,6 @@ Layout2D *ApplicationWindow::newGraph2D(const QString &caption) { SLOT(updateWindowStatus(MyWidget *))); connect(layout2d, SIGNAL(showTitleBarMenu()), this, SLOT(showWindowTitleBarMenu())); - //connect(layout2d, SIGNAL(focusinWindow(MyWidget *)), propertyeditor, - // SLOT(populateObjectBrowser(MyWidget *))); - //connect(layout2d, SIGNAL(focusoutWindow(MyWidget *)), propertyeditor, - // SLOT(freeObjectBrowser())); return layout2d; } diff --git a/alphaplot/src/MyWidget.cpp b/alphaplot/src/MyWidget.cpp index e193bbcd..22d125cb 100644 --- a/alphaplot/src/MyWidget.cpp +++ b/alphaplot/src/MyWidget.cpp @@ -72,16 +72,6 @@ void MyWidget::updateCaption() { } } -void MyWidget::focusInEvent(QFocusEvent *) -{ - emit focusinWindow(this); -} - -void MyWidget::focusOutEvent(QFocusEvent *) -{ - emit focusoutWindow(this); -}; - void MyWidget::closeEvent(QCloseEvent *e) { if (askOnClose) { switch (QMessageBox::information( diff --git a/alphaplot/src/MyWidget.h b/alphaplot/src/MyWidget.h index 196b5143..5a47a5e8 100644 --- a/alphaplot/src/MyWidget.h +++ b/alphaplot/src/MyWidget.h @@ -145,8 +145,6 @@ class MyWidget : public QWidget { void setMaximized(); signals: - void focusinWindow(MyWidget *); - void focusoutWindow(MyWidget *); //! Emitted when the window was closed void closedWindow(MyWidget *); //! Emitted when the window was hidden @@ -163,8 +161,6 @@ class MyWidget : public QWidget { void updateCaption(); protected: - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); //! Catches parent changes (in order to gain access to the title bar) virtual void changeEvent(QEvent *event); //! Title bar of this MDI window if it currently belongs to a QWorkspace, NULL