Skip to content

Commit

Permalink
Update to goears new website
Browse files Browse the repository at this point in the history
  • Loading branch information
Iktwo committed Jan 8, 2015
1 parent d88daf7 commit ad81685
Show file tree
Hide file tree
Showing 21 changed files with 85 additions and 171 deletions.
4 changes: 2 additions & 2 deletions qml/AboutPage.qml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
import com.iktwo.components 1.0

Expand Down
2 changes: 1 addition & 1 deletion qml/Arrow.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import QtQuick 2.3
import QtQuick 2.4

Item {
height: 100
Expand Down
14 changes: 5 additions & 9 deletions qml/FakeMainPage.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import QtQuick 2.3
import com.iktwo.components 1.0
import QtQuick.Controls 1.2
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
import com.iktwo.components 1.0

Expand Down Expand Up @@ -51,20 +50,17 @@ Item {

ListElement {
name: "Arrullo De Estrellas"; artist: "Zoé"
length: "4:14"; comment: "Bonita canción que me hace pensar en ti.."
code: ""; url: "xxx"
length: "4:14"; code: ""; url: "xxx"
}

ListElement {
name: "Goodbye Lovers and Friends"; artist: "Franz Ferdinand"
length: "4:34"; comment: "I love this song!"
code: ""; url: "xxx"
length: "4:34"; code: ""; url: "xxx"
}

ListElement {
name: "Addicted to you"; artist: "Avicii"
length: "3:24"; comment: "I am addicted to you"
code: ""; url: "xxx"
length: "3:24"; code: ""; url: "xxx"
}
}

Expand Down
6 changes: 3 additions & 3 deletions qml/FakePlaybackControls.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.1
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Controls.Styles 1.3
import QtQuick.Layouts 1.1
import QtMultimedia 5.1
import com.iktwo.components 1.0
Expand Down
6 changes: 3 additions & 3 deletions qml/FakeSearchPage.qml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import QtQuick 2.3
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Controls.Styles 1.3
import com.iktwo.components 1.0
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2

Page {
id: root
Expand Down
2 changes: 1 addition & 1 deletion qml/ImageButton.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import QtQuick 2.3
import QtQuick 2.4

Item {
id: root
Expand Down
12 changes: 4 additions & 8 deletions qml/MainPage.qml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import QtQuick 2.3
import QtQuick.Controls 1.1
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
import QtMultimedia 5.2
import com.iktwo.components 1.0
Expand Down Expand Up @@ -92,12 +92,12 @@ Page {

if (index < playlist.count - 1) {
/// Will copy next item data, no need to change index
playbackControls.song = playlist.get(index + 1).name + " - <i>" + playlist.get(index + 1).comment + "</i>"
playbackControls.song = playlist.get(index + 1).name + " - <i>" + playlist.get(index + 1).artist + "</i>"
audioElement.source = playlist.get(index + 1).url
audioElement.play()
} else if (index - 1 >= 0) {
/// Will copy previous item data, update index to -1
playbackControls.song = playlist.get(index - 1).name + " - <i>" + playlist.get(index - 1).comment + "</i>"
playbackControls.song = playlist.get(index - 1).name + " - <i>" + playlist.get(index - 1).artist + "</i>"
audioElement.source = playlist.get(index - 1).url
audioElement.index = audioElement.index - 1
audioElement.play()
Expand Down Expand Up @@ -141,8 +141,4 @@ Page {
wrapMode: "Wrap"
elide: "ElideRight"
}

//Component.onCompleted: playlist.append({"name" : "First Song",
//"artist" : "First Group", "length" : "3:31", "comment" : "this is a test",
//"code" : "XASDDASD", "url": "invalid", "picture": "crazytest"})
}
8 changes: 4 additions & 4 deletions qml/PlaybackControls.qml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.1
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Controls.Styles 1.3
import QtQuick.Layouts 1.1
import QtMultimedia 5.1
import QtMultimedia 5.2
import com.iktwo.components 1.0
import "components/style.js" as Style

Expand Down
6 changes: 3 additions & 3 deletions qml/PlaylistDelegate.qml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick 2.4
import QtQuick.Controls 1.3
import com.iktwo.components 1.0
import "components" as ThisComponents
import "components/style.js" as Style
Expand Down Expand Up @@ -75,7 +75,7 @@ Item {

elide: Text.ElideRight
color: Style.TEXT_SECONDARY_COLOR_DARK
text: model.length + " - <i>" + model.comment + "</i>"
text: model.length
width: parent.width
renderType: Text.NativeRendering
}
Expand Down
2 changes: 1 addition & 1 deletion qml/ReviewDialog.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import QtQuick 2.3
import QtQuick 2.4
import com.iktwo.components 1.0

Dialog {
Expand Down
7 changes: 3 additions & 4 deletions qml/SearchPage.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Controls.Styles 1.3
import com.iktwo.components 1.0

Page {
Expand Down Expand Up @@ -187,7 +187,6 @@ Page {
playlist.append({ "name" : model.name,
"artist" : model.artist,
"length" : model.length,
"comment" : model.comment,
"code" : model.code,
"url": model.url,
"picture": model.picture })
Expand Down
12 changes: 6 additions & 6 deletions qml/SongDelegate.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.1
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Controls.Styles 1.3
import QtQuick.Layouts 1.1
import com.iktwo.components 1.0
import "components" as ThisComponents
Expand Down Expand Up @@ -97,7 +97,7 @@ Item {

elide: Text.ElideRight
color: Style.TEXT_SECONDARY_COLOR_DARK
text: model.length + (model.comment !== "" && model.length !== "" ? " - " : "") + model.comment
text: model.artist
width: parent.width
renderType: Text.NativeRendering
maximumLineCount: 1
Expand All @@ -124,9 +124,9 @@ Item {

color: Style.TEXT_COLOR_LIGHT
elide: Text.ElideRight
text: model.kbps + "kbps " //+ model.hits
renderType: Text.NativeRendering
maximumLineCount: 1
text: model.kbps + "kbps"
}
}
}
Expand All @@ -140,9 +140,9 @@ Item {

elide: Text.ElideRight
color: Style.TEXT_SECONDARY_COLOR_DARK
text: "" + model.hits
width: parent.width
renderType: Text.NativeRendering
text: model.length
}
}

Expand Down
4 changes: 2 additions & 2 deletions qml/TutorialPage.qml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick 2.4
import QtQuick.Controls 1.3
import com.iktwo.components 1.0

Page {
Expand Down
12 changes: 6 additions & 6 deletions qml/main.qml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Window 2.1
import QtMultimedia 5.1
import QtMultimedia 5.2
import com.iktwo.components 1.0
import "."

Expand Down Expand Up @@ -29,7 +29,7 @@ ApplicationWindow {
else
audio.index = 0

playbackControls.song = playlist.get(audio.index).name + " - <i>" + playlist.get(audio.index).comment + "</i>"
playbackControls.song = playlist.get(audio.index).name + " - <i>" + playlist.get(audio.index).artist + "</i>"
audio.source = playlist.get(audio.index).url
audio.play()
}
Expand All @@ -40,7 +40,7 @@ ApplicationWindow {
else
audio.index = playlist.count - 1

playbackControls.song = playlist.get(audio.index).name + " - <i>" + playlist.get(audio.index).comment + "</i>"
playbackControls.song = playlist.get(audio.index).name + " - <i>" + playlist.get(audio.index).artist + "</i>"
audio.source = playlist.get(audio.index).url
audio.play()
}
Expand Down Expand Up @@ -122,7 +122,7 @@ ApplicationWindow {
onRowsInserted: {
// If new item is first on list, play it
if (count === 1) {
playbackControls.song = playlist.get(audio.index).name + " - <i>" + playlist.get(audio.index).comment + "</i>"
playbackControls.song = playlist.get(audio.index).name + " - <i>" + playlist.get(audio.index).artist + "</i>"
audio.source = playlist.get(audio.index).url
audio.play()
} else if (audio.status == Audio.EndOfMedia) {
Expand Down
18 changes: 6 additions & 12 deletions qml/testModels/TestSearchModel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,52 @@ import QtQuick 2.3

ListModel {
id: testModel

ListElement {
name: "Labios Rotos"
artist: "Zoe"
picture: "zoe"
length: "3:40"
comment: "Bonita canción"
kbps: 192
hits: 11500
}

ListElement {
name: "Yesterday"
artist: "The Beatles"
picture: "beatles"
length: "2:58"
comment: "The yellow submarine!"
kbps: 128
hits: 25800
}

ListElement {
name: "Another one bites the dust"
artist: "Queen"
picture: "queen"
length: "3:14"
comment: "We are the champions my friend!"
kbps: 320
hits: 23160
}

ListElement {
name: "hips don't lie"
artist: "Shakira"
picture: "shakira"
length: "3:22"
comment: "Waka waka!"
kbps: 98
hits: 18231
}

ListElement {
name: "Hotel Room Service"
artist: "Pitbull"
picture: "pitbull"
length: "4:15"
comment: "Ya tu sabe!"
kbps: 64
hits: 10100
}

ListElement {
name: "Song Name"
artist: "Fake"
picture: "crazystuff"
length: "3:10"
comment: "This a long useful comment"
kbps: 64
hits: 158
}
}
Loading

0 comments on commit ad81685

Please sign in to comment.