Arnaud Bienner
ab8c6dbb69
Use Cocoa actions for search field copy/cut/paste instead of trying to reimplement the same thing with some Qt.
...
So unlike previously, actions now also works as expected if some part of the text is selected, or if some text is already present (for paste action: doesn't replace previous text)
2015-10-15 19:46:01 +02:00
narunlifescience
dd953fd86c
check custom icon location, then system theme & then fallback theme
...
icons added & replaced
2015-10-13 22:35:49 -05:00
Arnaud Bienner
399da3c7bc
Convert cocoa key down/up pressed event to equivalent Qt events
2015-09-21 00:47:11 +02:00
Arnaud Bienner
bfe5042132
Don't give focus to search box when setting the reseting the text to empty string on OS X, otherwise it will get focus when it doesn't need to
2015-09-21 00:21:39 +02:00
Arnaud Bienner
e83848edd1
Seems we don't need this anymore.
...
Not sure when it was needed at some point, but now pressing "Esc" correctly cleans the search field. And this code (which also cleans the search field) was triggered in other situation, when pressing Cmd+A for example.
2015-09-21 00:18:57 +02:00
Arnaud Bienner
21ab4518d9
Change the way we give focus to the search bar on OS X. This prevents the text from being selected then accidentally erased by the user, when he starts typing with focus on the playlist view
2015-09-18 01:44:25 +02:00
Arnaud Bienner
fe7bc917de
Check if Mac QSearchField has focus before handling the notification.
...
Otherwise, playlist's search field will always handle those shortcuts, and they won't work anywhere else on the same window.
Fixes #3320 .
2015-03-14 01:55:46 +01:00
Arnaud Bienner
fad0ccc8c6
Fix a crash that will sometime occur on exit on Mac, caused by my recent changes
2015-03-14 01:38:03 +01:00
Arnaud Bienner
c62f2c7f4d
Make QSearchField behaves like other QWidget on Mac. Some events weren't sent for this widget, and escape and return weren't working. This prevents the 'Did you mean' widget to work correctly
2015-02-23 00:01:07 +01:00
Arnaud Bienner
985568d4c1
Use actual characters instead of keycode
...
While keycode are "hardware independent" they don't take into account keyboard layout (e.g. 'q' keycode would actually be 'a' on an AZERTY keyboard)
Fixes issue #4708
2015-02-09 20:45:09 +01:00
John Maguire
20031870df
Support keyboard shortcuts in Mac search fields.
...
Fixes issue #994
2012-07-23 18:17:31 +02:00
David Sansome
3ca45f8100
Make the new non-mac search fields look the same as the old LineEdit
...
based search fields.
2012-07-15 16:58:13 +01:00
Arnaud Bienner
cb1f82d12f
Remove qsearchfield_nonmac.png on 3rparty directory, as it's not used since revision 66a92ae909
2012-07-14 16:17:23 +02:00
Arnaud Bienner
2c301cde0f
Move the search field button to the left, and always display it
2012-07-14 16:10:41 +02:00
John Maguire
501baa6597
Support setFocus on Mac QSearchField.
2012-07-12 18:48:47 +02:00
John Maguire
facf8ac142
Forward setFocus() in QSearchField.
2012-07-12 16:51:11 +02:00
John Maguire
6b87318710
Revert "Typedef QSearchField to old LineEdit on non Mac, and make it compatible with QSearchField"
...
This reverts commit 59517f5b4e
.
Update issue 3047
Status: Accepted
Breaks the mac build. We should do a proper fix for this.
2012-07-12 14:04:29 +02:00
Arnaud Bienner
59517f5b4e
Typedef QSearchField to old LineEdit on non Mac, and make it compatible with QSearchField
...
Fixes issue 3047. (for now)
2012-07-10 00:44:05 +02:00
John Maguire
887cc0c2c8
Make mac compile again.
2012-07-05 13:57:58 +02:00
Arnaud Bienner
c57f58862f
Forward some events from QSearchField's internal lineEdit to QSearchField, so we can be aware of some events (like getting/losing focus).
...
Implemented for non-mac; something certainly still needs to be done for Mac
2012-07-02 00:49:37 +02:00
John Maguire
4c55ed9e94
Actually selectAll() on a Qt search field.
2012-06-28 15:17:12 +02:00
John Maguire
915ad6233c
Remove duplicate Qt check in Qocoa.
2012-06-28 13:19:36 +02:00
John Maguire
c1def8bb26
Fix compilation of QSearchField in Qt 4.6
2012-06-28 13:17:51 +02:00
John Maguire
1ebca65c0b
Fix QSearchField on non-mac.
2012-06-28 12:50:32 +02:00
John Maguire
e928ac0349
Support selectAll() in QSearchField.
2012-06-28 12:27:32 +02:00
John Maguire
1e620321a3
Add support for returnPressed() signal to QSearchField.
2012-06-28 11:40:18 +02:00
John Maguire
6208373b86
Port search field in AlbumCoverManager to QSearchField and add support for placeholder text.
2012-06-28 11:40:05 +02:00
John Maguire
569c8295db
Add qocoa and use it for the playlist search field.
2012-06-28 11:39:43 +02:00