summaryrefslogtreecommitdiffstats
path: root/src/preferences.h
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-08-21 21:31:42 +0200
committerSlávek Banko <[email protected]>2013-08-21 21:31:42 +0200
commitdc35d8eaac302891fa34128d0e2e148b4c409544 (patch)
tree7e7196abc428ea90299b38bde8b04ca24bb1c948 /src/preferences.h
parente6a44e6a474364c8743c97cd87dcf0b47879324f (diff)
downloadklcddimmer-dc35d8eaac302891fa34128d0e2e148b4c409544.tar.gz
klcddimmer-dc35d8eaac302891fa34128d0e2e148b4c409544.zip
Initial TQt conversion
Diffstat (limited to 'src/preferences.h')
-rw-r--r--src/preferences.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/preferences.h b/src/preferences.h
index 7966ccc..f21be7f 100644
--- a/src/preferences.h
+++ b/src/preferences.h
@@ -17,9 +17,9 @@ class Preferences : public KConfigSkeleton
Set program to adjust lcd brightness
*/
static
- void setProgram( const QString & v )
+ void setProgram( const TQString & v )
{
- if (!self()->isImmutable( QString::fromLatin1( "Program" ) ))
+ if (!self()->isImmutable( TQString::fromLatin1( "Program" ) ))
self()->mProgram = v;
}
@@ -27,7 +27,7 @@ class Preferences : public KConfigSkeleton
Get program to adjust lcd brightness
*/
static
- QString program()
+ TQString program()
{
return self()->mProgram;
}
@@ -36,9 +36,9 @@ class Preferences : public KConfigSkeleton
Set argument to set the brighness
*/
static
- void setSetArgument( const QString & v )
+ void setSetArgument( const TQString & v )
{
- if (!self()->isImmutable( QString::fromLatin1( "SetArgument" ) ))
+ if (!self()->isImmutable( TQString::fromLatin1( "SetArgument" ) ))
self()->mSetArgument = v;
}
@@ -46,7 +46,7 @@ class Preferences : public KConfigSkeleton
Get argument to set the brighness
*/
static
- QString setArgument()
+ TQString setArgument()
{
return self()->mSetArgument;
}
@@ -55,9 +55,9 @@ class Preferences : public KConfigSkeleton
Set argument to get the brighness
*/
static
- void setGetArgument( const QString & v )
+ void setGetArgument( const TQString & v )
{
- if (!self()->isImmutable( QString::fromLatin1( "GetArgument" ) ))
+ if (!self()->isImmutable( TQString::fromLatin1( "GetArgument" ) ))
self()->mGetArgument = v;
}
@@ -65,7 +65,7 @@ class Preferences : public KConfigSkeleton
Get argument to get the brighness
*/
static
- QString getArgument()
+ TQString getArgument()
{
return self()->mGetArgument;
}
@@ -74,9 +74,9 @@ class Preferences : public KConfigSkeleton
Set minimum value for brightness
*/
static
- void setMinValue( const QString & v )
+ void setMinValue( const TQString & v )
{
- if (!self()->isImmutable( QString::fromLatin1( "MinValue" ) ))
+ if (!self()->isImmutable( TQString::fromLatin1( "MinValue" ) ))
self()->mMinValue = v;
}
@@ -84,7 +84,7 @@ class Preferences : public KConfigSkeleton
Get minimum value for brightness
*/
static
- QString minValue()
+ TQString minValue()
{
return self()->mMinValue;
}
@@ -93,9 +93,9 @@ class Preferences : public KConfigSkeleton
Set maximum value for brightness
*/
static
- void setMaxValue( const QString & v )
+ void setMaxValue( const TQString & v )
{
- if (!self()->isImmutable( QString::fromLatin1( "MaxValue" ) ))
+ if (!self()->isImmutable( TQString::fromLatin1( "MaxValue" ) ))
self()->mMaxValue = v;
}
@@ -103,7 +103,7 @@ class Preferences : public KConfigSkeleton
Get maximum value for brightness
*/
static
- QString maxValue()
+ TQString maxValue()
{
return self()->mMaxValue;
}
@@ -112,9 +112,9 @@ class Preferences : public KConfigSkeleton
Set step to increment
*/
static
- void setStep( const QString & v )
+ void setStep( const TQString & v )
{
- if (!self()->isImmutable( QString::fromLatin1( "Step" ) ))
+ if (!self()->isImmutable( TQString::fromLatin1( "Step" ) ))
self()->mStep = v;
}
@@ -122,7 +122,7 @@ class Preferences : public KConfigSkeleton
Get step to increment
*/
static
- QString step()
+ TQString step()
{
return self()->mStep;
}
@@ -133,7 +133,7 @@ class Preferences : public KConfigSkeleton
static
void setSaveCurrent( bool v )
{
- if (!self()->isImmutable( QString::fromLatin1( "SaveCurrent" ) ))
+ if (!self()->isImmutable( TQString::fromLatin1( "SaveCurrent" ) ))
self()->mSaveCurrent = v;
}
@@ -150,9 +150,9 @@ class Preferences : public KConfigSkeleton
Set the current brightness value
*/
static
- void setCurrentValue( const QString & v )
+ void setCurrentValue( const TQString & v )
{
- if (!self()->isImmutable( QString::fromLatin1( "CurrentValue" ) ))
+ if (!self()->isImmutable( TQString::fromLatin1( "CurrentValue" ) ))
self()->mCurrentValue = v;
}
@@ -160,7 +160,7 @@ class Preferences : public KConfigSkeleton
Get the current brightness value
*/
static
- QString currentValue()
+ TQString currentValue()
{
return self()->mCurrentValue;
}
@@ -176,14 +176,14 @@ class Preferences : public KConfigSkeleton
// general
- QString mProgram;
- QString mSetArgument;
- QString mGetArgument;
- QString mMinValue;
- QString mMaxValue;
- QString mStep;
+ TQString mProgram;
+ TQString mSetArgument;
+ TQString mGetArgument;
+ TQString mMinValue;
+ TQString mMaxValue;
+ TQString mStep;
bool mSaveCurrent;
- QString mCurrentValue;
+ TQString mCurrentValue;
private:
};