cf12defd28
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
123 lines
2.4 KiB
Plaintext
123 lines
2.4 KiB
Plaintext
// This file is generated by kconfig_compiler_kf6 from test15.kcfg.
|
|
// All changes you do to this file will be lost.
|
|
#ifndef TEST15_H
|
|
#define TEST15_H
|
|
|
|
#include <kconfigskeleton.h>
|
|
#include <QCoreApplication>
|
|
#include <QDebug>
|
|
#include <qqmlintegration.h>
|
|
|
|
class QQmlEngine;
|
|
class QJSEngine;
|
|
|
|
class Test15 : public KConfigSkeleton
|
|
{
|
|
Q_OBJECT
|
|
QML_ELEMENT
|
|
QML_SINGLETON
|
|
public:
|
|
|
|
static Test15 *self();
|
|
static Test15 *create(QQmlEngine *, QJSEngine *);
|
|
~Test15() override;
|
|
|
|
Q_PROPERTY(QUrl picturesDir READ picturesDir CONSTANT)
|
|
Q_PROPERTY(bool isPicturesDirImmutable READ isPicturesDirImmutable CONSTANT)
|
|
/**
|
|
Get picturesDir
|
|
*/
|
|
static
|
|
QUrl picturesDir()
|
|
{
|
|
return self()->mPicturesDir;
|
|
}
|
|
|
|
/**
|
|
Is picturesDir Immutable
|
|
*/
|
|
static
|
|
bool isPicturesDirImmutable()
|
|
{
|
|
return self()->isImmutable( QStringLiteral( "picturesDir" ) );
|
|
}
|
|
|
|
/**
|
|
Set brightness
|
|
*/
|
|
static
|
|
void setBrightness( double v )
|
|
{
|
|
if (v != self()->mBrightness && !self()->isBrightnessImmutable()) {
|
|
self()->mBrightness = v;
|
|
Q_EMIT self()->brightnessChanged();
|
|
}
|
|
}
|
|
|
|
Q_PROPERTY(double brightness READ brightness WRITE setBrightness NOTIFY brightnessChanged)
|
|
Q_PROPERTY(bool isBrightnessImmutable READ isBrightnessImmutable CONSTANT)
|
|
/**
|
|
Get brightness
|
|
*/
|
|
static
|
|
double brightness()
|
|
{
|
|
return self()->mBrightness;
|
|
}
|
|
|
|
/**
|
|
Is brightness Immutable
|
|
*/
|
|
static
|
|
bool isBrightnessImmutable()
|
|
{
|
|
return self()->isImmutable( QStringLiteral( "brightness" ) );
|
|
}
|
|
|
|
Q_PROPERTY(bool startsWithUppercase READ startsWithUppercase CONSTANT)
|
|
Q_PROPERTY(bool isStartsWithUppercaseImmutable READ isStartsWithUppercaseImmutable CONSTANT)
|
|
/**
|
|
Get StartsWithUppercase
|
|
*/
|
|
static
|
|
bool startsWithUppercase()
|
|
{
|
|
return self()->mStartsWithUppercase;
|
|
}
|
|
|
|
/**
|
|
Is StartsWithUppercase Immutable
|
|
*/
|
|
static
|
|
bool isStartsWithUppercaseImmutable()
|
|
{
|
|
return self()->isImmutable( QStringLiteral( "StartsWithUppercase" ) );
|
|
}
|
|
|
|
|
|
enum {
|
|
signalBrightnessChanged = 1
|
|
};
|
|
|
|
Q_SIGNALS:
|
|
void brightnessChanged();
|
|
|
|
private:
|
|
void itemChanged(quint64 signalFlag);
|
|
|
|
protected:
|
|
Test15();
|
|
friend class Test15Helper;
|
|
|
|
|
|
// kamoso
|
|
QUrl mPicturesDir;
|
|
double mBrightness;
|
|
bool mStartsWithUppercase;
|
|
|
|
private:
|
|
};
|
|
|
|
#endif
|
|
|