diff options
author | Louai Al-Khanji <louai.al-khanji@theqtcompany.com> | 2015-10-15 16:24:54 +0300 |
---|---|---|
committer | Louai Al-Khanji <louai.al-khanji@theqtcompany.com> | 2015-11-21 15:38:39 +0000 |
commit | dbb7817e13bc7f7ccb8f04b00a65eb3dcf8d25f8 (patch) | |
tree | 6b786e700e14bfe100bebd753b7133830231dac4 /src/plugins/styles/bb10style | |
parent | 496823b9a856d649c468d03b64241562807f3c16 (diff) |
Remove remaining support for Blackberry
The platform is no longer supported or actively maintained, and is
in the way for improvements to the Unix event dispatcher and QProcess
implementations.
Change-Id: I3935488ca12e2139ea5f46068d7665a453e20526
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/plugins/styles/bb10style')
117 files changed, 0 insertions, 1136 deletions
diff --git a/src/plugins/styles/bb10style/bb10lightstyle.qrc b/src/plugins/styles/bb10style/bb10lightstyle.qrc deleted file mode 100644 index 0777e009bb..0000000000 --- a/src/plugins/styles/bb10style/bb10lightstyle.qrc +++ /dev/null @@ -1,54 +0,0 @@ -<RCC> - <qresource prefix="/"> - <file>light/button/core_button_disabled.png</file> - <file>light/button/core_button_inactive.png</file> - <file>light/button/core_button_pressed.png</file> - <file>light/checkbox/core_checkbox_checked.png</file> - <file>light/checkbox/core_checkbox_disabled.png</file> - <file>light/checkbox/core_checkbox_disabledchecked.png</file> - <file>light/checkbox/core_checkbox_enabled.png</file> - <file>light/checkbox/core_checkbox_pressed.png</file> - <file>light/checkbox/core_checkbox_pressedchecked.png</file> - <file>light/radiobutton/core_radiobutton_checked.png</file> - <file>light/radiobutton/core_radiobutton_disabled.png</file> - <file>light/radiobutton/core_radiobutton_disabledchecked.png</file> - <file>light/radiobutton/core_radiobutton_enabled.png</file> - <file>light/radiobutton/core_radiobutton_pressed.png</file> - <file>light/slider/core_slider_active.png</file> - <file>light/slider/core_slider_disabled.png</file> - <file>light/slider/core_slider_handle.png</file> - <file>light/slider/core_slider_handle_disabled.png</file> - <file>light/slider/core_slider_handle_pressed.png</file> - <file>light/slider/core_slider_inactive.png</file> - <file>light/slider/core_slider_vactive.png</file> - <file>light/slider/core_slider_vdisabled.png</file> - <file>light/slider/core_slider_vinactive.png</file> - <file>light/slider/core_slider_black.png</file> - <file>light/slider/core_slider_enabled.png</file> - <file>light/slider/core_slider_vblack.png</file> - <file>light/slider/core_slider_venabled.png</file> - <file>light/button/core_button_active.png</file> - <file>light/lineedit/core_textinput_bg.png</file> - <file>light/lineedit/core_textinput_bg_disabled.png</file> - <file>light/lineedit/core_textinput_bg_focused.png</file> - <file>light/progressbar/core_progressindicator_bg.png</file> - <file>light/progressbar/core_progressindicator_complete.png</file> - <file>light/progressbar/core_progressindicator_fill.png</file> - <file>light/progressbar/core_progressindicator_vbg.png</file> - <file>light/progressbar/core_progressindicator_vcomplete.png</file> - <file>light/progressbar/core_progressindicator_vfill.png</file> - <file>light/combobox/core_dropdown_button.png</file> - <file>light/combobox/core_dropdown_button_arrowdown.png</file> - <file>light/combobox/core_dropdown_button_arrowdown_pressed.png</file> - <file>light/combobox/core_dropdown_button_arrowup.png</file> - <file>light/combobox/core_dropdown_button_disabled.png</file> - <file>light/combobox/core_dropdown_button_pressed.png</file> - <file>light/combobox/core_dropdown_checkmark.png</file> - <file>light/combobox/core_dropdown_divider.png</file> - <file>light/combobox/core_dropdown_menu.png</file> - <file>light/combobox/core_dropdown_menuup.png</file> - <file>light/combobox/core_listitem_active.png</file> - <file>light/listitem/core_listitem_active.png</file> - <file>light/listitem/core_listitem_divider.png</file> - </qresource> -</RCC> diff --git a/src/plugins/styles/bb10style/bb10style.pro b/src/plugins/styles/bb10style/bb10style.pro deleted file mode 100644 index 7cee788031..0000000000 --- a/src/plugins/styles/bb10style/bb10style.pro +++ /dev/null @@ -1,26 +0,0 @@ -TARGET = bb10styleplugin - -PLUGIN_TYPE = styles -PLUGIN_CLASS_NAME = BlackBerry10StylePlugin -load(qt_plugin) - -INCLUDEPATH += $$PWD - -QT += widgets - -HEADERS += \ - qbb10brightstyle.h \ - qbb10darkstyle.h \ - qbb10styleplugin.h - -SOURCES += \ - qbb10brightstyle.cpp \ - qbb10darkstyle.cpp \ - qbb10styleplugin.cpp - -RESOURCES += \ - qbb10brightstyle.qrc \ - qbb10darkstyle.qrc - -OTHER_FILES += qbb10styleplugin.json - diff --git a/src/plugins/styles/bb10style/bright/button/core_button_disabled.png b/src/plugins/styles/bb10style/bright/button/core_button_disabled.png Binary files differdeleted file mode 100644 index 578a2383b8..0000000000 --- a/src/plugins/styles/bb10style/bright/button/core_button_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/button/core_button_disabled_selected.png b/src/plugins/styles/bb10style/bright/button/core_button_disabled_selected.png Binary files differdeleted file mode 100644 index 7cd998af46..0000000000 --- a/src/plugins/styles/bb10style/bright/button/core_button_disabled_selected.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/button/core_button_enabled_selected.png b/src/plugins/styles/bb10style/bright/button/core_button_enabled_selected.png Binary files differdeleted file mode 100644 index ff0850f616..0000000000 --- a/src/plugins/styles/bb10style/bright/button/core_button_enabled_selected.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/button/core_button_inactive.png b/src/plugins/styles/bb10style/bright/button/core_button_inactive.png Binary files differdeleted file mode 100644 index 7769f15e44..0000000000 --- a/src/plugins/styles/bb10style/bright/button/core_button_inactive.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/button/core_button_pressed.png b/src/plugins/styles/bb10style/bright/button/core_button_pressed.png Binary files differdeleted file mode 100644 index 59b5bfa7c2..0000000000 --- a/src/plugins/styles/bb10style/bright/button/core_button_pressed.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_checked.png b/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_checked.png Binary files differdeleted file mode 100644 index c59f60633c..0000000000 --- a/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_checked.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_disabled.png b/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_disabled.png Binary files differdeleted file mode 100644 index 49d9cfdf94..0000000000 --- a/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_disabled_checked.png b/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_disabled_checked.png Binary files differdeleted file mode 100644 index 35751553e1..0000000000 --- a/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_disabled_checked.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_enabled.png b/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_enabled.png Binary files differdeleted file mode 100644 index 2a0c56b503..0000000000 --- a/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_enabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_pressed.png b/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_pressed.png Binary files differdeleted file mode 100644 index f1c2ee3bed..0000000000 --- a/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_pressed.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_pressed_checked.png b/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_pressed_checked.png Binary files differdeleted file mode 100644 index d58df47cbf..0000000000 --- a/src/plugins/styles/bb10style/bright/checkbox/core_checkbox_pressed_checked.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button.png b/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button.png Binary files differdeleted file mode 100644 index 1aa844309f..0000000000 --- a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_arrowdown.png b/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_arrowdown.png Binary files differdeleted file mode 100644 index 9ac049fb3d..0000000000 --- a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_arrowdown.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_arrowdown_pressed.png b/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_arrowdown_pressed.png Binary files differdeleted file mode 100644 index d11af56b71..0000000000 --- a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_arrowdown_pressed.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_arrowup.png b/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_arrowup.png Binary files differdeleted file mode 100644 index d10779d8d7..0000000000 --- a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_arrowup.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_disabled.png b/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_disabled.png Binary files differdeleted file mode 100644 index f9e1c9465b..0000000000 --- a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_pressed.png b/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_pressed.png Binary files differdeleted file mode 100644 index 27a321e387..0000000000 --- a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_button_pressed.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_checkmark.png b/src/plugins/styles/bb10style/bright/combobox/core_dropdown_checkmark.png Binary files differdeleted file mode 100644 index a8270aed56..0000000000 --- a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_checkmark.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_divider.png b/src/plugins/styles/bb10style/bright/combobox/core_dropdown_divider.png Binary files differdeleted file mode 100644 index 0198293ad6..0000000000 --- a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_divider.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_menu.png b/src/plugins/styles/bb10style/bright/combobox/core_dropdown_menu.png Binary files differdeleted file mode 100644 index 47e7b2d4b6..0000000000 --- a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_menu.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_menuup.png b/src/plugins/styles/bb10style/bright/combobox/core_dropdown_menuup.png Binary files differdeleted file mode 100644 index 2bde84e71d..0000000000 --- a/src/plugins/styles/bb10style/bright/combobox/core_dropdown_menuup.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/combobox/core_listitem_active.png b/src/plugins/styles/bb10style/bright/combobox/core_listitem_active.png Binary files differdeleted file mode 100644 index 4935d13c05..0000000000 --- a/src/plugins/styles/bb10style/bright/combobox/core_listitem_active.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/lineedit/core_textinput_bg.png b/src/plugins/styles/bb10style/bright/lineedit/core_textinput_bg.png Binary files differdeleted file mode 100644 index 07b8ea21bf..0000000000 --- a/src/plugins/styles/bb10style/bright/lineedit/core_textinput_bg.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/lineedit/core_textinput_bg_disabled.png b/src/plugins/styles/bb10style/bright/lineedit/core_textinput_bg_disabled.png Binary files differdeleted file mode 100644 index ab1083e9fa..0000000000 --- a/src/plugins/styles/bb10style/bright/lineedit/core_textinput_bg_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/lineedit/core_textinput_bg_highlight.png b/src/plugins/styles/bb10style/bright/lineedit/core_textinput_bg_highlight.png Binary files differdeleted file mode 100644 index 55f8aee066..0000000000 --- a/src/plugins/styles/bb10style/bright/lineedit/core_textinput_bg_highlight.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/listitem/core_listitem_active.png b/src/plugins/styles/bb10style/bright/listitem/core_listitem_active.png Binary files differdeleted file mode 100644 index 34daccc27e..0000000000 --- a/src/plugins/styles/bb10style/bright/listitem/core_listitem_active.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/listitem/core_listitem_divider.png b/src/plugins/styles/bb10style/bright/listitem/core_listitem_divider.png Binary files differdeleted file mode 100644 index 7a1e22321d..0000000000 --- a/src/plugins/styles/bb10style/bright/listitem/core_listitem_divider.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_bg.png b/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_bg.png Binary files differdeleted file mode 100644 index 3ff930dea7..0000000000 --- a/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_bg.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_complete.png b/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_complete.png Binary files differdeleted file mode 100644 index 87974668ff..0000000000 --- a/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_complete.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_fill.png b/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_fill.png Binary files differdeleted file mode 100644 index 8ff257dad3..0000000000 --- a/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_fill.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_vbg.png b/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_vbg.png Binary files differdeleted file mode 100644 index 66cf8cac8f..0000000000 --- a/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_vbg.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_vcomplete.png b/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_vcomplete.png Binary files differdeleted file mode 100644 index f18e0abafb..0000000000 --- a/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_vcomplete.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_vfill.png b/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_vfill.png Binary files differdeleted file mode 100644 index 94e388a7aa..0000000000 --- a/src/plugins/styles/bb10style/bright/progressbar/core_progressindicator_vfill.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_checked.png b/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_checked.png Binary files differdeleted file mode 100644 index 5dc5e52d88..0000000000 --- a/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_checked.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_disabled.png b/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_disabled.png Binary files differdeleted file mode 100644 index 077aa79c65..0000000000 --- a/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_disabled_checked.png b/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_disabled_checked.png Binary files differdeleted file mode 100644 index 439499040a..0000000000 --- a/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_disabled_checked.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_inactive.png b/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_inactive.png Binary files differdeleted file mode 100644 index cb4c6a8136..0000000000 --- a/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_inactive.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_pressed.png b/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_pressed.png Binary files differdeleted file mode 100644 index 88fd1344d2..0000000000 --- a/src/plugins/styles/bb10style/bright/radiobutton/core_radiobutton_pressed.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/scrollbar/core_scrollbar.png b/src/plugins/styles/bb10style/bright/scrollbar/core_scrollbar.png Binary files differdeleted file mode 100644 index 79154e0568..0000000000 --- a/src/plugins/styles/bb10style/bright/scrollbar/core_scrollbar.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/scrollbar/core_scrollbar_v.png b/src/plugins/styles/bb10style/bright/scrollbar/core_scrollbar_v.png Binary files differdeleted file mode 100644 index 169a4e1656..0000000000 --- a/src/plugins/styles/bb10style/bright/scrollbar/core_scrollbar_v.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_active.png b/src/plugins/styles/bb10style/bright/slider/core_slider_active.png Binary files differdeleted file mode 100644 index c23c0ebc26..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_active.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_cache.png b/src/plugins/styles/bb10style/bright/slider/core_slider_cache.png Binary files differdeleted file mode 100644 index 6b7224d702..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_cache.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_disabled.png b/src/plugins/styles/bb10style/bright/slider/core_slider_disabled.png Binary files differdeleted file mode 100644 index 9de7567e68..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_enabled.png b/src/plugins/styles/bb10style/bright/slider/core_slider_enabled.png Binary files differdeleted file mode 100644 index ad5c35076c..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_enabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_handle.png b/src/plugins/styles/bb10style/bright/slider/core_slider_handle.png Binary files differdeleted file mode 100644 index 076e272794..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_handle.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_handle_disabled.png b/src/plugins/styles/bb10style/bright/slider/core_slider_handle_disabled.png Binary files differdeleted file mode 100644 index 5989fcaaeb..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_handle_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_handle_pressed.png b/src/plugins/styles/bb10style/bright/slider/core_slider_handle_pressed.png Binary files differdeleted file mode 100644 index 8cb79118b9..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_handle_pressed.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_inactive.png b/src/plugins/styles/bb10style/bright/slider/core_slider_inactive.png Binary files differdeleted file mode 100644 index 8836534923..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_inactive.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_vactive.png b/src/plugins/styles/bb10style/bright/slider/core_slider_vactive.png Binary files differdeleted file mode 100644 index 03062326f2..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_vactive.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_vcache.png b/src/plugins/styles/bb10style/bright/slider/core_slider_vcache.png Binary files differdeleted file mode 100644 index b0d94d7127..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_vcache.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_vdisabled.png b/src/plugins/styles/bb10style/bright/slider/core_slider_vdisabled.png Binary files differdeleted file mode 100644 index ce99b1a3ac..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_vdisabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_venabled.png b/src/plugins/styles/bb10style/bright/slider/core_slider_venabled.png Binary files differdeleted file mode 100644 index 910b6627d4..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_venabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/bright/slider/core_slider_vinactive.png b/src/plugins/styles/bb10style/bright/slider/core_slider_vinactive.png Binary files differdeleted file mode 100644 index 18a9819af8..0000000000 --- a/src/plugins/styles/bb10style/bright/slider/core_slider_vinactive.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/button/core_button_disabled.png b/src/plugins/styles/bb10style/dark/button/core_button_disabled.png Binary files differdeleted file mode 100644 index 79245dbf11..0000000000 --- a/src/plugins/styles/bb10style/dark/button/core_button_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/button/core_button_disabled_selected.png b/src/plugins/styles/bb10style/dark/button/core_button_disabled_selected.png Binary files differdeleted file mode 100644 index 5eb86b70f3..0000000000 --- a/src/plugins/styles/bb10style/dark/button/core_button_disabled_selected.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/button/core_button_enabled_selected.png b/src/plugins/styles/bb10style/dark/button/core_button_enabled_selected.png Binary files differdeleted file mode 100644 index 7b1a6ce40b..0000000000 --- a/src/plugins/styles/bb10style/dark/button/core_button_enabled_selected.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/button/core_button_inactive.png b/src/plugins/styles/bb10style/dark/button/core_button_inactive.png Binary files differdeleted file mode 100644 index 97842e1ac4..0000000000 --- a/src/plugins/styles/bb10style/dark/button/core_button_inactive.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/button/core_button_pressed.png b/src/plugins/styles/bb10style/dark/button/core_button_pressed.png Binary files differdeleted file mode 100644 index c149b64a26..0000000000 --- a/src/plugins/styles/bb10style/dark/button/core_button_pressed.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_checked.png b/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_checked.png Binary files differdeleted file mode 100644 index 5a8af33094..0000000000 --- a/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_checked.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_disabled.png b/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_disabled.png Binary files differdeleted file mode 100644 index 74a24522fa..0000000000 --- a/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_disabled_checked.png b/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_disabled_checked.png Binary files differdeleted file mode 100644 index 1e953221b6..0000000000 --- a/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_disabled_checked.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_enabled.png b/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_enabled.png Binary files differdeleted file mode 100644 index 5e51e7f39b..0000000000 --- a/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_enabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_pressed.png b/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_pressed.png Binary files differdeleted file mode 100644 index 507a77b3ea..0000000000 --- a/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_pressed.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_pressed_checked.png b/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_pressed_checked.png Binary files differdeleted file mode 100644 index 7fa85428a0..0000000000 --- a/src/plugins/styles/bb10style/dark/checkbox/core_checkbox_pressed_checked.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button.png b/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button.png Binary files differdeleted file mode 100644 index a68d93acb5..0000000000 --- a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_arrowdown.png b/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_arrowdown.png Binary files differdeleted file mode 100644 index 4c1d085360..0000000000 --- a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_arrowdown.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_arrowdown_pressed.png b/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_arrowdown_pressed.png Binary files differdeleted file mode 100644 index 1ee578e07c..0000000000 --- a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_arrowdown_pressed.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_arrowup.png b/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_arrowup.png Binary files differdeleted file mode 100644 index 3239ef4bd6..0000000000 --- a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_arrowup.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_disabled.png b/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_disabled.png Binary files differdeleted file mode 100644 index af6793b87c..0000000000 --- a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_pressed.png b/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_pressed.png Binary files differdeleted file mode 100644 index df6d402554..0000000000 --- a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_button_pressed.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_checkmark.png b/src/plugins/styles/bb10style/dark/combobox/core_dropdown_checkmark.png Binary files differdeleted file mode 100644 index 578c80aa5f..0000000000 --- a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_checkmark.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_divider.png b/src/plugins/styles/bb10style/dark/combobox/core_dropdown_divider.png Binary files differdeleted file mode 100644 index 43b1025d36..0000000000 --- a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_divider.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_menu.png b/src/plugins/styles/bb10style/dark/combobox/core_dropdown_menu.png Binary files differdeleted file mode 100644 index 1f52362050..0000000000 --- a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_menu.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_menuup.png b/src/plugins/styles/bb10style/dark/combobox/core_dropdown_menuup.png Binary files differdeleted file mode 100644 index 62c7a2e558..0000000000 --- a/src/plugins/styles/bb10style/dark/combobox/core_dropdown_menuup.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/combobox/core_listitem_active.png b/src/plugins/styles/bb10style/dark/combobox/core_listitem_active.png Binary files differdeleted file mode 100644 index 1df4a7aad9..0000000000 --- a/src/plugins/styles/bb10style/dark/combobox/core_listitem_active.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/lineedit/core_textinput_bg.png b/src/plugins/styles/bb10style/dark/lineedit/core_textinput_bg.png Binary files differdeleted file mode 100644 index 07b8ea21bf..0000000000 --- a/src/plugins/styles/bb10style/dark/lineedit/core_textinput_bg.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/lineedit/core_textinput_bg_disabled.png b/src/plugins/styles/bb10style/dark/lineedit/core_textinput_bg_disabled.png Binary files differdeleted file mode 100644 index 6bcaf91f87..0000000000 --- a/src/plugins/styles/bb10style/dark/lineedit/core_textinput_bg_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/lineedit/core_textinput_bg_highlight.png b/src/plugins/styles/bb10style/dark/lineedit/core_textinput_bg_highlight.png Binary files differdeleted file mode 100644 index 9b115897e8..0000000000 --- a/src/plugins/styles/bb10style/dark/lineedit/core_textinput_bg_highlight.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/listitem/core_listitem_active.png b/src/plugins/styles/bb10style/dark/listitem/core_listitem_active.png Binary files differdeleted file mode 100644 index 52aa4e4aa2..0000000000 --- a/src/plugins/styles/bb10style/dark/listitem/core_listitem_active.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/listitem/core_listitem_divider.png b/src/plugins/styles/bb10style/dark/listitem/core_listitem_divider.png Binary files differdeleted file mode 100644 index 39e3a8a4f5..0000000000 --- a/src/plugins/styles/bb10style/dark/listitem/core_listitem_divider.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_bg.png b/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_bg.png Binary files differdeleted file mode 100644 index 95fcafb437..0000000000 --- a/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_bg.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_complete.png b/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_complete.png Binary files differdeleted file mode 100644 index e849c8f179..0000000000 --- a/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_complete.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_fill.png b/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_fill.png Binary files differdeleted file mode 100644 index e8fd3b0173..0000000000 --- a/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_fill.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_vbg.png b/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_vbg.png Binary files differdeleted file mode 100644 index 1433f3ec33..0000000000 --- a/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_vbg.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_vcomplete.png b/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_vcomplete.png Binary files differdeleted file mode 100644 index d750e4671c..0000000000 --- a/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_vcomplete.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_vfill.png b/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_vfill.png Binary files differdeleted file mode 100644 index 2c3c0a5e6c..0000000000 --- a/src/plugins/styles/bb10style/dark/progressbar/core_progressindicator_vfill.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_checked.png b/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_checked.png Binary files differdeleted file mode 100644 index 1721586ac5..0000000000 --- a/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_checked.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_disabled.png b/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_disabled.png Binary files differdeleted file mode 100644 index e646c9174b..0000000000 --- a/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_disabled_checked.png b/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_disabled_checked.png Binary files differdeleted file mode 100644 index 93b3118e8d..0000000000 --- a/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_disabled_checked.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_inactive.png b/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_inactive.png Binary files differdeleted file mode 100644 index fd61937d65..0000000000 --- a/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_inactive.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_pressed.png b/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_pressed.png Binary files differdeleted file mode 100644 index 58a1a57b4c..0000000000 --- a/src/plugins/styles/bb10style/dark/radiobutton/core_radiobutton_pressed.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/scrollbar/core_scrollbar.png b/src/plugins/styles/bb10style/dark/scrollbar/core_scrollbar.png Binary files differdeleted file mode 100644 index 384f60758a..0000000000 --- a/src/plugins/styles/bb10style/dark/scrollbar/core_scrollbar.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/scrollbar/core_scrollbar_v.png b/src/plugins/styles/bb10style/dark/scrollbar/core_scrollbar_v.png Binary files differdeleted file mode 100644 index 2542f2acaf..0000000000 --- a/src/plugins/styles/bb10style/dark/scrollbar/core_scrollbar_v.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_active.png b/src/plugins/styles/bb10style/dark/slider/core_slider_active.png Binary files differdeleted file mode 100644 index 6bdb413ced..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_active.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_cache.png b/src/plugins/styles/bb10style/dark/slider/core_slider_cache.png Binary files differdeleted file mode 100644 index eea5b3d78e..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_cache.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_disabled.png b/src/plugins/styles/bb10style/dark/slider/core_slider_disabled.png Binary files differdeleted file mode 100644 index 6a233315e4..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_enabled.png b/src/plugins/styles/bb10style/dark/slider/core_slider_enabled.png Binary files differdeleted file mode 100644 index 2b297e5ca2..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_enabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_handle.png b/src/plugins/styles/bb10style/dark/slider/core_slider_handle.png Binary files differdeleted file mode 100644 index fbd37e5584..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_handle.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_handle_disabled.png b/src/plugins/styles/bb10style/dark/slider/core_slider_handle_disabled.png Binary files differdeleted file mode 100644 index 49cb6a42a7..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_handle_disabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_handle_pressed.png b/src/plugins/styles/bb10style/dark/slider/core_slider_handle_pressed.png Binary files differdeleted file mode 100644 index 803c374015..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_handle_pressed.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_inactive.png b/src/plugins/styles/bb10style/dark/slider/core_slider_inactive.png Binary files differdeleted file mode 100644 index 08a1aecb6c..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_inactive.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_vactive.png b/src/plugins/styles/bb10style/dark/slider/core_slider_vactive.png Binary files differdeleted file mode 100644 index c8e467d9e6..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_vactive.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_vcache.png b/src/plugins/styles/bb10style/dark/slider/core_slider_vcache.png Binary files differdeleted file mode 100644 index ff160cbb1d..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_vcache.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_vdisabled.png b/src/plugins/styles/bb10style/dark/slider/core_slider_vdisabled.png Binary files differdeleted file mode 100644 index 27d348122b..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_vdisabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_venabled.png b/src/plugins/styles/bb10style/dark/slider/core_slider_venabled.png Binary files differdeleted file mode 100644 index ff8a74a19f..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_venabled.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/dark/slider/core_slider_vinactive.png b/src/plugins/styles/bb10style/dark/slider/core_slider_vinactive.png Binary files differdeleted file mode 100644 index b2b19a5460..0000000000 --- a/src/plugins/styles/bb10style/dark/slider/core_slider_vinactive.png +++ /dev/null diff --git a/src/plugins/styles/bb10style/qbb10brightstyle.cpp b/src/plugins/styles/bb10style/qbb10brightstyle.cpp deleted file mode 100644 index 9f14e3b134..0000000000 --- a/src/plugins/styles/bb10style/qbb10brightstyle.cpp +++ /dev/null @@ -1,344 +0,0 @@ -/*************************************************************************** -** -** Copyright (C) 2014 BlackBerry Limited. All rights reserved. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the plugins of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL21$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** As a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qbb10brightstyle.h" - -#include <QApplication> -#include <QFont> -#include <QStyleOption> -#include <QProgressBar> -#include <QComboBox> -#include <QAbstractItemView> -#include <QPainter> - -QT_BEGIN_NAMESPACE - -QBB10BrightStyle::QBB10BrightStyle() : - QPixmapStyle() -{ - addDescriptor(PB_Enabled, - QLatin1String("://bright/button/core_button_inactive.png"), - QMargins(13, 13, 13, 13), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_Checked, - QLatin1String("://bright/button/core_button_enabled_selected.png"), - QMargins(13, 13, 13, 13), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_Pressed, - QLatin1String("://bright/button/core_button_pressed.png"), - QMargins(13, 13, 13, 13), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_Disabled, - QLatin1String("://bright/button/core_button_disabled.png"), - QMargins(13, 13, 13, 13), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_PressedDisabled, - QLatin1String("://bright/button/core_button_disabled_selected.png"), - QMargins(13, 13, 13, 13), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - - addDescriptor(LE_Enabled, - QLatin1String("://bright/lineedit/core_textinput_bg.png"), - QMargins(8, 8, 8, 8)); - addDescriptor(LE_Disabled, - QLatin1String("://bright/lineedit/core_textinput_bg_disabled.png"), - QMargins(8, 8, 8, 8)); - addDescriptor(LE_Focused, - QLatin1String("://bright/lineedit/core_textinput_bg_highlight.png"), - QMargins(8, 8, 8, 8)); - - copyDescriptor(LE_Enabled, TE_Enabled); - copyDescriptor(LE_Disabled, TE_Disabled); - copyDescriptor(LE_Focused, TE_Focused); - - addPixmap(CB_Enabled, - QLatin1String("://bright/checkbox/core_checkbox_enabled.png"), - QMargins(16, 16, 16, 16)); - addPixmap(CB_Checked, - QLatin1String("://bright/checkbox/core_checkbox_checked.png"), - QMargins(16, 16, 16, 16)); - addPixmap(CB_Pressed, - QLatin1String("://bright/checkbox/core_checkbox_pressed.png"), - QMargins(16, 16, 16, 16)); - addPixmap(CB_PressedChecked, - QLatin1String("://bright/checkbox/core_checkbox_pressed_checked.png"), - QMargins(16, 16, 16, 16)); - addPixmap(CB_Disabled, - QLatin1String("://bright/checkbox/core_checkbox_disabled.png"), - QMargins(16, 16, 16, 16)); - addPixmap(CB_DisabledChecked, - QLatin1String("://bright/checkbox/core_checkbox_disabled_checked.png"), - QMargins(16, 16, 16, 16)); - - addPixmap(RB_Enabled, - QLatin1String("://bright/radiobutton/core_radiobutton_inactive.png"), - QMargins(16, 16, 16, 16)); - addPixmap(RB_Checked, - QLatin1String("://bright/radiobutton/core_radiobutton_checked.png"), - QMargins(16, 16, 16, 16)); - addPixmap(RB_Pressed, - QLatin1String("://bright/radiobutton/core_radiobutton_pressed.png"), - QMargins(16, 16, 16, 16)); - addPixmap(RB_Disabled, - QLatin1String("://bright/radiobutton/core_radiobutton_disabled.png"), - QMargins(16, 16, 16, 16)); - addPixmap(RB_DisabledChecked, - QLatin1String("://bright/radiobutton/core_radiobutton_disabled_checked.png"), - QMargins(16, 16, 16, 16)); - - addDescriptor(PB_HBackground, - QLatin1String("://bright/progressbar/core_progressindicator_bg.png"), - QMargins(10, 10, 10, 10), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_HContent, - QLatin1String("://bright/progressbar/core_progressindicator_fill.png"), - QMargins(10, 10, 10, 10), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_HComplete, - QLatin1String("://bright/progressbar/core_progressindicator_complete.png"), - QMargins(10, 10, 10, 10), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_VBackground, - QLatin1String("://bright/progressbar/core_progressindicator_vbg.png"), - QMargins(10, 10, 10, 10), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - addDescriptor(PB_VContent, - QLatin1String("://bright/progressbar/core_progressindicator_vfill.png"), - QMargins(10, 10, 10, 10), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - addDescriptor(PB_VComplete, - QLatin1String("://bright/progressbar/core_progressindicator_vcomplete.png"), - QMargins(10, 10, 10, 10), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - - addDescriptor(SG_HEnabled, - QLatin1String("://bright/slider/core_slider_enabled.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(SG_HDisabled, - QLatin1String("://bright/slider/core_slider_disabled.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(SG_HActiveEnabled, - QLatin1String("://bright/slider/core_slider_inactive.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(SG_HActivePressed, - QLatin1String("://bright/slider/core_slider_active.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(SG_HActiveDisabled, - QLatin1String("://bright/slider/core_slider_cache.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(SG_VEnabled, - QLatin1String("://bright/slider/core_slider_venabled.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - addDescriptor(SG_VDisabled, - QLatin1String("://bright/slider/core_slider_vdisabled.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - addDescriptor(SG_VActiveEnabled, - QLatin1String("://bright/slider/core_slider_vinactive.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - addDescriptor(SG_VActivePressed, - QLatin1String("://bright/slider/core_slider_vactive.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - addDescriptor(SG_VActiveDisabled, - QLatin1String("://bright/slider/core_slider_vcache.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - - addPixmap(SH_HEnabled, - QLatin1String("://bright/slider/core_slider_handle.png")); - addPixmap(SH_HDisabled, - QLatin1String("://bright/slider/core_slider_handle_disabled.png")); - addPixmap(SH_HPressed, - QLatin1String("://bright/slider/core_slider_handle_pressed.png")); - addPixmap(SH_VEnabled, - QLatin1String("://bright/slider/core_slider_handle.png")); - addPixmap(SH_VDisabled, - QLatin1String("://bright/slider/core_slider_handle_disabled.png")); - addPixmap(SH_VPressed, - QLatin1String("://bright/slider/core_slider_handle_pressed.png")); - - addDescriptor(DD_ButtonEnabled, - QLatin1String("://bright/combobox/core_dropdown_button.png"), - QMargins(14, 14, 14, 14), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(DD_ButtonDisabled, - QLatin1String("://bright/combobox/core_dropdown_button_disabled.png"), - QMargins(14, 14, 14, 14), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(DD_ButtonPressed, - QLatin1String("://bright/combobox/core_dropdown_button_pressed.png"), - QMargins(14, 14, 14, 14), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(DD_ItemSelected, - QLatin1String("://bright/combobox/core_listitem_active.png")); - - addPixmap(DD_ArrowEnabled, - QLatin1String("://bright/combobox/core_dropdown_button_arrowdown.png"), - QMargins(35, 39, 35, 39)); - copyPixmap(DD_ArrowEnabled, DD_ArrowDisabled); - addPixmap(DD_ArrowPressed, - QLatin1String("://bright/combobox/core_dropdown_button_arrowdown_pressed.png"), - QMargins(35, 39, 35, 39)); - addPixmap(DD_ArrowOpen, - QLatin1String("://bright/combobox/core_dropdown_button_arrowup.png"), - QMargins(35, 39, 35, 39)); - addDescriptor(DD_PopupDown, - QLatin1String("://bright/combobox/core_dropdown_menu.png"), - QMargins(12, 12, 12, 12), - QTileRules(Qt::StretchTile, Qt::StretchTile)); - addDescriptor(DD_PopupUp, - QLatin1String("://bright/combobox/core_dropdown_menuup.png"), - QMargins(12, 12, 12, 12), - QTileRules(Qt::StretchTile, Qt::StretchTile)); - addPixmap(DD_ItemSeparator, - QLatin1String("://bright/combobox/core_dropdown_divider.png"), - QMargins(5, 0, 5, 0)); - - addDescriptor(ID_Selected, - QLatin1String("://bright/listitem/core_listitem_active.png")); - addPixmap(ID_Separator, - QLatin1String("://bright/listitem/core_listitem_divider.png")); - - addDescriptor(SB_Horizontal, - QLatin1String("://bright/scrollbar/core_scrollbar.png"), - QMargins(7, 8, 7, 8), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(SB_Vertical, - QLatin1String("://bright/scrollbar/core_scrollbar_v.png"), - QMargins(8, 7, 8, 7), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); -} - -QBB10BrightStyle::~QBB10BrightStyle() -{ -} - -void QBB10BrightStyle::polish(QApplication *application) -{ - QPixmapStyle::polish(application); -} - -void QBB10BrightStyle::polish(QWidget *widget) -{ - // Hide the text by default - if (QProgressBar *pb = qobject_cast<QProgressBar*>(widget)) - pb->setTextVisible(false); - - if (QComboBox *cb = qobject_cast<QComboBox*>(widget)) { - QAbstractItemView *list = cb->view(); - QPalette p = list->palette(); - p.setBrush(QPalette::HighlightedText, p.brush(QPalette::Text)); - list->setPalette(p); - } - - if (qobject_cast<QAbstractItemView*>(widget)) { - QPalette p = widget->palette(); - p.setBrush(QPalette::Disabled, QPalette::HighlightedText, p.brush(QPalette::Text)); - widget->setPalette(p); - } - - QPixmapStyle::polish(widget); -} - -QPalette QBB10BrightStyle::standardPalette() const -{ - QPalette p; - - QColor color = QColor(38, 38, 38); - p.setBrush(QPalette::ButtonText, color); - p.setBrush(QPalette::WindowText, color); - p.setBrush(QPalette::Text, color); - - color.setAlpha(179); - p.setBrush(QPalette::Disabled, QPalette::ButtonText, color); - p.setBrush(QPalette::Disabled, QPalette::WindowText, color); - p.setBrush(QPalette::Disabled, QPalette::Text, color); - - p.setColor(QPalette::Window, QColor(248, 248, 248)); - - p.setBrush(QPalette::Highlight, QColor(0, 168, 223)); - p.setBrush(QPalette::HighlightedText, QColor(250, 250,250)); - - return p; -} - -void QBB10BrightStyle::drawControl(QStyle::ControlElement element, const QStyleOption *option, - QPainter *painter, const QWidget *widget) const -{ - switch (element) { - case CE_PushButtonLabel: - { - const bool on = option->state & State_On || option->state & State_Sunken; - const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton*>(option); - QStyleOptionButton newOpt = *button; - if (on) - newOpt.palette.setBrush(QPalette::ButtonText, QColor(250, 250, 250)); - QPixmapStyle::drawControl(CE_PushButtonLabel, &newOpt, painter, widget); - break; - } - case CE_ProgressBarLabel: - // Don't draw the progress bar label - break; - default: - QPixmapStyle::drawControl(element, option, painter, widget); - } -} - -void QBB10BrightStyle::drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption *option, - QPainter *painter, const QWidget *widget) const -{ - QPixmapStyle::drawPrimitive(element, option, painter, widget); - - if (element == PE_PanelItemViewItem) { - // Draw the checkbox for current item - if (widget->property("_pixmap_combobox_list").toBool() - && option->state & QStyle::State_Selected) { - QPixmap pix(QLatin1String("://bright/combobox/core_dropdown_checkmark.png")); - QRect rect = option->rect; - const int margin = rect.height() / 2; - QPoint pos(rect.right() - margin - pix.width() / 2, - rect.top() + margin - pix.height() / 2); - painter->drawPixmap(pos, pix); - } - } -} - -QT_END_NAMESPACE diff --git a/src/plugins/styles/bb10style/qbb10brightstyle.h b/src/plugins/styles/bb10style/qbb10brightstyle.h deleted file mode 100644 index cc177370bc..0000000000 --- a/src/plugins/styles/bb10style/qbb10brightstyle.h +++ /dev/null @@ -1,62 +0,0 @@ -/*************************************************************************** -** -** Copyright (C) 2014 BlackBerry Limited. All rights reserved. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the plugins of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL21$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** As a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QBB10BRIGHTSTYLE_H -#define QBB10BRIGHTSTYLE_H - -#include <QPixmapStyle> - -QT_BEGIN_NAMESPACE - -class QBB10BrightStyle : public QPixmapStyle -{ - Q_OBJECT - -public: - QBB10BrightStyle(); - ~QBB10BrightStyle(); - - void polish(QApplication *application); - void polish(QWidget *widget); - - QPalette standardPalette() const; - - void drawControl(ControlElement element, const QStyleOption *option, - QPainter *painter, const QWidget *widget = 0) const; - void drawPrimitive(PrimitiveElement element, const QStyleOption *option, - QPainter *painter, const QWidget *widget) const; -}; - -QT_END_NAMESPACE - -#endif // QBB10BRIGHTSTYLE_H diff --git a/src/plugins/styles/bb10style/qbb10brightstyle.qrc b/src/plugins/styles/bb10style/qbb10brightstyle.qrc deleted file mode 100644 index 2172536fa3..0000000000 --- a/src/plugins/styles/bb10style/qbb10brightstyle.qrc +++ /dev/null @@ -1,57 +0,0 @@ -<RCC> - <qresource prefix="/"> - <file>bright/button/core_button_disabled.png</file> - <file>bright/button/core_button_disabled_selected.png</file> - <file>bright/button/core_button_inactive.png</file> - <file>bright/button/core_button_enabled_selected.png</file> - <file>bright/button/core_button_pressed.png</file> - <file>bright/checkbox/core_checkbox_checked.png</file> - <file>bright/checkbox/core_checkbox_disabled.png</file> - <file>bright/checkbox/core_checkbox_disabled_checked.png</file> - <file>bright/checkbox/core_checkbox_enabled.png</file> - <file>bright/checkbox/core_checkbox_pressed.png</file> - <file>bright/checkbox/core_checkbox_pressed_checked.png</file> - <file>bright/combobox/core_dropdown_button.png</file> - <file>bright/combobox/core_dropdown_button_arrowdown.png</file> - <file>bright/combobox/core_dropdown_button_arrowdown_pressed.png</file> - <file>bright/combobox/core_dropdown_button_arrowup.png</file> - <file>bright/combobox/core_dropdown_button_disabled.png</file> - <file>bright/combobox/core_dropdown_button_pressed.png</file> - <file>bright/combobox/core_dropdown_checkmark.png</file> - <file>bright/combobox/core_dropdown_divider.png</file> - <file>bright/combobox/core_dropdown_menu.png</file> - <file>bright/combobox/core_dropdown_menuup.png</file> - <file>bright/combobox/core_listitem_active.png</file> - <file>bright/lineedit/core_textinput_bg.png</file> - <file>bright/lineedit/core_textinput_bg_disabled.png</file> - <file>bright/lineedit/core_textinput_bg_highlight.png</file> - <file>bright/listitem/core_listitem_active.png</file> - <file>bright/listitem/core_listitem_divider.png</file> - <file>bright/progressbar/core_progressindicator_bg.png</file> - <file>bright/progressbar/core_progressindicator_complete.png</file> - <file>bright/progressbar/core_progressindicator_fill.png</file> - <file>bright/progressbar/core_progressindicator_vbg.png</file> - <file>bright/progressbar/core_progressindicator_vcomplete.png</file> - <file>bright/progressbar/core_progressindicator_vfill.png</file> - <file>bright/radiobutton/core_radiobutton_checked.png</file> - <file>bright/radiobutton/core_radiobutton_disabled.png</file> - <file>bright/radiobutton/core_radiobutton_disabled_checked.png</file> - <file>bright/radiobutton/core_radiobutton_inactive.png</file> - <file>bright/radiobutton/core_radiobutton_pressed.png</file> - <file>bright/scrollbar/core_scrollbar.png</file> - <file>bright/scrollbar/core_scrollbar_v.png</file> - <file>bright/slider/core_slider_active.png</file> - <file>bright/slider/core_slider_cache.png</file> - <file>bright/slider/core_slider_disabled.png</file> - <file>bright/slider/core_slider_enabled.png</file> - <file>bright/slider/core_slider_handle.png</file> - <file>bright/slider/core_slider_handle_disabled.png</file> - <file>bright/slider/core_slider_handle_pressed.png</file> - <file>bright/slider/core_slider_inactive.png</file> - <file>bright/slider/core_slider_vactive.png</file> - <file>bright/slider/core_slider_vcache.png</file> - <file>bright/slider/core_slider_vdisabled.png</file> - <file>bright/slider/core_slider_venabled.png</file> - <file>bright/slider/core_slider_vinactive.png</file> - </qresource> -</RCC> diff --git a/src/plugins/styles/bb10style/qbb10darkstyle.cpp b/src/plugins/styles/bb10style/qbb10darkstyle.cpp deleted file mode 100644 index be2697510e..0000000000 --- a/src/plugins/styles/bb10style/qbb10darkstyle.cpp +++ /dev/null @@ -1,349 +0,0 @@ -/*************************************************************************** -** -** Copyright (C) 2014 BlackBerry Limited. All rights reserved. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the plugins of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL21$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** As a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qbb10darkstyle.h" - -#include <QApplication> -#include <QFont> -#include <QStyleOption> -#include <QProgressBar> -#include <QComboBox> -#include <QAbstractItemView> -#include <QPainter> -#include <QLineEdit> -#include <QTextEdit> - -QT_BEGIN_NAMESPACE - -QBB10DarkStyle::QBB10DarkStyle() : - QPixmapStyle() -{ - addDescriptor(PB_Enabled, - QLatin1String("://dark/button/core_button_inactive.png"), - QMargins(13, 13, 13, 13), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_Checked, - QLatin1String("://dark/button/core_button_enabled_selected.png"), - QMargins(13, 13, 13, 13), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_Pressed, - QLatin1String("://dark/button/core_button_pressed.png"), - QMargins(13, 13, 13, 13), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_Disabled, - QLatin1String("://dark/button/core_button_disabled.png"), - QMargins(13, 13, 13, 13), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_PressedDisabled, - QLatin1String("://dark/button/core_button_disabled_selected.png"), - QMargins(13, 13, 13, 13), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - - addDescriptor(LE_Enabled, - QLatin1String("://dark/lineedit/core_textinput_bg.png"), - QMargins(8, 8, 8, 8)); - addDescriptor(LE_Disabled, - QLatin1String("://dark/lineedit/core_textinput_bg_disabled.png"), - QMargins(8, 8, 8, 8)); - addDescriptor(LE_Focused, - QLatin1String("://dark/lineedit/core_textinput_bg_highlight.png"), - QMargins(8, 8, 8, 8)); - - copyDescriptor(LE_Enabled, TE_Enabled); - copyDescriptor(LE_Disabled, TE_Disabled); - copyDescriptor(LE_Focused, TE_Focused); - - addPixmap(CB_Enabled, - QLatin1String("://dark/checkbox/core_checkbox_enabled.png"), - QMargins(16, 16, 16, 16)); - addPixmap(CB_Checked, - QLatin1String("://dark/checkbox/core_checkbox_checked.png"), - QMargins(16, 16, 16, 16)); - addPixmap(CB_Pressed, - QLatin1String("://dark/checkbox/core_checkbox_pressed.png"), - QMargins(16, 16, 16, 16)); - addPixmap(CB_PressedChecked, - QLatin1String("://dark/checkbox/core_checkbox_pressed_checked.png"), - QMargins(16, 16, 16, 16)); - addPixmap(CB_Disabled, - QLatin1String("://dark/checkbox/core_checkbox_disabled.png"), - QMargins(16, 16, 16, 16)); - addPixmap(CB_DisabledChecked, - QLatin1String("://dark/checkbox/core_checkbox_disabled_checked.png"), - QMargins(16, 16, 16, 16)); - - addPixmap(RB_Enabled, - QLatin1String("://dark/radiobutton/core_radiobutton_inactive.png"), - QMargins(16, 16, 16, 16)); - addPixmap(RB_Checked, - QLatin1String("://dark/radiobutton/core_radiobutton_checked.png"), - QMargins(16, 16, 16, 16)); - addPixmap(RB_Pressed, - QLatin1String("://dark/radiobutton/core_radiobutton_pressed.png"), - QMargins(16, 16, 16, 16)); - addPixmap(RB_Disabled, - QLatin1String("://dark/radiobutton/core_radiobutton_disabled.png"), - QMargins(16, 16, 16, 16)); - addPixmap(RB_DisabledChecked, - QLatin1String("://dark/radiobutton/core_radiobutton_disabled_checked.png"), - QMargins(16, 16, 16, 16)); - - addDescriptor(PB_HBackground, - QLatin1String("://dark/progressbar/core_progressindicator_bg.png"), - QMargins(10, 10, 10, 10), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_HContent, - QLatin1String("://dark/progressbar/core_progressindicator_fill.png"), - QMargins(10, 10, 10, 10), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_HComplete, - QLatin1String("://dark/progressbar/core_progressindicator_complete.png"), - QMargins(10, 10, 10, 10), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(PB_VBackground, - QLatin1String("://dark/progressbar/core_progressindicator_vbg.png"), - QMargins(10, 10, 10, 10), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - addDescriptor(PB_VContent, - QLatin1String("://dark/progressbar/core_progressindicator_vfill.png"), - QMargins(10, 10, 10, 10), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - addDescriptor(PB_VComplete, - QLatin1String("://dark/progressbar/core_progressindicator_vcomplete.png"), - QMargins(10, 10, 10, 10), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - - addDescriptor(SG_HEnabled, - QLatin1String("://dark/slider/core_slider_enabled.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(SG_HDisabled, - QLatin1String("://dark/slider/core_slider_disabled.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(SG_HActiveEnabled, - QLatin1String("://dark/slider/core_slider_inactive.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(SG_HActivePressed, - QLatin1String("://dark/slider/core_slider_active.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(SG_HActiveDisabled, - QLatin1String("://dark/slider/core_slider_cache.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(SG_VEnabled, - QLatin1String("://dark/slider/core_slider_venabled.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - addDescriptor(SG_VDisabled, - QLatin1String("://dark/slider/core_slider_vdisabled.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - addDescriptor(SG_VActiveEnabled, - QLatin1String("://dark/slider/core_slider_vinactive.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - addDescriptor(SG_VActivePressed, - QLatin1String("://dark/slider/core_slider_vactive.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - addDescriptor(SG_VActiveDisabled, - QLatin1String("://dark/slider/core_slider_vcache.png"), - QMargins(50, 50, 50, 50), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); - - addPixmap(SH_HEnabled, - QLatin1String("://dark/slider/core_slider_handle.png")); - addPixmap(SH_HDisabled, - QLatin1String("://dark/slider/core_slider_handle_disabled.png")); - addPixmap(SH_HPressed, - QLatin1String("://dark/slider/core_slider_handle_pressed.png")); - addPixmap(SH_VEnabled, - QLatin1String("://dark/slider/core_slider_handle.png")); - addPixmap(SH_VDisabled, - QLatin1String("://dark/slider/core_slider_handle_disabled.png")); - addPixmap(SH_VPressed, - QLatin1String("://dark/slider/core_slider_handle_pressed.png")); - - addDescriptor(DD_ButtonEnabled, - QLatin1String("://dark/combobox/core_dropdown_button.png"), - QMargins(14, 14, 14, 14), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(DD_ButtonDisabled, - QLatin1String("://dark/combobox/core_dropdown_button_disabled.png"), - QMargins(14, 14, 14, 14), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(DD_ButtonPressed, - QLatin1String("://dark/combobox/core_dropdown_button_pressed.png"), - QMargins(14, 14, 14, 14), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(DD_ItemSelected, - QLatin1String("://dark/combobox/core_listitem_active.png")); - addPixmap(DD_ArrowEnabled, - QLatin1String("://dark/combobox/core_dropdown_button_arrowdown.png"), - QMargins(35, 39, 35, 39)); - copyPixmap(DD_ArrowEnabled, DD_ArrowDisabled); - addPixmap(DD_ArrowPressed, - QLatin1String("://dark/combobox/core_dropdown_button_arrowdown_pressed.png"), - QMargins(35, 39, 35, 39)); - addPixmap(DD_ArrowOpen, - QLatin1String("://dark/combobox/core_dropdown_button_arrowup.png"), - QMargins(35, 39, 35, 39)); - addDescriptor(DD_PopupDown, - QLatin1String("://dark/combobox/core_dropdown_menu.png"), - QMargins(12, 12, 12, 12), QTileRules(Qt::StretchTile, Qt::StretchTile)); - addDescriptor(DD_PopupUp, - QLatin1String("://dark/combobox/core_dropdown_menuup.png"), - QMargins(12, 12, 12, 12), QTileRules(Qt::StretchTile, Qt::StretchTile)); - addPixmap(DD_ItemSeparator, - QLatin1String("://dark/combobox/core_dropdown_divider.png"), - QMargins(5, 0, 5, 0)); - - addDescriptor(ID_Selected, - QLatin1String("://dark/listitem/core_listitem_active.png")); - addPixmap(ID_Separator, - QLatin1String("://dark/listitem/core_listitem_divider.png")); - - addDescriptor(SB_Horizontal, - QLatin1String("://dark/scrollbar/core_scrollbar.png"), - QMargins(7, 8, 7, 8), - QTileRules(Qt::RepeatTile, Qt::StretchTile)); - addDescriptor(SB_Vertical, - QLatin1String("://dark/scrollbar/core_scrollbar_v.png"), - QMargins(8, 7, 8, 7), - QTileRules(Qt::StretchTile, Qt::RepeatTile)); -} - -QBB10DarkStyle::~QBB10DarkStyle() -{ -} - -void QBB10DarkStyle::polish(QApplication *application) -{ - QPixmapStyle::polish(application); -} - -void QBB10DarkStyle::polish(QWidget *widget) -{ - // Hide the text by default - if (QProgressBar *pb = qobject_cast<QProgressBar*>(widget)) - pb->setTextVisible(false); - - if (QComboBox *cb = qobject_cast<QComboBox*>(widget)) { - QAbstractItemView *list = cb->view(); - QPalette p = list->palette(); - p.setBrush(QPalette::HighlightedText, p.brush(QPalette::Text)); - list->setPalette(p); - } - - if (qobject_cast<QLineEdit*>(widget) || qobject_cast<QTextEdit*>(widget)) { - QPalette p = widget->palette(); - p.setBrush(QPalette::Text, QColor(38, 38, 38)); - widget->setPalette(p); - } - - if (qobject_cast<QAbstractItemView*>(widget)) { - QPalette p = widget->palette(); - p.setBrush(QPalette::Disabled, QPalette::HighlightedText, p.brush(QPalette::Text)); - widget->setPalette(p); - } - - QPixmapStyle::polish(widget); -} - -QPalette QBB10DarkStyle::standardPalette() const -{ - QPalette p; - - QColor color = QColor(250, 250, 250); - p.setBrush(QPalette::ButtonText, color); - p.setBrush(QPalette::WindowText, color); - p.setBrush(QPalette::Text, color); - - color.setAlpha(179); - p.setBrush(QPalette::Disabled, QPalette::ButtonText, color); - p.setBrush(QPalette::Disabled, QPalette::WindowText, color); - p.setBrush(QPalette::Disabled, QPalette::Text, color); - - p.setColor(QPalette::Window, QColor(18, 18, 18)); - - p.setBrush(QPalette::Highlight, QColor(0, 168, 223)); - p.setBrush(QPalette::HighlightedText, QColor(250, 250,250)); - - return p; -} - -void QBB10DarkStyle::drawControl(QStyle::ControlElement element, const QStyleOption *option, - QPainter *painter, const QWidget *widget) const -{ - switch (element) { - case CE_PushButtonLabel: - { - const bool on = option->state & State_On || option->state & State_Sunken; - const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton*>(option); - QStyleOptionButton newOpt = *button; - if (on) - newOpt.palette.setBrush(QPalette::ButtonText, QColor(38, 38, 38)); - QPixmapStyle::drawControl(CE_PushButtonLabel, &newOpt, painter, widget); - break; - } - case CE_ProgressBarLabel: - // Don't draw the progress bar label - break; - default: - QPixmapStyle::drawControl(element, option, painter, widget); - } -} - -void QBB10DarkStyle::drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption *option, - QPainter *painter, const QWidget *widget) const -{ - QPixmapStyle::drawPrimitive(element, option, painter, widget); - - if (element == PE_PanelItemViewItem) { - // Draw the checkbox for current item - if (widget->property("_pixmap_combobox_list").toBool() - && option->state & QStyle::State_Selected) { - QPixmap pix(QLatin1String("://dark/combobox/core_dropdown_checkmark.png")); - QRect rect = option->rect; - const int margin = rect.height() / 2; - QPoint pos(rect.right() - margin - pix.width() / 2, - rect.top() + margin - pix.height() / 2); - painter->drawPixmap(pos, pix); - } - } -} - -QT_END_NAMESPACE diff --git a/src/plugins/styles/bb10style/qbb10darkstyle.h b/src/plugins/styles/bb10style/qbb10darkstyle.h deleted file mode 100644 index df04ea70b5..0000000000 --- a/src/plugins/styles/bb10style/qbb10darkstyle.h +++ /dev/null @@ -1,62 +0,0 @@ -/*************************************************************************** -** -** Copyright (C) 2014 BlackBerry Limited. All rights reserved. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the plugins of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL21$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** As a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QBB10DARKSTYLE_H -#define QBB10DARKSTYLE_H - -#include <QPixmapStyle> - -QT_BEGIN_NAMESPACE - -class QBB10DarkStyle : public QPixmapStyle -{ - Q_OBJECT - -public: - QBB10DarkStyle(); - ~QBB10DarkStyle(); - - void polish(QApplication *application); - void polish(QWidget *widget); - - QPalette standardPalette() const; - - void drawControl(ControlElement element, const QStyleOption *option, - QPainter *painter, const QWidget *widget = 0) const; - void drawPrimitive(PrimitiveElement element, const QStyleOption *option, - QPainter *painter, const QWidget *widget) const; -}; - -QT_END_NAMESPACE - -#endif // QBB10DARKSTYLE_H diff --git a/src/plugins/styles/bb10style/qbb10darkstyle.qrc b/src/plugins/styles/bb10style/qbb10darkstyle.qrc deleted file mode 100644 index 31a5236207..0000000000 --- a/src/plugins/styles/bb10style/qbb10darkstyle.qrc +++ /dev/null @@ -1,57 +0,0 @@ -<RCC> - <qresource prefix="/"> - <file>dark/button/core_button_disabled.png</file> - <file>dark/button/core_button_disabled_selected.png</file> - <file>dark/button/core_button_inactive.png</file> - <file>dark/button/core_button_enabled_selected.png</file> - <file>dark/button/core_button_pressed.png</file> - <file>dark/checkbox/core_checkbox_checked.png</file> - <file>dark/checkbox/core_checkbox_disabled.png</file> - <file>dark/checkbox/core_checkbox_disabled_checked.png</file> - <file>dark/checkbox/core_checkbox_enabled.png</file> - <file>dark/checkbox/core_checkbox_pressed.png</file> - <file>dark/checkbox/core_checkbox_pressed_checked.png</file> - <file>dark/combobox/core_dropdown_button.png</file> - <file>dark/combobox/core_dropdown_button_arrowdown.png</file> - <file>dark/combobox/core_dropdown_button_arrowdown_pressed.png</file> - <file>dark/combobox/core_dropdown_button_arrowup.png</file> - <file>dark/combobox/core_dropdown_button_disabled.png</file> - <file>dark/combobox/core_dropdown_button_pressed.png</file> - <file>dark/combobox/core_dropdown_checkmark.png</file> - <file>dark/combobox/core_dropdown_divider.png</file> - <file>dark/combobox/core_dropdown_menu.png</file> - <file>dark/combobox/core_dropdown_menuup.png</file> - <file>dark/combobox/core_listitem_active.png</file> - <file>dark/lineedit/core_textinput_bg.png</file> - <file>dark/lineedit/core_textinput_bg_disabled.png</file> - <file>dark/lineedit/core_textinput_bg_highlight.png</file> - <file>dark/listitem/core_listitem_active.png</file> - <file>dark/listitem/core_listitem_divider.png</file> - <file>dark/progressbar/core_progressindicator_bg.png</file> - <file>dark/progressbar/core_progressindicator_complete.png</file> - <file>dark/progressbar/core_progressindicator_fill.png</file> - <file>dark/progressbar/core_progressindicator_vbg.png</file> - <file>dark/progressbar/core_progressindicator_vcomplete.png</file> - <file>dark/progressbar/core_progressindicator_vfill.png</file> - <file>dark/radiobutton/core_radiobutton_checked.png</file> - <file>dark/radiobutton/core_radiobutton_disabled.png</file> - <file>dark/radiobutton/core_radiobutton_disabled_checked.png</file> - <file>dark/radiobutton/core_radiobutton_inactive.png</file> - <file>dark/radiobutton/core_radiobutton_pressed.png</file> - <file>dark/scrollbar/core_scrollbar.png</file> - <file>dark/scrollbar/core_scrollbar_v.png</file> - <file>dark/slider/core_slider_active.png</file> - <file>dark/slider/core_slider_cache.png</file> - <file>dark/slider/core_slider_disabled.png</file> - <file>dark/slider/core_slider_enabled.png</file> - <file>dark/slider/core_slider_handle.png</file> - <file>dark/slider/core_slider_handle_disabled.png</file> - <file>dark/slider/core_slider_handle_pressed.png</file> - <file>dark/slider/core_slider_inactive.png</file> - <file>dark/slider/core_slider_vactive.png</file> - <file>dark/slider/core_slider_vcache.png</file> - <file>dark/slider/core_slider_vdisabled.png</file> - <file>dark/slider/core_slider_venabled.png</file> - <file>dark/slider/core_slider_vinactive.png</file> - </qresource> -</RCC> diff --git a/src/plugins/styles/bb10style/qbb10styleplugin.cpp b/src/plugins/styles/bb10style/qbb10styleplugin.cpp deleted file mode 100644 index 98607f174a..0000000000 --- a/src/plugins/styles/bb10style/qbb10styleplugin.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/*************************************************************************** -** -** Copyright (C) 2014 BlackBerry Limited. All rights reserved. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the plugins of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL21$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** As a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qbb10styleplugin.h" -#include "qbb10darkstyle.h" -#include "qbb10brightstyle.h" - -QT_BEGIN_NAMESPACE - -QBB10StylePlugin::QBB10StylePlugin() -{ -} - -QBB10StylePlugin::~QBB10StylePlugin() -{ -} - -QStyle *QBB10StylePlugin::create(const QString &key) -{ - const QString keyLower(key.toLower()); - if (keyLower == QLatin1String("bb10bright")) - return new QBB10BrightStyle; - else if (keyLower == QLatin1String("bb10dark")) - return new QBB10DarkStyle; - - return 0; -} - -QStringList QBB10StylePlugin::keys() const -{ - return QStringList() << QLatin1String("bb10bright") << QLatin1String("bb10dark"); -} - -QT_END_NAMESPACE - -#include "moc_qbb10styleplugin.cpp" diff --git a/src/plugins/styles/bb10style/qbb10styleplugin.h b/src/plugins/styles/bb10style/qbb10styleplugin.h deleted file mode 100644 index 8058e4859e..0000000000 --- a/src/plugins/styles/bb10style/qbb10styleplugin.h +++ /dev/null @@ -1,56 +0,0 @@ -/*************************************************************************** -** -** Copyright (C) 2014 BlackBerry Limited. All rights reserved. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the plugins of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL21$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** As a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QBB10STYLEPLUGIN_H -#define QBB10STYLEPLUGIN_H - -#include <QStylePlugin> - -QT_BEGIN_NAMESPACE - -class QBB10StylePlugin : public QStylePlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE "qbb10styleplugin.json") - -public: - QBB10StylePlugin(); - ~QBB10StylePlugin(); - - QStyle *create(const QString &key); - QStringList keys() const; -}; - -QT_END_NAMESPACE - -#endif // QBB10STYLEPLUGIN_H diff --git a/src/plugins/styles/bb10style/qbb10styleplugin.json b/src/plugins/styles/bb10style/qbb10styleplugin.json deleted file mode 100644 index 8f79b706c3..0000000000 --- a/src/plugins/styles/bb10style/qbb10styleplugin.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "Keys": [ "bb10bright", "bb10dark" ] -} |