Why can't I use the 14.10 development apis?

Tags:

Answer: 1

3 hours ago

So I am developing an Ubuntu Touch app and I am running the devel (utopic) channel on my phone, but 14.04 on my PC. I've changed the manifest to use the 14.10 framework, but when I run it on my phone nothing happens as it's supposed to:

I have this code from the Page example on developer.ubuntu.com

import QtQuick 2.0
import Ubuntu.Components 1.1
MainView {
    width: units.gu(48)
    height: units.gu(60)
    Page {
        title: i18n.tr("Example page")
        Label {
            anchors.centerIn: parent
            text: i18n.tr("Hello world!")
        }
        head.actions: [
            Action {
                iconName: "add"
                text: i18n.tr("Search")
            }
        ]
    }
}

There's no icon in the header and I am guessing this is the framework's fault. What do I do?

Note: I changed the iconName from search to add just to test it.

Added by: Elnora Bernier

Answer: 2

20 hours ago

You need to set the useDeprecatedToolbar property of your MainView to false.

This is temporary because we are currently supporting an old API (tools for toolbar), and a new (actions to go in the header). For Ubuntu.Components 1.1, the default value of useDeprecatedToolbar, which is now true, will be changed to false in the very near future (this week or the next).

Added by: Vilma West MD

Popular Search

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9