~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/mytype.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 MYTYPE_H
2
 
#define MYTYPE_H
3
 
 
4
 
#include <QObject>
5
 
 
6
 
class MyType : public QObject
7
 
{
8
 
    Q_OBJECT
9
 
    Q_PROPERTY( QString helloWorld READ helloWorld WRITE setHelloWorld NOTIFY helloWorldChanged )
10
 
 
11
 
public:
12
 
    explicit MyType(QObject *parent = 0);
13
 
    ~MyType();
14
 
 
15
 
Q_SIGNALS:
16
 
    void helloWorldChanged();
17
 
 
18
 
protected:
19
 
    QString helloWorld() { return m_message; }
20
 
    void setHelloWorld(QString msg) { m_message = msg; Q_EMIT helloWorldChanged(); }
21
 
 
22
 
    QString m_message;
23
 
};
24
 
 
25
 
#endif // MYTYPE_H