summaryrefslogtreecommitdiffstats
path: root/karm/preferences.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'karm/preferences.cpp')
-rw-r--r--karm/preferences.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/karm/preferences.cpp b/karm/preferences.cpp
index e187599fa..c242fa6ab 100644
--- a/karm/preferences.cpp
+++ b/karm/preferences.cpp
@@ -51,8 +51,8 @@ void Preferences::makeBehaviorPage()
icon );
TQVBoxLayout* topLevel = new TQVBoxLayout( behaviorPage, 0, spacingHint() );
- TQGridLayout* tqlayout = new TQGridLayout( topLevel, 2, 2 );
- tqlayout->setColStretch( 1, 1 );
+ TQGridLayout* layout = new TQGridLayout( topLevel, 2, 2 );
+ layout->setColStretch( 1, 1 );
_doIdleDetectionW = new TQCheckBox
( i18n("Detect desktop as idle after"), behaviorPage, "_doIdleDetectionW");
@@ -62,9 +62,9 @@ void Preferences::makeBehaviorPage()
_promptDeleteW = new TQCheckBox
( i18n( "Prompt before deleting tasks" ), behaviorPage, "_promptDeleteW" );
- tqlayout->addWidget(_doIdleDetectionW, 0, 0 );
- tqlayout->addWidget(_idleDetectValueW, 0, 1 );
- tqlayout->addWidget(_promptDeleteW, 1, 0 );
+ layout->addWidget(_doIdleDetectionW, 0, 0 );
+ layout->addWidget(_idleDetectValueW, 0, 1 );
+ layout->addWidget(_promptDeleteW, 1, 0 );
topLevel->addStretch();
@@ -79,8 +79,8 @@ void Preferences::makeDisplayPage()
icon );
TQVBoxLayout* topLevel = new TQVBoxLayout( displayPage, 0, spacingHint() );
- TQGridLayout* tqlayout = new TQGridLayout( topLevel, 5, 2 );
- tqlayout->setColStretch( 1, 1 );
+ TQGridLayout* layout = new TQGridLayout( topLevel, 5, 2 );
+ layout->setColStretch( 1, 1 );
TQLabel* _displayColumnsLabelW = new TQLabel( i18n("Columns displayed:"),
displayPage );
@@ -93,11 +93,11 @@ void Preferences::makeDisplayPage()
_displayTotalTimeW = new TQCheckBox ( i18n("Total task time"),
displayPage, "_displayTotalTimeW");
- tqlayout->addMultiCellWidget( _displayColumnsLabelW, 0, 0, 0, 1 );
- tqlayout->addWidget(_displaySessionW, 1, 1 );
- tqlayout->addWidget(_displayTimeW, 2, 1 );
- tqlayout->addWidget(_displayTotalSessionW, 3, 1 );
- tqlayout->addWidget(_displayTotalTimeW, 4, 1 );
+ layout->addMultiCellWidget( _displayColumnsLabelW, 0, 0, 0, 1 );
+ layout->addWidget(_displaySessionW, 1, 1 );
+ layout->addWidget(_displayTimeW, 2, 1 );
+ layout->addWidget(_displayTotalSessionW, 3, 1 );
+ layout->addWidget(_displayTotalTimeW, 4, 1 );
topLevel->addStretch();
}
@@ -109,8 +109,8 @@ void Preferences::makeStoragePage()
icon );
TQVBoxLayout* topLevel = new TQVBoxLayout( storagePage, 0, spacingHint() );
- TQGridLayout* tqlayout = new TQGridLayout( topLevel, 4, 2 );
- tqlayout->setColStretch( 1, 1 );
+ TQGridLayout* layout = new TQGridLayout( topLevel, 4, 2 );
+ layout->setColStretch( 1, 1 );
// autosave
_doAutoSaveW = new TQCheckBox
@@ -128,12 +128,12 @@ void Preferences::makeStoragePage()
_loggingW = new TQCheckBox
( i18n("Log history"), storagePage, "_loggingW" );
- // add widgets to tqlayout
- tqlayout->addWidget(_doAutoSaveW, 0, 0);
- tqlayout->addWidget(_autoSaveValueW, 0, 1);
- tqlayout->addWidget(_iCalFileLabel, 1, 0 );
- tqlayout->addWidget(_iCalFileW, 1, 1 );
- tqlayout->addWidget(_loggingW, 2, 0 );
+ // add widgets to layout
+ layout->addWidget(_doAutoSaveW, 0, 0);
+ layout->addWidget(_autoSaveValueW, 0, 1);
+ layout->addWidget(_iCalFileLabel, 1, 0 );
+ layout->addWidget(_iCalFileW, 1, 1 );
+ layout->addWidget(_loggingW, 2, 0 );
topLevel->addStretch();