Rewrite the Mac native toolbar classes.
authorMorten Johan Sørvig <morten.sorvig@digia.com>
Mon, 9 Dec 2013 10:01:42 +0000 (11:01 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 10 Feb 2014 10:48:04 +0000 (11:48 +0100)
commit6c8706cdfa961a42230048e944613639a3c25536
tree0b15fa7642d00524e05ed7b1a8c8a9871ef686d1
parent2f2ba9d199154732d942aa4c18874e40446919d5
Rewrite the Mac native toolbar classes.

Rename the classes to QMacToolBar and QMacToolBarItem.
(Keep the Qt-style ToolBar name capitalization.)

API-review and document a core set of the API, remove
the rest. Missing functionality can be added back
later on.

Add a simple QWindow-based mactoolbar example that
shows the core toolbar functionality. Add manual
test for more comprehensive testing.

Make the QToolbarItem properties actually work,
you can now change the text and icon after the
toolbar has been displayed.

Update license headers.

Change-Id: I99fb207df7f1b3cf0d5df178aa863c77cd372a1f
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
28 files changed:
examples/macextras/macextras.pro
examples/macextras/mactoolbar/mactoolbar.pro [new file with mode: 0644]
examples/macextras/mactoolbar/mactoolbar.qrc [new file with mode: 0644]
examples/macextras/mactoolbar/main.cpp [new file with mode: 0644]
examples/macextras/mactoolbar/qtlogo.png [new file with mode: 0644]
examples/macextras/mactoolbar/rasterwindow.cpp [new file with mode: 0644]
examples/macextras/mactoolbar/rasterwindow.h [new file with mode: 0644]
examples/macextras/mactoolbar/toolbarcontrollerwindow.cpp [new file with mode: 0644]
examples/macextras/mactoolbar/toolbarcontrollerwindow.h [new file with mode: 0644]
src/macextras/macextras-lib.pri
src/macextras/qmacnativetoolbar.mm [deleted file]
src/macextras/qmacnativetoolbar_p.h [deleted file]
src/macextras/qmactoolbar.h [new file with mode: 0644]
src/macextras/qmactoolbar.mm [new file with mode: 0644]
src/macextras/qmactoolbar_p.h [new file with mode: 0644]
src/macextras/qmactoolbardelegate.mm
src/macextras/qmactoolbardelegate_p.h
src/macextras/qmactoolbaritem.h [new file with mode: 0644]
src/macextras/qmactoolbaritem.mm [new file with mode: 0644]
src/macextras/qmactoolbaritem_p.h [new file with mode: 0644]
src/macextras/qmactoolbutton.mm [deleted file]
src/macextras/qmactoolbutton_p.h [deleted file]
tests/manual/mactoolbar/mactoolbar.pro [new file with mode: 0644]
tests/manual/mactoolbar/mactoolbar.qrc [new file with mode: 0644]
tests/manual/mactoolbar/main.cpp [new file with mode: 0644]
tests/manual/mactoolbar/qtlogo.png [new file with mode: 0644]
tests/manual/mactoolbar/toolbarcontrollerwidget.cpp [new file with mode: 0644]
tests/manual/mactoolbar/toolbarcontrollerwidget.h [new file with mode: 0644]