~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to kexi/widget/dataviewcommon/KexiTableViewColumn.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-10-23 21:09:16 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20121023210916-m82w6zxnxhaxz7va
Tags: 1:2.5.90-0ubuntu1
* New upstream alpha release (LP: #1070436)
  - Add libkactivities-dev and libopenimageio-dev to build-depends
  - Add kubuntu_build_calligraactive.diff to build calligraactive by default
  - Add package for calligraauthor and move files that are shared between
    calligrawords and calligraauthor to calligrawords-common
* Document the patches
* Remove numbers from patches so they follow the same naming scheme as
  the rest of our patches.
* calligra-data breaks replaces krita-data (<< 1:2.5.3) (LP: #1071686)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <QVector>
30
30
#include <QList>
31
31
 
32
 
#include <kexidb/field.h>
33
 
#include <kexidb/queryschema.h>
 
32
#include <db/field.h>
 
33
#include <db/queryschema.h>
34
34
 
35
35
#include <kexi_export.h>
36
36
 
62
62
                        uint length = 0, uint precision = 0,
63
63
                        QVariant defaultValue = QVariant(),
64
64
                        const QString& caption = QString(),
65
 
                        const QString& description = QString(),
66
 
                        uint width = 0);
 
65
                        const QString& description = QString());
67
66
 
68
67
    /*! Not db-aware, convenience ctor, simplified version of the above. */
69
68
    KexiTableViewColumn(const QString& name, KexiDB::Field::Type ctype, const QString& caption,
191
190
        return m_visibleLookupColumnInfo;
192
191
    }
193
192
 
194
 
    //! \retrun true if data is stored in DB, not only in memeory.
 
193
    //! \return true if data is stored in DB, not only in memeory.
195
194
    inline bool isDBAware() const {
196
195
        return m_isDBAware;
197
196
    }
198
197
 
199
 
 
200
 
    /*  QString caption;
201
 
        int type; //!< one of KexiDB::Field::Type
202
 
        uint width;
203
 
    */
204
 
//  bool isNull() const;
205
 
 
206
 
    /*  virtual QString caption() const;
207
 
        virtual void setCaption(const QString& c);
208
 
      */
 
198
    /*! Sets visible width for this column to \a w (usually in pixels or points).
 
199
        0 means there is no hint for the width. */
 
200
    void setWidth(uint w);
 
201
 
 
202
    /*! \return width of this field (usually in pixels or points).
 
203
         0 (the default) means there is no hint for the width. */
 
204
    uint width() const;
 
205
 
209
206
protected:
210
207
    //! special ctor that does not allocate d member;
211
208
    KexiTableViewColumn(bool);
232
229
    //! @see visibleLookupColumnInfo()
233
230
    KexiDB::QueryColumnInfo* m_visibleLookupColumnInfo;
234
231
 
 
232
    uint m_width;
235
233
    bool m_isDBAware; //!< true if data is stored in DB, not only in memeory
236
234
    bool m_readOnly;
237
235
    bool m_fieldOwned;