summaryrefslogtreecommitdiffstats
path: root/kaddressbook/contacteditorwidgetmanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/contacteditorwidgetmanager.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/contacteditorwidgetmanager.cpp')
-rw-r--r--kaddressbook/contacteditorwidgetmanager.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kaddressbook/contacteditorwidgetmanager.cpp b/kaddressbook/contacteditorwidgetmanager.cpp
index de21528cd..6a6a68d99 100644
--- a/kaddressbook/contacteditorwidgetmanager.cpp
+++ b/kaddressbook/contacteditorwidgetmanager.cpp
@@ -21,7 +21,7 @@
without including the source code for Qt in the source distribution.
*/
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <kdialog.h>
@@ -41,7 +41,7 @@
ContactEditorWidgetManager *ContactEditorWidgetManager::mSelf = 0;
ContactEditorWidgetManager::ContactEditorWidgetManager()
- : QObject( qApp )
+ : TQObject( qApp )
{
reload();
}
@@ -53,7 +53,7 @@ ContactEditorWidgetManager::~ContactEditorWidgetManager()
ContactEditorWidgetManager *ContactEditorWidgetManager::self()
{
- kdWarning( !kapp, 7520 ) << "No QApplication object available!" << endl;
+ kdWarning( !kapp, 7520 ) << "No TQApplication object available!" << endl;
if ( !mSelf )
mSelf = new ContactEditorWidgetManager();
@@ -76,7 +76,7 @@ void ContactEditorWidgetManager::reload()
mFactories.clear();
kdDebug(5720) << "ContactEditorWidgetManager::reload()" << endl;
const KTrader::OfferList plugins = KTrader::self()->query( "KAddressBook/ContactEditorWidget",
- QString( "[X-KDE-KAddressBook-CEWPluginVersion] == %1" ).arg( KAB_CEW_PLUGIN_VERSION ) );
+ TQString( "[X-KDE-KAddressBook-CEWPluginVersion] == %1" ).arg( KAB_CEW_PLUGIN_VERSION ) );
KTrader::OfferList::ConstIterator it;
for ( it = plugins.begin(); it != plugins.end(); ++it ) {
@@ -107,10 +107,10 @@ void ContactEditorWidgetManager::reload()
///////////////////////////////////////////////////////////////////////////////
-ContactEditorTabPage::ContactEditorTabPage( QWidget *parent, const char *name )
- : QWidget( parent, name )
+ContactEditorTabPage::ContactEditorTabPage( TQWidget *parent, const char *name )
+ : TQWidget( parent, name )
{
- mLayout = new QGridLayout( this, 0, 2, KDialog::marginHint(),
+ mLayout = new TQGridLayout( this, 0, 2, KDialog::marginHint(),
KDialog::spacingHint() );
}
@@ -118,7 +118,7 @@ void ContactEditorTabPage::addWidget( KAB::ContactEditorWidget *widget )
{
if ( widget->logicalWidth() == 2 ) {
mWidgets.prepend( widget );
- connect( widget, SIGNAL( changed() ), SIGNAL( changed() ) );
+ connect( widget, TQT_SIGNAL( changed() ), TQT_SIGNAL( changed() ) );
return;
}
@@ -133,7 +133,7 @@ void ContactEditorTabPage::addWidget( KAB::ContactEditorWidget *widget )
}
mWidgets.insert( ++it, widget );
- connect( widget, SIGNAL( changed() ), SIGNAL( changed() ) );
+ connect( widget, TQT_SIGNAL( changed() ), TQT_SIGNAL( changed() ) );
}
void ContactEditorTabPage::loadContact( KABC::Addressee *addr )
@@ -174,8 +174,8 @@ void ContactEditorTabPage::updateLayout()
row += (*it)->logicalHeight();
if ( it != mWidgets.fromLast() ) {
- QFrame *frame = new QFrame( this );
- frame->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+ TQFrame *frame = new TQFrame( this );
+ frame->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
mLayout->addMultiCellWidget( frame, row, row, 0, 1 );
row++;
}
@@ -190,8 +190,8 @@ void ContactEditorTabPage::updateLayout()
return;
} else {
mLayout->addMultiCellWidget( *it, row, row + leftHeight - 1, 0, 0 );
- QFrame *frame = new QFrame( this );
- frame->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+ TQFrame *frame = new TQFrame( this );
+ frame->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
mLayout->addMultiCellWidget( frame, row + leftHeight, row + leftHeight, 0, 1 );
}