Hi!

This patch changes the behavior of usereventdlg when MsgChatView is set.
Currently mleHistory and mleSend are the same size by default and are
equally stretched when the window is resized. This is quite an annoyance
for me, since I usually want more space for the history than for message
input. When I increase window height, I also have to adjust the splitter
control. The patch sets the height of mleSend to 90 by default (this
might need some fine tuning) and makes it keep its size on window
resize. (This is the way the official ICQ­client handles it)
Index: plugins/qt-gui/src/usereventdlg.cpp
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/usereventdlg.cpp,v
retrieving revision 1.102
diff -u -3 -p -r1.102 usereventdlg.cpp
--- plugins/qt-gui/src/usereventdlg.cpp	15 Feb 2003 12:31:19 -0000	1.102
+++ plugins/qt-gui/src/usereventdlg.cpp	19 Feb 2003 13:26:38 -0000
@@ -1014,7 +1014,10 @@ UserSendCommon::UserSendCommon(CICQDaemo
     //splView->setResizeMode(mleHistory, QSplitter::FollowSizeHint);
   }
   mleSend = new MLEditWrap(true, splView, true);
-  //splView->setResizeMode(mleSend, QSplitter::Stretch);
+  if (mainwin->m_bMsgChatView) {
+    splView->setResizeMode(mleSend, QSplitter::KeepSize);
+    mleSend->resize(mleSend->width(), 90);
+  }
   setTabOrder(mleSend, btnSend);
   setTabOrder(btnSend, btnCancel);
   icqColor.SetToDefault();
ciao
  Jörg


Reply via email to