Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -Naur psi.orig/src/widgets/iconselect.cpp psi/src/widgets/iconselect.cpp
- --- psi.orig/src/widgets/iconselect.cpp 2010-11-10 10:08:28.000000000 +0000
- +++ psi/src/widgets/iconselect.cpp 2010-11-10 10:26:37.626262016 +0000
- @@ -104,6 +104,10 @@
- void iconSelected(const PsiIcon *);
- void textSelected(QString);
- +public slots:
- + void aboutToShow() { iconStart(); }
- + void aboutToHide() { iconStop(); }
- +
- private:
- void iconStart()
- {
- @@ -143,8 +147,8 @@
- }
- }
- - void enterEvent(QEvent *) { iconStart(); setFocus(); update(); } // focus follows mouse mode
- - void leaveEvent(QEvent *) { iconStop(); clearFocus(); update(); }
- + void enterEvent(QEvent *) { setFocus(); update(); } // focus follows mouse mode
- + void leaveEvent(QEvent *) { clearFocus(); update(); }
- private slots:
- void iconUpdated()
- @@ -334,8 +338,8 @@
- connect (b, SIGNAL(iconSelected(const PsiIcon *)), menu, SIGNAL(iconSelected(const PsiIcon *)));
- connect (b, SIGNAL(textSelected(QString)), menu, SIGNAL(textSelected(QString)));
- - //connect (menu, SIGNAL(aboutToShow()), b, SLOT(aboutToShow()));
- - //connect (menu, SIGNAL(aboutToHide()), b, SLOT(aboutToHide()));
- + connect (menu, SIGNAL(aboutToShow()), b, SLOT(aboutToShow()));
- + connect (menu, SIGNAL(aboutToHide()), b, SLOT(aboutToHide()));
- if (++column >= size) {
- ++row;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement