aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test13.h.ref
blob: 6c67fc5df050b25431369212f773f9f9973d2412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// This file is generated by kconfig_compiler_kf5 from test13.kcfg.
// All changes you do to this file will be lost.
#ifndef TEST13_H
#define TEST13_H

#include <qglobal.h>
#include <kconfigskeleton.h>
#include <QCoreApplication>
#include <QDebug>

class Test13 : public KConfigSkeleton
{
  Q_OBJECT
  public:

    Test13( );
    ~Test13();


    Q_PROPERTY(QUrl picturesDir READ picturesDir CONSTANT)
    /**
      Get picturesDir
    */
    QUrl picturesDir() const
    {
      return mPicturesDir;
    }

    /**
      Set brightness
    */
    void setBrightness( double v )
    {
      if (v != mBrightness && !isImmutable( QStringLiteral( "brightness" ) )) {
        mBrightness = v;
        Q_EMIT brightnessChanged();
      }
    }

    Q_PROPERTY(double brightness READ brightness WRITE setBrightness NOTIFY brightnessChanged)
    /**
      Get brightness
    */
    double brightness() const
    {
      return mBrightness;
    }


    Q_PROPERTY(bool startsWithUppercase READ startsWithUppercase CONSTANT)
    /**
      Get StartsWithUppercase
    */
    bool startsWithUppercase() const
    {
      return mStartsWithUppercase;
    }


    enum {
      signalBrightnessChanged = 0x1
    };

  Q_SIGNALS:
    void brightnessChanged();

  private:
    void itemChanged(quint64 flags);

  protected:

    // kamoso
    QUrl mPicturesDir;
    double mBrightness;
    bool mStartsWithUppercase;

  private:
};

#endif