Skip to content

Commit

Permalink
More method mechanism on poems. But not implemented yet
Browse files Browse the repository at this point in the history
  • Loading branch information
realbardia committed Sep 7, 2020
1 parent afd55cb commit 7a46069
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
12 changes: 3 additions & 9 deletions configurations/android/13/AndroidManifest.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<manifest android:versionName="4.0.0" xmlns:android="http://schemas.android.com/apk/res/android" package="org.nilegroup.Meikade" android:installLocation="auto" android:versionCode="4009">
<manifest android:versionName="4.1.0" xmlns:android="http://schemas.android.com/apk/res/android" package="org.nilegroup.Meikade" android:installLocation="auto" android:versionCode="4012">
<application android:label="Meikade" android:icon="@drawable/icon" android:name="io.aseman.android.AsemanApplication">
<activity android:launchMode="singleInstance" android:label="@string/app_name" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="io.aseman.android.AsemanActivity" android:theme="@style/splashScreenTheme">
<intent-filter>
Expand Down Expand Up @@ -29,14 +29,8 @@
<meta-data android:name="android.max_aspect" android:value="3"/>
</activity>

<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
<provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths"/>
</provider>

</application>
Expand Down
2 changes: 2 additions & 0 deletions qml/imports/logics/PoemPage.qml
Expand Up @@ -280,6 +280,8 @@ PoemView {
backBtn.onClicked: ViewportType.open = false

listView.model: loader.versesModel

onMoreRequest: loader.more()
}

Component {
Expand Down
4 changes: 4 additions & 0 deletions qml/imports/models/PoemLoaderModel.qml
Expand Up @@ -33,6 +33,10 @@ AsemanObject {
versesModel.clear();
}

function more() {
console.debug("More")
}

QtObject {
id: prv

Expand Down
10 changes: 10 additions & 0 deletions qml/imports/views/poems/PoemForm.ui.qml
Expand Up @@ -54,6 +54,7 @@ Item {
signal navigationClicked(string link, int index)
signal menuRequest(int index, variant object)
signal selectedToggled(int index, bool selected)
signal moreRequest()

Connections {
target: dis
Expand Down Expand Up @@ -121,6 +122,15 @@ Item {
height: verseLabel.height + 20 * Devices.density
z: 100000 - index

Component.onCompleted: loaded = true

property bool loaded: false

Connections {
target: del
onLoadedChanged: if (index == listView.model.count-5) dis.moreRequest()
}

Rectangle {
anchors.fill: itemDel
visible: highlightItemIndex == model.index
Expand Down

0 comments on commit 7a46069

Please sign in to comment.