summaryrefslogtreecommitdiffstats
path: root/kmail/configuredialog_p.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kmail/configuredialog_p.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/configuredialog_p.cpp')
-rw-r--r--kmail/configuredialog_p.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kmail/configuredialog_p.cpp b/kmail/configuredialog_p.cpp
index e17e800e8..ff473f668 100644
--- a/kmail/configuredialog_p.cpp
+++ b/kmail/configuredialog_p.cpp
@@ -1,5 +1,5 @@
#ifndef KDE_USE_FINAL
-#define QT_NO_CAST_ASCII
+#define TQT_NO_CAST_ASCII
#endif
// configuredialog_p.cpp: classes internal to ConfigureDialog
// see configuredialog.cpp for details.
@@ -25,7 +25,7 @@
#include <klocale.h>
#include <kdebug.h>
-// Qt headers:
+// TQt headers:
#include <tqheader.h>
#include <tqtabwidget.h>
#include <tqradiobutton.h>
@@ -38,9 +38,9 @@
NewIdentityDialog::NewIdentityDialog( const TQStringList & identities,
- TQWidget *parent, const char *name,
+ TQWidget *tqparent, const char *name,
bool modal )
- : KDialogBase( parent, name, modal, i18n("New Identity"),
+ : KDialogBase( tqparent, name, modal, i18n("New Identity"),
Ok|Cancel|Help, Ok, true )
{
setHelp( TQString::tqfromLatin1("configure-identity-newidentitydialog") );
@@ -122,9 +122,9 @@ void NewIdentityDialog::slotEnableOK( const TQString & proposedIdentityName ) {
enableButtonOK( true );
}
-ListView::ListView( TQWidget *parent, const char *name,
+ListView::ListView( TQWidget *tqparent, const char *name,
int visibleItem )
- : KListView( parent, name )
+ : KListView( tqparent, name )
{
setVisibleItem(visibleItem);
}
@@ -166,7 +166,7 @@ void ListView::resizeColums()
void ListView::setVisibleItem( int visibleItem, bool updateSize )
{
- mVisibleItem = QMAX( 1, visibleItem );
+ mVisibleItem = TQMAX( 1, visibleItem );
if( updateSize == true )
{
TQSize s = tqsizeHint();
@@ -191,9 +191,9 @@ TQSize ListView::tqsizeHint() const
static TQString flagPng = TQString::tqfromLatin1("/flag.png");
NewLanguageDialog::NewLanguageDialog( LanguageItemList & suppressedLangs,
- TQWidget *parent, const char *name,
+ TQWidget *tqparent, const char *name,
bool modal )
- : KDialogBase( parent, name, modal, i18n("New Language"), Ok|Cancel, Ok, true )
+ : KDialogBase( tqparent, name, modal, i18n("New Language"), Ok|Cancel, Ok, true )
{
// tqlayout the page (a combobox with label):
TQWidget *page = makeMainWidget();
@@ -222,7 +222,7 @@ NewLanguageDialog::NewLanguageDialog( LanguageItemList & suppressedLangs,
// we extract it from the path: "/prefix/de/entry.desktop" -> "de"
TQString acronym = (*it).section( '/', -2, -2 );
- if ( suppressedAcronyms.find( acronym ) == suppressedAcronyms.end() ) {
+ if ( suppressedAcronyms.tqfind( acronym ) == suppressedAcronyms.end() ) {
// not found:
TQString displayname = TQString::tqfromLatin1("%1 (%2)")
.arg( name ).arg( acronym );
@@ -244,8 +244,8 @@ TQString NewLanguageDialog::language() const
}
-LanguageComboBox::LanguageComboBox( bool rw, TQWidget *parent, const char *name )
- : TQComboBox( rw, parent, name )
+LanguageComboBox::LanguageComboBox( bool rw, TQWidget *tqparent, const char *name )
+ : TQComboBox( rw, tqparent, name )
{
}
@@ -269,10 +269,10 @@ TQString LanguageComboBox::language() const
void LanguageComboBox::setLanguage( const TQString & language )
{
- TQString parenthizedLanguage = TQString::tqfromLatin1("(%1)").arg( language );
+ TQString tqparenthizedLanguage = TQString::tqfromLatin1("(%1)").arg( language );
for (int i = 0; i < count(); i++)
// ### FIXME: use .endWith():
- if ( text(i).find( parenthizedLanguage ) >= 0 ) {
+ if ( text(i).tqfind( tqparenthizedLanguage ) >= 0 ) {
setCurrentItem(i);
return;
}
@@ -284,8 +284,8 @@ void LanguageComboBox::setLanguage( const TQString & language )
//
//
-ProfileDialog::ProfileDialog( TQWidget * parent, const char * name, bool modal )
- : KDialogBase( parent, name, modal, i18n("Load Profile"), Ok|Cancel, Ok, true )
+ProfileDialog::ProfileDialog( TQWidget * tqparent, const char * name, bool modal )
+ : KDialogBase( tqparent, name, modal, i18n("Load Profile"), Ok|Cancel, Ok, true )
{
// tmp. vars:
TQWidget * page = makeMainWidget();
@@ -364,9 +364,9 @@ void ProfileDialog::slotOk() {
}
-ConfigModuleWithTabs::ConfigModuleWithTabs( TQWidget * parent,
+ConfigModuleWithTabs::ConfigModuleWithTabs( TQWidget * tqparent,
const char * name )
- : ConfigModule( parent, name )
+ : ConfigModule( tqparent, name )
{
TQVBoxLayout *vlay = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
mTabWidget = new TQTabWidget( this );