cf12defd28
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
107 lines
2.1 KiB
Plaintext
107 lines
2.1 KiB
Plaintext
// This file is generated by kconfig_compiler_kf6 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() override;
|
|
|
|
Q_PROPERTY(QUrl picturesDir READ picturesDir CONSTANT)
|
|
Q_PROPERTY(bool isPicturesDirImmutable READ isPicturesDirImmutable CONSTANT)
|
|
/**
|
|
Get picturesDir
|
|
*/
|
|
QUrl picturesDir() const
|
|
{
|
|
return mPicturesDir;
|
|
}
|
|
|
|
/**
|
|
Is picturesDir Immutable
|
|
*/
|
|
bool isPicturesDirImmutable() const
|
|
{
|
|
return isImmutable( QStringLiteral( "picturesDir" ) );
|
|
}
|
|
|
|
/**
|
|
Set brightness
|
|
*/
|
|
void setBrightness( double v )
|
|
{
|
|
if (v != mBrightness && !isBrightnessImmutable()) {
|
|
mBrightness = v;
|
|
Q_EMIT brightnessChanged();
|
|
}
|
|
}
|
|
|
|
Q_PROPERTY(double brightness READ brightness WRITE setBrightness NOTIFY brightnessChanged)
|
|
Q_PROPERTY(bool isBrightnessImmutable READ isBrightnessImmutable CONSTANT)
|
|
/**
|
|
Get brightness
|
|
*/
|
|
double brightness() const
|
|
{
|
|
return mBrightness;
|
|
}
|
|
|
|
/**
|
|
Is brightness Immutable
|
|
*/
|
|
bool isBrightnessImmutable() const
|
|
{
|
|
return isImmutable( QStringLiteral( "brightness" ) );
|
|
}
|
|
|
|
Q_PROPERTY(bool startsWithUppercase READ startsWithUppercase CONSTANT)
|
|
Q_PROPERTY(bool isStartsWithUppercaseImmutable READ isStartsWithUppercaseImmutable CONSTANT)
|
|
/**
|
|
Get StartsWithUppercase
|
|
*/
|
|
bool startsWithUppercase() const
|
|
{
|
|
return mStartsWithUppercase;
|
|
}
|
|
|
|
/**
|
|
Is StartsWithUppercase Immutable
|
|
*/
|
|
bool isStartsWithUppercaseImmutable() const
|
|
{
|
|
return isImmutable( QStringLiteral( "StartsWithUppercase" ) );
|
|
}
|
|
|
|
|
|
enum {
|
|
signalBrightnessChanged = 1
|
|
};
|
|
|
|
Q_SIGNALS:
|
|
void brightnessChanged();
|
|
|
|
private:
|
|
void itemChanged(quint64 signalFlag);
|
|
|
|
protected:
|
|
|
|
// kamoso
|
|
QUrl mPicturesDir;
|
|
double mBrightness;
|
|
bool mStartsWithUppercase;
|
|
|
|
private:
|
|
};
|
|
|
|
#endif
|
|
|