Warning, /frameworks/kconfig/autotests/kconfig_compiler/test8b.cpp.ref is written in an unsupported language. File is not indexed.

0001 // This file is generated by kconfig_compiler_kf6 from test8b.kcfg.
0002 // All changes you do to this file will be lost.
0003 
0004 #include "test8b.h"
0005 
0006 #include <qglobal.h>
0007 #include <QFile>
0008 
0009 class Test8bHelper
0010 {
0011   public:
0012     Test8bHelper() : q(nullptr) {}
0013     ~Test8bHelper() { delete q; q = nullptr; }
0014     Test8bHelper(const Test8bHelper&) = delete;
0015     Test8bHelper& operator=(const Test8bHelper&) = delete;
0016     Test8b *q;
0017 };
0018 Q_GLOBAL_STATIC(Test8bHelper, s_globalTest8b)
0019 Test8b *Test8b::self()
0020 {
0021   if (!s_globalTest8b()->q) {
0022     new Test8b;
0023     s_globalTest8b()->q->read();
0024   }
0025 
0026   return s_globalTest8b()->q;
0027 }
0028 
0029 Test8b::Test8b( )
0030   : Test8a()
0031 {
0032   Q_ASSERT(!s_globalTest8b()->q);
0033   s_globalTest8b()->q = this;
0034   setCurrentGroup( QStringLiteral( "Group8b1" ) );
0035 
0036   Test8a::ItemUInt  *itemSomething;
0037   itemSomething = new Test8a::ItemUInt( currentGroup(), QStringLiteral( "Something" ), mSomething, 60 );
0038   addItem( itemSomething, QStringLiteral( "Something" ) );
0039 
0040   setCurrentGroup( QStringLiteral( "Group8b2" ) );
0041 
0042   Test8a::ItemBool  *itemFooBoo;
0043   itemFooBoo = new Test8a::ItemBool( currentGroup(), QStringLiteral( "FooBoo" ), mFooBoo, false );
0044   addItem( itemFooBoo, QStringLiteral( "FooBoo" ) );
0045   Test8a::ItemUInt  *itemPort;
0046   itemPort = new Test8a::ItemUInt( currentGroup(), QStringLiteral( "Port" ), mPort, 1000 );
0047   addItem( itemPort, QStringLiteral( "Port" ) );
0048 }
0049 
0050 Test8b::~Test8b()
0051 {
0052   if (s_globalTest8b.exists() && !s_globalTest8b.isDestroyed()) {
0053     s_globalTest8b()->q = nullptr;
0054   }
0055 }
0056