aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test8a.h.ref
blob: 9e9c0f4e7725ed5af5647b4639b22d143091605b (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
// This file is generated by kconfig_compiler_kf5 from test8a.kcfg.
// All changes you do to this file will be lost.
#ifndef TEST8A_H
#define TEST8A_H

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

class Test8a : public KConfigSkeleton
{
  public:

    Test8a( KSharedConfig::Ptr config = KSharedConfig::openConfig(), QObject *parent = nullptr );
    ~Test8a();

    /**
      Set Font
    */
    void setFont( const QFont & v )
    {
      if (!isFontImmutable())
        mFont = v;
    }

    /**
      Get Font
    */
    QFont font() const
    {
      return mFont;
    }

    /**
      Is Font Immutable
    */
    bool isFontImmutable() const
    {
      return isImmutable( QStringLiteral( "Font" ) );
    }

    /**
      Set TitleFont
    */
    void setTitleFont( const QFont & v )
    {
      if (!isTitleFontImmutable())
        mTitleFont = v;
    }

    /**
      Get TitleFont
    */
    QFont titleFont() const
    {
      return mTitleFont;
    }

    /**
      Is TitleFont Immutable
    */
    bool isTitleFontImmutable() const
    {
      return isImmutable( QStringLiteral( "TitleFont" ) );
    }

  protected:

    // Group
    QFont mFont;
    QFont mTitleFont;

  private:
};

#endif