Author: mir3x
Date: Thu Oct 27 21:30:55 2016
New Revision: 34267

URL: http://svn.gna.org/viewcvs/freeciv?rev=34267&view=rev
Log:
Qt client - fixed cursor shape in message output

See bug bug #25231

Modified:
    branches/S2_6/client/gui-qt/messagewin.cpp
    branches/S2_6/client/gui-qt/messagewin.h

Modified: branches/S2_6/client/gui-qt/messagewin.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/messagewin.cpp?rev=34267&r1=34266&r2=34267&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/messagewin.cpp  (original)
+++ branches/S2_6/client/gui-qt/messagewin.cpp  Thu Oct 27 21:30:55 2016
@@ -233,6 +233,22 @@
   mesg_table->clearSelection();
 }
 
+/**************************************************************************
+  Mouse entered messagewdg
+**************************************************************************/
+void messagewdg::enterEvent(QEvent *event)
+{
+  setCursor(Qt::ArrowCursor);
+}
+
+/**************************************************************************
+  Mouse left messagewdg
+**************************************************************************/
+void messagewdg::leaveEvent(QEvent *event)
+{
+  setCursor(Qt::ArrowCursor);
+}
+
 /***************************************************************************
   Paints semi-transparent background
 ***************************************************************************/

Modified: branches/S2_6/client/gui-qt/messagewin.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/messagewin.h?rev=34267&r1=34266&r2=34267&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/messagewin.h    (original)
+++ branches/S2_6/client/gui-qt/messagewin.h    Thu Oct 27 21:30:55 2016
@@ -48,6 +48,8 @@
   QGridLayout *layout;
   QPixmap *pix;
 protected:
+  void enterEvent(QEvent *event);
+  void leaveEvent(QEvent *event);
   void paint(QPainter *painter, QPaintEvent *event);
   void paintEvent(QPaintEvent *event);
   void resizeEvent(QResizeEvent *event);


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to