Skip to content

Commit

Permalink
remove unwanted focus signals from MyWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
narunlifescience committed Sep 14, 2017
1 parent 09a2f04 commit a6c65ee
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
4 changes: 0 additions & 4 deletions alphaplot/src/ApplicationWindow.cpp
Expand Up @@ -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;
}
Expand Down
10 changes: 0 additions & 10 deletions alphaplot/src/MyWidget.cpp
Expand Up @@ -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(
Expand Down
4 changes: 0 additions & 4 deletions alphaplot/src/MyWidget.h
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a6c65ee

Please sign in to comment.