Changeset View
Changeset View
Standalone View
Standalone View
kopete/chatwindow/kopetechatwindow.cpp
Context not available. | |||||
693 | 693 | | |||
---|---|---|---|---|---|
694 | connect(m_tabBar, SIGNAL(testCanDecode(const QDragMoveEvent*,bool&)), this, SLOT(testCanDecode(const QDragMoveEvent*,bool&))); | 694 | connect(m_tabBar, SIGNAL(testCanDecode(const QDragMoveEvent*,bool&)), this, SLOT(testCanDecode(const QDragMoveEvent*,bool&))); | ||
695 | connect(m_tabBar, SIGNAL(receivedDropEvent(QWidget*,QDropEvent*)), this, SLOT(receivedDropEvent(QWidget*,QDropEvent*))); | 695 | connect(m_tabBar, SIGNAL(receivedDropEvent(QWidget*,QDropEvent*)), this, SLOT(receivedDropEvent(QWidget*,QDropEvent*))); | ||
696 | connect(m_tabBar, SIGNAL(currentChanged(QWidget*)), this, SLOT(setActiveView(QWidget*))); | 696 | connect(m_tabBar, SIGNAL(currentChanged(int)), this, SLOT(setActiveView(int))); | ||
697 | connect(m_tabBar, SIGNAL(contextMenu(QWidget*,QPoint)), this, SLOT(slotTabContextMenu(QWidget*,QPoint))); | 697 | connect(m_tabBar, SIGNAL(contextMenu(QWidget*,QPoint)), this, SLOT(slotTabContextMenu(QWidget*,QPoint))); | ||
698 | 698 | | |||
699 | if (m_activeView) { | 699 | if (m_activeView) { | ||
Context not available. | |||||
759 | void KopeteChatWindow::deleteTabBar() | 759 | void KopeteChatWindow::deleteTabBar() | ||
760 | { | 760 | { | ||
761 | if (m_tabBar) { | 761 | if (m_tabBar) { | ||
762 | disconnect(m_tabBar, SIGNAL(currentChanged(QWidget*)), this, SLOT(setActiveView(QWidget*))); | 762 | disconnect(m_tabBar, SIGNAL(currentChanged(int)), this, SLOT(setActiveView(int))); | ||
763 | disconnect(m_tabBar, SIGNAL(contextMenu(QWidget*,QPoint)), this, SLOT(slotTabContextMenu(QWidget*,QPoint))); | 763 | disconnect(m_tabBar, SIGNAL(contextMenu(QWidget*,QPoint)), this, SLOT(slotTabContextMenu(QWidget*,QPoint))); | ||
764 | 764 | | |||
765 | if (!chatViewList.isEmpty()) { | 765 | if (!chatViewList.isEmpty()) { | ||
Context not available. | |||||
1037 | emit chatSessionChanged(m_activeView->msgManager()); | 1037 | emit chatSessionChanged(m_activeView->msgManager()); | ||
1038 | } | 1038 | } | ||
1039 | 1039 | | |||
1040 | void KopeteChatWindow::setActiveView(int idx) | ||||
1041 | { | ||||
1042 | setActiveView(m_tabBar->widget(idx)); | ||||
1043 | } | ||||
1044 | | ||||
1040 | void KopeteChatWindow::slotUpdateCaptionIcons(ChatView *view) | 1045 | void KopeteChatWindow::slotUpdateCaptionIcons(ChatView *view) | ||
1041 | { | 1046 | { | ||
1042 | if (!view) { | 1047 | if (!view) { | ||
Context not available. |