~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.cpp

  • 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
#include <QtQml>
 
2
#include <QtQml/QQmlContext>
 
3
#include "backend.h"
 
4
#include "mytype.h"
 
5
 
 
6
 
 
7
void BackendPlugin::registerTypes(const char *uri)
 
8
{
 
9
    Q_ASSERT(uri == QLatin1String("%DISPLAYNAME%"));
 
10
 
 
11
    qmlRegisterType<MyType>(uri, 1, 0, "MyType");
 
12
}
 
13
 
 
14
void BackendPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
 
15
{
 
16
    QQmlExtensionPlugin::initializeEngine(engine, uri);
 
17
}