Advertisement
Guest User

Untitled

a guest
Oct 30th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff -Naur psi.orig/src/widgets/iconselect.cpp psi/src/widgets/iconselect.cpp
  2. --- psi.orig/src/widgets/iconselect.cpp 2010-11-10 10:08:28.000000000 +0000
  3. +++ psi/src/widgets/iconselect.cpp  2010-11-10 10:26:37.626262016 +0000
  4. @@ -104,6 +104,10 @@
  5.     void iconSelected(const PsiIcon *);
  6.     void textSelected(QString);
  7.  
  8. +public slots:
  9. +   void aboutToShow() { iconStart(); }
  10. +   void aboutToHide() { iconStop();  }
  11. +
  12.  private:
  13.     void iconStart()
  14.     {
  15. @@ -143,8 +147,8 @@
  16.         }
  17.     }
  18.  
  19. -   void enterEvent(QEvent *) { iconStart(); setFocus();  update(); } // focus follows mouse mode
  20. -   void leaveEvent(QEvent *) { iconStop(); clearFocus(); update(); }
  21. +   void enterEvent(QEvent *) { setFocus();   update(); } // focus follows mouse mode
  22. +   void leaveEvent(QEvent *) { clearFocus(); update(); }
  23.  
  24.  private slots:
  25.     void iconUpdated()
  26. @@ -334,8 +338,8 @@
  27.         connect (b, SIGNAL(iconSelected(const PsiIcon *)), menu, SIGNAL(iconSelected(const PsiIcon *)));
  28.         connect (b, SIGNAL(textSelected(QString)), menu, SIGNAL(textSelected(QString)));
  29.  
  30. -       //connect (menu, SIGNAL(aboutToShow()), b, SLOT(aboutToShow()));
  31. -       //connect (menu, SIGNAL(aboutToHide()), b, SLOT(aboutToHide()));
  32. +       connect (menu, SIGNAL(aboutToShow()), b, SLOT(aboutToShow()));
  33. +       connect (menu, SIGNAL(aboutToHide()), b, SLOT(aboutToHide()));
  34.  
  35.         if (++column >= size) {
  36.             ++row;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement