~ubuntu-branches/ubuntu/trusty/qtcreator-plugin-ubuntu/trusty

« back to all changes in this revision

Viewing changes to share/qtcreator/templates/wizards/ubuntu/backendplustabs/backend/modules/displayName_lower/backend.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Benjamin Zeller, David Planella
  • Date: 2014-03-29 20:05:25 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20140329200525-1y5x9avauqvy5cn9
Tags: 3.0.1+14.04.20140329-0ubuntu1
[ Benjamin Zeller ]
* Split device string with a regex instead of a fixed number of spaces
  (LP: #1297989) (LP: #1297989)
* grep desktop file path from the manifest, if its not in the root
  dir. rsync instead of tar and scp .
* CMake projects are not properly handled when the project name is not
  lowercase (LP: #1298566) (LP: #1298566)

[ David Planella ]
* Adds the required Author key to the scope template's .ini file. (LP:
  #1297862)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef BACKEND_PLUGIN_H
 
2
#define BACKEND_PLUGIN_H
 
3
 
 
4
#include <QtQml/QQmlEngine>
 
5
#include <QtQml/QQmlExtensionPlugin>
 
6
 
 
7
/*
 
8
 ----8<-----
 
9
 
 
10
 import %DISPLAYNAME% 1.0
 
11
 
 
12
 Rectangle {
 
13
   width: 200
 
14
   height: 200
 
15
 
 
16
   MyType {
 
17
      id: helloType
 
18
   }
 
19
 
 
20
   Text {
 
21
     anchors.centerIn: parent
 
22
     text: helloType.helloworld
 
23
   }
 
24
 }
 
25
 
 
26
 -----8<------
 
27
*/
 
28
class BackendPlugin : public QQmlExtensionPlugin
 
29
{
 
30
    Q_OBJECT
 
31
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
 
32
 
 
33
public:
 
34
    void registerTypes(const char *uri);
 
35
    void initializeEngine(QQmlEngine *engine, const char *uri);
 
36
};
 
37
#endif // BACKEND_PLUGIN_H
 
38