@@ -2769,28 +2769,28 @@ void MainWindow::setupChatHistory()
2769
2769
if (listview)
2770
2770
{
2771
2771
auto chat = new ChatTextList (ui.chatTab );
2772
- auto layout = ui.chatTab -> layout () ;
2772
+ auto layout = ui.verticalLayout_3 ;
2773
2773
auto index = layout->indexOf (ui.chatEdit );
2774
2774
layout->removeWidget (ui.chatEdit );
2775
- layout->addWidget ( chat);
2775
+ layout->insertWidget ( index , chat);
2776
2776
m_chathistory[TAB_CHAT] = chat;
2777
2777
delete ui.chatEdit ;
2778
2778
ui.chatEdit = nullptr ;
2779
2779
2780
2780
auto video = new ChatTextList (ui.videoTab );
2781
- layout = ui.videoTab -> layout () ;
2781
+ layout = ui.verticalLayout_9 ;
2782
2782
index = layout->indexOf (ui.videochatEdit );
2783
2783
layout->removeWidget (ui.videochatEdit );
2784
- layout->addWidget ( video);
2784
+ layout->insertWidget ( index , video);
2785
2785
m_chathistory[TAB_VIDEO] = video;
2786
2786
delete ui.videochatEdit ;
2787
2787
ui.videochatEdit = nullptr ;
2788
2788
2789
2789
auto desktop = new ChatTextList (ui.desktopTab );
2790
- layout = ui.desktopTab -> layout () ;
2790
+ layout = ui.verticalLayout_8 ;
2791
2791
index = layout->indexOf (ui.desktopchatEdit );
2792
2792
layout->removeWidget (ui.desktopchatEdit );
2793
- layout->addWidget ( desktop);
2793
+ layout->insertWidget ( index , desktop);
2794
2794
m_chathistory[TAB_DESKTOP] = desktop;
2795
2795
delete ui.desktopchatEdit ;
2796
2796
ui.desktopchatEdit = nullptr ;
0 commit comments