Skip to content

Commit

Permalink
update imports
Browse files Browse the repository at this point in the history
make functions and QtQuick imports consistent
  • Loading branch information
mlowczynski committed Apr 30, 2024
1 parent b65a03b commit e831f48
Show file tree
Hide file tree
Showing 215 changed files with 535 additions and 714 deletions.
10 changes: 5 additions & 5 deletions qmlui/qml/+qt5/ActionsMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick.Controls 2.1
import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.0
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Dialogs 1.3
import QtQuick.Layouts 1.15

Popup
{
Expand Down Expand Up @@ -131,7 +131,7 @@ Popup

property string action: ""

onClicked: function (role) {
onClicked: (role) => {
if (role === Dialog.Yes)
{
if (qlcplus.fileName())
Expand Down
10 changes: 4 additions & 6 deletions qmlui/qml/ActionsMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick.Controls 2.1
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Dialogs
import QtQuick.Layouts 1.0

import "."
import QtQuick.Layouts 1.15

Popup
{
Expand Down Expand Up @@ -133,7 +131,7 @@ Popup

property string action: ""

onClicked: function (role) {
onClicked: (role) => {
if (role === Dialog.Yes)
{
if (qlcplus.fileName())
Expand Down
7 changes: 3 additions & 4 deletions qmlui/qml/BeatGeneratorsPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
limitations under the License.
*/

import QtQuick 2.6
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.1
import "."
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

Rectangle
{
Expand Down
5 changes: 2 additions & 3 deletions qmlui/qml/ChannelToolLoader.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick.Controls 2.5
import QtQuick 2.15
import QtQuick.Controls 2.15

import org.qlcplus.classes 1.0
import "."

Popup
{
Expand Down
5 changes: 2 additions & 3 deletions qmlui/qml/ChaserStepDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtQuick 2.15
import QtQuick.Layouts 1.15
import org.qlcplus.classes 1.0
import "."

Rectangle
{
Expand Down
7 changes: 3 additions & 4 deletions qmlui/qml/ChaserWidget.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
limitations under the License.
*/

import QtQuick 2.12
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.1
import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15

import org.qlcplus.classes 1.0
import "TimeUtils.js" as TimeUtils
import "."

Column
{
Expand Down
7 changes: 3 additions & 4 deletions qmlui/qml/ColorTool.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
limitations under the License.
*/

import QtQuick 2.3
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.1
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

import org.qlcplus.classes 1.0
import "."

Rectangle
{
Expand Down
3 changes: 1 addition & 2 deletions qmlui/qml/ColorToolBasic.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
limitations under the License.
*/

import QtQuick 2.0
import "."
import QtQuick 2.15

Rectangle
{
Expand Down
7 changes: 3 additions & 4 deletions qmlui/qml/ColorToolFilters.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.1
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

import org.qlcplus.classes 1.0
import "GenericHelpers.js" as Helpers
import "."

Rectangle
{
Expand Down
7 changes: 3 additions & 4 deletions qmlui/qml/ColorToolFull.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.1
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

import org.qlcplus.classes 1.0
import "GenericHelpers.js" as Helpers
import "."

Rectangle
{
Expand Down
3 changes: 1 addition & 2 deletions qmlui/qml/ColorToolPrimary.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick 2.15

import org.qlcplus.classes 1.0
import "GenericHelpers.js" as Helpers
import "."

Rectangle
{
Expand Down
4 changes: 1 addition & 3 deletions qmlui/qml/ContextMenuEntry.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
limitations under the License.
*/

import QtQuick 2.2

import "."
import QtQuick 2.15

Rectangle
{
Expand Down
6 changes: 2 additions & 4 deletions qmlui/qml/CustomCheckBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick.Controls 2.14

import "."
import QtQuick 2.15
import QtQuick.Controls 2.15

RadioButton
{
Expand Down
7 changes: 3 additions & 4 deletions qmlui/qml/CustomComboBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
limitations under the License.
*/

import QtQuick 2.9
import QtQuick.Window 2.3
import QtQuick.Controls 2.14
import "."
import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15

ComboBox
{
Expand Down
9 changes: 4 additions & 5 deletions qmlui/qml/CustomDoubleSpinBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
limitations under the License.
*/

import QtQuick 2.3
import QtQuick.Controls 2.14
import "."
import QtQuick 2.15
import QtQuick.Controls 2.15

CustomSpinBox
{
Expand All @@ -41,11 +40,11 @@ CustomSpinBox
top: Math.max(controlRoot.from, controlRoot.to)
}

textFromValue: function(value, locale) {
textFromValue: (value, locale) => {
return Number(value / Math.pow(10, decimals)).toLocaleString(locale, 'f', decimals) + suffix
}

valueFromText: function(text, locale) {
valueFromText: (text, locale) => {
return Number.fromLocaleString(locale, text.replace(suffix, "")) * Math.pow(10, decimals)
}

Expand Down
5 changes: 2 additions & 3 deletions qmlui/qml/CustomScrollBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
limitations under the License.
*/

import QtQuick 2.6
import QtQuick.Controls 2.1
import QtQuick 2.15
import QtQuick.Controls 2.15

import "."

ScrollBar
{
Expand Down
5 changes: 2 additions & 3 deletions qmlui/qml/CustomSlider.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
limitations under the License.
*/

import QtQuick 2.9
import QtQuick.Controls 2.14
import "."
import QtQuick 2.15
import QtQuick.Controls 2.15

Slider
{
Expand Down
9 changes: 4 additions & 5 deletions qmlui/qml/CustomSpinBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
limitations under the License.
*/

import QtQuick 2.3
import QtQuick.Controls 2.14
import "."
import QtQuick 2.15
import QtQuick.Controls 2.15

SpinBox
{
Expand Down Expand Up @@ -49,11 +48,11 @@ SpinBox
if (focus) contentItem.selectAll()
}

textFromValue: function(value) {
textFromValue: (value) => {
return value + suffix
}

valueFromText: function(text) {
valueFromText: (text) => {
return parseInt(text.replace(suffix, ""))
}

Expand Down
5 changes: 2 additions & 3 deletions qmlui/qml/CustomTextEdit.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
limitations under the License.
*/

import QtQuick 2.7
import QtQuick.Controls 2.14
import "."
import QtQuick 2.15
import QtQuick.Controls 2.15

TextField
{
Expand Down
3 changes: 1 addition & 2 deletions qmlui/qml/CustomTextInput.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
limitations under the License.
*/

import QtQuick 2.7
import "."
import QtQuick 2.15

TextInput
{
Expand Down
5 changes: 2 additions & 3 deletions qmlui/qml/DMXAddressTool.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick.Layouts 1.2
import QtQuick 2.15
import QtQuick.Layouts 1.15

import "."

GridLayout
{
Expand Down
4 changes: 2 additions & 2 deletions qmlui/qml/DMXAddressWidget.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick.Layouts 1.2
import QtQuick 2.15
import QtQuick.Layouts 1.15

Rectangle
{
Expand Down
3 changes: 1 addition & 2 deletions qmlui/qml/DMXPercentageButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
limitations under the License.
*/

import QtQuick 2.0
import "."
import QtQuick 2.15

Rectangle
{
Expand Down
4 changes: 2 additions & 2 deletions qmlui/qml/DayTimeTool.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtQuick 2.15
import QtQuick.Layouts 1.15

Rectangle
{
Expand Down
5 changes: 2 additions & 3 deletions qmlui/qml/ExternalControlDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtQuick 2.15
import QtQuick.Layouts 1.15

import org.qlcplus.classes 1.0
import "."

Column
{
Expand Down
5 changes: 2 additions & 3 deletions qmlui/qml/ExternalControls.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
limitations under the License.
*/

import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtQuick 2.15
import QtQuick.Layouts 1.15

import org.qlcplus.classes 1.0
import "."

Column
{
Expand Down
Loading

0 comments on commit e831f48

Please sign in to comment.