Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
// This file is generated by kconfig_compiler_kf6 from test10.kcfg.
|
||||
// All changes you do to this file will be lost.
|
||||
|
||||
#include "test10.h"
|
||||
|
||||
#include <qglobal.h>
|
||||
#include <QFile>
|
||||
|
||||
class Test10Helper
|
||||
{
|
||||
public:
|
||||
Test10Helper() : q(nullptr) {}
|
||||
~Test10Helper() { delete q; q = nullptr; }
|
||||
Test10Helper(const Test10Helper&) = delete;
|
||||
Test10Helper& operator=(const Test10Helper&) = delete;
|
||||
Test10 *q;
|
||||
};
|
||||
Q_GLOBAL_STATIC(Test10Helper, s_globalTest10)
|
||||
Test10 *Test10::self()
|
||||
{
|
||||
if (!s_globalTest10()->q) {
|
||||
new Test10;
|
||||
s_globalTest10()->q->read();
|
||||
}
|
||||
|
||||
return s_globalTest10()->q;
|
||||
}
|
||||
|
||||
Test10::Test10( )
|
||||
: KConfigSkeleton( QStringLiteral( "test10rc" ) )
|
||||
{
|
||||
Q_ASSERT(!s_globalTest10()->q);
|
||||
s_globalTest10()->q = this;
|
||||
setCurrentGroup( QStringLiteral( "Foo" ) );
|
||||
|
||||
KConfigSkeleton::ItemUrl *itemFooBar;
|
||||
itemFooBar = new KConfigSkeleton::ItemUrl( currentGroup(), QStringLiteral( "foo bar" ), mFooBar );
|
||||
addItem( itemFooBar, QStringLiteral( "FooBar" ) );
|
||||
KConfigSkeleton::ItemUrlList *itemBarFoo;
|
||||
itemBarFoo = new KConfigSkeleton::ItemUrlList( currentGroup(), QStringLiteral( "bar foo" ), mBarFoo );
|
||||
addItem( itemBarFoo, QStringLiteral( "BarFoo" ) );
|
||||
}
|
||||
|
||||
Test10::~Test10()
|
||||
{
|
||||
if (s_globalTest10.exists() && !s_globalTest10.isDestroyed()) {
|
||||
s_globalTest10()->q = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user