180
178
m_tabWidget->setCornerWidget(closeBtn, Qt::BottomRightCorner);
181
179
connect(closeBtn, SIGNAL(clicked()), this, SLOT(closeCurrentView()));
183
connect(m_tabWidget, SIGNAL(currentChanged(int)), this, SLOT (switchView(int)));
181
connect(m_tabWidget, SIGNAL(currentChanged(int)), this, SLOT (viewSwitched(int)));
184
182
connect(m_tabWidget, SIGNAL(closeRequest(QWidget*)), this, SLOT(closeView(QWidget*)));
185
183
connect(m_tabWidget, SIGNAL(contextMenu(QWidget*, const QPoint&)), this, SLOT(showViewContextMenu(QWidget*, const QPoint&)));
186
184
connect(m_tabWidget, SIGNAL(mouseMiddleClick(QWidget*)), this, SLOT(closeViewMiddleClick(QWidget*)));