1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-12 09:54:40 +01:00
Clementine-audio-player-Mac.../3rdparty/qocoa
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
..
CMakeLists.txt
gallery.cpp
gallery.h
gallery.png
LICENSE.txt
main.cpp
qbutton_mac.mm
qbutton_nonmac.cpp
qbutton.h
qocoa_mac.h
Qocoa.pro
qprogressindicatorspinning_mac.mm
qprogressindicatorspinning_nonmac.cpp
qprogressindicatorspinning_nonmac.gif
qprogressindicatorspinning_nonmac.qrc
qprogressindicatorspinning.h
qsearchfield_mac.mm Use Cocoa actions for search field copy/cut/paste instead of trying to reimplement the same thing with some Qt. 2015-10-15 19:46:01 +02:00
qsearchfield_nonmac.cpp
qsearchfield.h
README.md
TODO.md

Qocoa

Qocoa is a collection of Qt wrappers for OSX's Cocoa widgets.

Features

  • basic fallback to sensible Qt types on non-OSX platforms
  • shared class headers which expose no implementation details
  • typical Qt signal/slot-based API
  • trivial to import into projects (class header/implementation, single shared global header)

Building

git clone git://github.com/mikemcquaid/Qocoa.git
cd Qocoa
qmake # or cmake .
make

Status

Qocoa classes are currently provided for NSButton, a spinning NSProgressIndicator and NSSearchField. There is a TODO list for classes I hope to implement.

Usage

For each class you want to use copy the qocoa_mac.h, $CLASS.h, $CLASS_mac.* and $CLASS_nonmac.* files into your source tree and add them to your buildsystem. Examples are provided for CMake and QMake.

Contact

Mike McQuaid

License

Qocoa is licensed under the MIT License. The full license text is available in LICENSE.txt.

The icons are taken from the Oxygen Project and are licensed under the Creative Commons Attribution-ShareAlike 3.0 License.

Qocoa Gallery