summaryrefslogtreecommitdiffstats
path: root/libtdepim/kprefsdialog.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:21 -0600
commit3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (patch)
tree89de88213bd261e4ccaade899ab2d6ec34b3a5a7 /libtdepim/kprefsdialog.cpp
parent1dad5f662a09dfc5cc041caffe0f674044a4dcec (diff)
downloadtdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.tar.gz
tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'libtdepim/kprefsdialog.cpp')
-rw-r--r--libtdepim/kprefsdialog.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/libtdepim/kprefsdialog.cpp b/libtdepim/kprefsdialog.cpp
index 466691083..9eadffeb2 100644
--- a/libtdepim/kprefsdialog.cpp
+++ b/libtdepim/kprefsdialog.cpp
@@ -21,7 +21,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlabel.h>
#include <tqbuttongroup.h>
#include <tqlineedit.h>
@@ -376,7 +376,7 @@ KPrefsWidDate::KPrefsWidDate( KConfigSkeleton::ItemDateTime *item,
void KPrefsWidDate::readConfig()
{
- mDateEdit->setDate( mItem->value().date().isValid() ? mItem->value().date() : TQDate::tqcurrentDate() );
+ mDateEdit->setDate( mItem->value().date().isValid() ? mItem->value().date() : TQDate::currentDate() );
}
void KPrefsWidDate::writeConfig()
@@ -766,18 +766,18 @@ void KPrefsDialog::autoCreate()
kdDebug() << "ITEMS: " << (*it)->name() << endl;
TQWidget *page;
- TQGridLayout *tqlayout;
+ TQGridLayout *layout;
int currentRow;
if ( !mGroupPages.contains( group ) ) {
page = addPage( group );
- tqlayout = new TQGridLayout( page );
+ layout = new TQGridLayout( page );
mGroupPages.insert( group, page );
- mGroupLayouts.insert( group, tqlayout );
+ mGroupLayouts.insert( group, layout );
currentRow = 0;
mCurrentRows.insert( group, currentRow );
} else {
page = mGroupPages[ group ];
- tqlayout = mGroupLayouts[ group ];
+ layout = mGroupLayouts[ group ];
currentRow = mCurrentRows[ group ];
}
@@ -786,11 +786,11 @@ void KPrefsDialog::autoCreate()
if ( wid ) {
TQValueList<TQWidget *> widgets = wid->widgets();
if ( widgets.count() == 1 ) {
- tqlayout->addMultiCellWidget( widgets[ 0 ],
+ layout->addMultiCellWidget( widgets[ 0 ],
currentRow, currentRow, 0, 1 );
} else if ( widgets.count() == 2 ) {
- tqlayout->addWidget( widgets[ 0 ], currentRow, 0 );
- tqlayout->addWidget( widgets[ 1 ], currentRow, 1 );
+ layout->addWidget( widgets[ 0 ], currentRow, 0 );
+ layout->addWidget( widgets[ 1 ], currentRow, 1 );
} else {
kdError() << "More widgets than expected: " << widgets.count() << endl;
}