Changeset 140 for smplayer/vendor/current/src/mplayerwindow.h
- Timestamp:
- May 23, 2013, 5:06:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/mplayerwindow.h
r137 r140 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 2Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 42 42 43 43 #define DELAYED_RESIZE 0 44 #define NEW_MOUSE_CHECK_POS 145 44 46 45 //! Screen is a widget that hides the mouse cursor after some seconds if not moved. … … 54 53 ~Screen(); 55 54 56 #if NEW_MOUSE_CHECK_POS57 55 void setAutoHideCursor(bool b); 58 56 bool autoHideCursor() { return autohide_cursor; }; … … 60 58 void setAutoHideInterval(int milliseconds) { autohide_interval = milliseconds; }; 61 59 int autoHideInterval() { return autohide_interval; }; 62 #endif63 60 64 61 public slots: … … 70 67 71 68 protected: 72 #if !NEW_MOUSE_CHECK_POS73 69 virtual void mouseMoveEvent( QMouseEvent * e ); 74 #endif75 70 virtual void paintEvent ( QPaintEvent * e ); 76 71 … … 80 75 private: 81 76 QTimer * check_mouse_timer; 82 #if NEW_MOUSE_CHECK_POS83 77 QPoint mouse_last_position; 84 78 bool autohide_cursor; 85 79 int autohide_interval; 86 #else87 QPoint cursor_pos, last_cursor_pos;88 #endif89 80 }; 90 81
Note:
See TracChangeset
for help on using the changeset viewer.