Core: Remove windowActivated signal from MainWindow

That makes no sense now that we potentially have multiple windows.
It is also not available outside of the Core plugin and unused in
Core.

Change-Id: I32b491e4ec078892e9ad3a8fb62616e4567549a6
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-02-16 15:15:49 +01:00
parent 75a823a7d2
commit 53b4da93a2
2 changed files with 0 additions and 14 deletions

View File

@@ -894,18 +894,6 @@ void MainWindow::removeContextObject(IContext *context)
updateContextObject(m_activeContext);
}
void MainWindow::changeEvent(QEvent *e)
{
QMainWindow::changeEvent(e);
if (e->type() == QEvent::ActivationChange) {
if (isActiveWindow()) {
if (debugMainWindow)
qDebug() << "main window activated";
emit windowActivated();
}
}
}
void MainWindow::updateFocusWidget(QWidget *old, QWidget *now)
{
Q_UNUSED(old)

View File

@@ -111,7 +111,6 @@ public:
bool isNewItemDialogRunning() const;
signals:
void windowActivated();
void newItemDialogRunningChanged();
public slots:
@@ -133,7 +132,6 @@ public slots:
QWidget *parent = 0);
protected:
virtual void changeEvent(QEvent *e);
virtual void closeEvent(QCloseEvent *event);
private slots: