SHARE
TWEET

scantailor-mac-zones-patch

a guest May 30th, 2011 167 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/zones/ZoneContextMenuInteraction.cpp b/zones/ZoneContextMenuInteraction.cpp
  2. index fd47b54..763ac06 100644
  3. --- a/zones/ZoneContextMenuInteraction.cpp
  4. +++ b/zones/ZoneContextMenuInteraction.cpp
  5. @@ -112,6 +112,10 @@ ZoneContextMenuInteraction::ZoneContextMenuInteraction(
  6.  
  7.         interaction.capture(m_interaction);
  8.  
  9. +#ifdef Q_WS_MAC
  10. +       m_extraDelaysDone = 0;
  11. +#endif
  12. +
  13.         int h = 20;
  14.         int const h_step = 65;
  15.         int const s = 255 * 64 / 100;
  16. @@ -193,6 +197,13 @@ ZoneContextMenuInteraction::menuAboutToHide()
  17.                 return;
  18.         }
  19.  
  20. +#ifdef Q_WS_MAC
  21. +       if (m_extraDelaysDone++ < 1) {
  22. +               QTimer::singleShot(200, this, SLOT(menuAboutToHide()));
  23. +               return;
  24. +       }
  25. +#endif
  26. +
  27.         InteractionHandler* next_handler = m_rContext.createDefaultInteraction();
  28.         if (next_handler) {
  29.                 makePeerPreceeder(*next_handler);
  30. diff --git a/zones/ZoneContextMenuInteraction.h b/zones/ZoneContextMenuInteraction.h
  31. index 3173b02..dbeee22 100644
  32. --- a/zones/ZoneContextMenuInteraction.h
  33. +++ b/zones/ZoneContextMenuInteraction.h
  34. @@ -131,6 +131,9 @@ private:
  35.         std::auto_ptr<QMenu> m_ptrMenu;
  36.         int m_highlightedZoneIdx;
  37.         bool m_menuItemTriggered;
  38. +#ifdef Q_WS_MAC
  39. +       int m_extraDelaysDone;
  40. +#endif
  41.  };
  42.  
  43.  #endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top