~kalikiana/u1db-qt/creator

« back to all changes in this revision

Viewing changes to src/index.cpp

  • Committer: Tarmac
  • Author(s): Christian Dywan
  • Date: 2013-04-23 17:04:14 UTC
  • mfrom: (79.1.12 u1db-qt.range2)
  • Revision ID: tarmac-20130423170414-l88j9zpzb1767ygg
Remove range property for now, it's not implemented.

Approved by Ubuntu Phone Apps Jenkins Bot, Christian Dywan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    Database::getIndexExpressions().
44
44
*/
45
45
 
 
46
/*!
 
47
    Instantiate a new Index with an optional \a parent,
 
48
    usually by declaring it as a QML item.
 
49
 */
46
50
Index::Index(QObject *parent) :
47
51
    QObject(parent), m_database(0)
48
52
{
67
71
}
68
72
 
69
73
/*!
 
74
    \property Index::database
70
75
    Sets the Database to lookup documents from and store the index in. The
71
76
    dataInvalidated() signal will be emitted on all changes that could affect
72
77
    the index.
100
105
}
101
106
 
102
107
/*!
 
108
    \property Index::name
103
109
    Sets the name used. Both an expression and a name must be specified
104
110
    for an index to be created.
105
111
 */
126
132
}
127
133
 
128
134
/*!
 
135
    \property Index::expression
129
136
    Sets the expression used. Both an expression and a name must be specified
130
137
    for an index to be created.
131
138
 
148
155
    m_expression = expression;
149
156
 
150
157
    Q_EMIT expressionChanged(expression);
151
 
    Q_EMIT dataIndexed();
152
158
}
153
159
 
154
160
/*!