summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/config
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/kopete/config')
-rw-r--r--kopete/kopete/config/accounts/kopeteaccountconfig.cpp48
-rw-r--r--kopete/kopete/config/accounts/kopeteaccountconfig.h8
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig.cpp290
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig.h8
-rw-r--r--kopete/kopete/config/appearance/emoticonseditdialog.cpp102
-rw-r--r--kopete/kopete/config/appearance/emoticonseditdialog.h28
-rw-r--r--kopete/kopete/config/appearance/tooltipeditdialog.cpp72
-rw-r--r--kopete/kopete/config/appearance/tooltipeditdialog.h8
-rw-r--r--kopete/kopete/config/avdevice/avdeviceconfig.cpp52
-rw-r--r--kopete/kopete/config/avdevice/avdeviceconfig.h20
-rw-r--r--kopete/kopete/config/behavior/behaviorconfig.cpp166
-rw-r--r--kopete/kopete/config/behavior/behaviorconfig.h8
-rw-r--r--kopete/kopete/config/identity/globalidentitiesmanager.cpp72
-rw-r--r--kopete/kopete/config/identity/globalidentitiesmanager.h26
-rw-r--r--kopete/kopete/config/identity/kopeteidentityconfig.cpp130
-rw-r--r--kopete/kopete/config/identity/kopeteidentityconfig.h6
-rw-r--r--kopete/kopete/config/plugins/kopetepluginconfig.cpp16
-rw-r--r--kopete/kopete/config/plugins/kopetepluginconfig.h2
18 files changed, 531 insertions, 531 deletions
diff --git a/kopete/kopete/config/accounts/kopeteaccountconfig.cpp b/kopete/kopete/config/accounts/kopeteaccountconfig.cpp
index 3d86fb8d..feaa88fd 100644
--- a/kopete/kopete/config/accounts/kopeteaccountconfig.cpp
+++ b/kopete/kopete/config/accounts/kopeteaccountconfig.cpp
@@ -18,9 +18,9 @@
#include "kopeteaccountconfig.h"
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qguardedptr.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqguardedptr.h>
#include <kcolorbutton.h>
#include <kpushbutton.h>
@@ -47,31 +47,31 @@ class KopeteAccountLVI : public KListViewItem
private:
//need to be guarded because some accounts may be linked (that's the case of jabber transports)
- QGuardedPtr<Kopete::Account> m_account;
+ TQGuardedPtr<Kopete::Account> m_account;
};
-typedef KGenericFactory<KopeteAccountConfig, QWidget> KopeteAccountConfigFactory;
+typedef KGenericFactory<KopeteAccountConfig, TQWidget> KopeteAccountConfigFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kopete_accountconfig, KopeteAccountConfigFactory( "kcm_kopete_accountconfig" ) )
-KopeteAccountConfig::KopeteAccountConfig( QWidget *parent, const char * /* name */, const QStringList &args )
+KopeteAccountConfig::KopeteAccountConfig( TQWidget *parent, const char * /* name */, const TQStringList &args )
: KCModule( KopeteAccountConfigFactory::instance(), parent, args )
{
- ( new QVBoxLayout( this ) )->setAutoAdd( true );
+ ( new TQVBoxLayout( this ) )->setAutoAdd( true );
m_view = new KopeteAccountConfigBase( this, "KopeteAccountConfig::m_view" );
m_view->mButtonUp->setIconSet( SmallIconSet( "up" ) );
m_view->mButtonDown->setIconSet( SmallIconSet( "down" ) );
- connect( m_view->mButtonNew, SIGNAL( clicked() ), this, SLOT( slotAddAccount() ) );
- connect( m_view->mButtonEdit, SIGNAL( clicked() ), this, SLOT( slotEditAccount() ) );
- connect( m_view->mButtonRemove, SIGNAL( clicked() ), this, SLOT( slotRemoveAccount() ) );
- connect( m_view->mButtonUp, SIGNAL( clicked() ), this, SLOT( slotAccountUp() ) );
- connect( m_view->mButtonDown, SIGNAL( clicked() ), this, SLOT( slotAccountDown() ) );
- connect( m_view->mAccountList, SIGNAL( selectionChanged() ), this, SLOT( slotItemSelected() ) );
- connect( m_view->mAccountList, SIGNAL( doubleClicked( QListViewItem * ) ), this, SLOT( slotEditAccount() ) );
- connect( m_view->mUseColor, SIGNAL( toggled( bool ) ), this, SLOT( slotColorChanged() ) );
- connect( m_view->mColorButton, SIGNAL( changed( const QColor & ) ), this, SLOT( slotColorChanged() ) );
+ connect( m_view->mButtonNew, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddAccount() ) );
+ connect( m_view->mButtonEdit, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotEditAccount() ) );
+ connect( m_view->mButtonRemove, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRemoveAccount() ) );
+ connect( m_view->mButtonUp, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAccountUp() ) );
+ connect( m_view->mButtonDown, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAccountDown() ) );
+ connect( m_view->mAccountList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotItemSelected() ) );
+ connect( m_view->mAccountList, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ), this, TQT_SLOT( slotEditAccount() ) );
+ connect( m_view->mUseColor, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotColorChanged() ) );
+ connect( m_view->mColorButton, TQT_SIGNAL( changed( const TQColor & ) ), this, TQT_SLOT( slotColorChanged() ) );
m_view->mAccountList->setSorting(-1);
@@ -92,7 +92,7 @@ void KopeteAccountConfig::save()
i = static_cast<KopeteAccountLVI*>( i->nextSibling() );
}
- QMap<Kopete::Account *, QColor>::Iterator it;
+ TQMap<Kopete::Account *, TQColor>::Iterator it;
for(it=m_newColors.begin() ; it != m_newColors.end() ; ++it)
it.key()->setColor(it.data());
m_newColors.clear();
@@ -108,7 +108,7 @@ void KopeteAccountConfig::load()
m_view->mAccountList->clear();
- QPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts();
+ TQPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts();
for ( Kopete::Account *i = accounts.first() ; i; i = accounts.next() )
{
// Insert the item after the previous one
@@ -136,7 +136,7 @@ void KopeteAccountConfig::slotItemSelected()
m_view->mButtonDown->setEnabled( itemSelected->itemBelow() );
Kopete::Account *account = itemSelected->account();
- QColor color= m_newColors.contains(account) ? m_newColors[account] : account->color();
+ TQColor color= m_newColors.contains(account) ? m_newColors[account] : account->color();
m_view->mUseColor->setEnabled( true );
m_view->mUseColor->setChecked( color.isValid() );
m_view->mColorButton->setColor( color );
@@ -181,7 +181,7 @@ void KopeteAccountConfig::slotAccountDown()
void KopeteAccountConfig::slotAddAccount()
{
AddAccountWizard *m_addwizard = new AddAccountWizard( this, "addAccountWizard", true );
- connect( m_addwizard, SIGNAL( destroyed( QObject * ) ), this, SLOT( slotAddWizardDone() ) );
+ connect( m_addwizard, TQT_SIGNAL( destroyed( TQObject * ) ), this, TQT_SLOT( slotAddWizardDone() ) );
m_addwizard->show();
}
@@ -204,15 +204,15 @@ void KopeteAccountConfig::slotEditAccount()
// FIXME: Why the #### is EditAccountWidget not a QWidget?!? This sideways casting
// is braindead and error-prone. Looking at MSN the only reason I can see is
// because it allows direct subclassing of designer widgets. But what is
- // wrong with embedding the designer widget in an empty QWidget instead?
+ // wrong with embedding the designer widget in an empty TQWidget instead?
// Also, if this REALLY has to be a pure class and not a widget, then the
// class should at least be renamed to EditAccountIface instead - Martijn
- QWidget *w = dynamic_cast<QWidget *>( m_accountWidget );
+ TQWidget *w = dynamic_cast<TQWidget *>( m_accountWidget );
if ( !w )
return;
editDialog->setMainWidget( w );
- if ( editDialog->exec() == QDialog::Accepted )
+ if ( editDialog->exec() == TQDialog::Accepted )
{
if( m_accountWidget->validateData() )
m_accountWidget->apply();
@@ -263,7 +263,7 @@ void KopeteAccountConfig::slotColorChanged()
}
else if(!m_view->mUseColor->isChecked())
{ //the user disabled account coloring, but it was activated before
- m_newColors[account]=QColor();
+ m_newColors[account]=TQColor();
emit changed(true);
return;
}
diff --git a/kopete/kopete/config/accounts/kopeteaccountconfig.h b/kopete/kopete/config/accounts/kopeteaccountconfig.h
index 9aec2a60..cfaf1064 100644
--- a/kopete/kopete/config/accounts/kopeteaccountconfig.h
+++ b/kopete/kopete/config/accounts/kopeteaccountconfig.h
@@ -17,8 +17,8 @@
#define __ACCOUNTCONFIG_H
#include <kcmodule.h>
-#include <qmap.h>
-#include <qcolor.h>
+#include <tqmap.h>
+#include <tqcolor.h>
namespace Kopete
{
@@ -35,7 +35,7 @@ class KopeteAccountConfig : public KCModule
Q_OBJECT
public:
- KopeteAccountConfig(QWidget *parent, const char *name, const QStringList &args );
+ KopeteAccountConfig(TQWidget *parent, const char *name, const TQStringList &args );
public slots:
virtual void save();
@@ -43,7 +43,7 @@ public slots:
private:
KopeteAccountConfigBase *m_view;
- QMap<Kopete::Account* , QColor> m_newColors;
+ TQMap<Kopete::Account* , TQColor> m_newColors;
bool m_protected;
private slots:
diff --git a/kopete/kopete/config/appearance/appearanceconfig.cpp b/kopete/kopete/config/appearance/appearanceconfig.cpp
index d83b0801..2f7a5eaf 100644
--- a/kopete/kopete/config/appearance/appearanceconfig.cpp
+++ b/kopete/kopete/config/appearance/appearanceconfig.cpp
@@ -29,13 +29,13 @@
#include "tooltipeditdialog.h"
#include "emoticonseditdialog.h"
-#include <qcheckbox.h>
-#include <qdir.h>
-#include <qlayout.h>
-#include <qhbuttongroup.h>
-#include <qspinbox.h>
-#include <qslider.h>
-#include <qlabel.h>
+#include <tqcheckbox.h>
+#include <tqdir.h>
+#include <tqlayout.h>
+#include <tqhbuttongroup.h>
+#include <tqspinbox.h>
+#include <tqslider.h>
+#include <tqlabel.h>
#include <kdeversion.h>
#include <kinputdialog.h>
@@ -84,9 +84,9 @@
#include "kopeteemoticons.h"
#include "kopeteglobal.h"
-#include <qtabwidget.h>
+#include <tqtabwidget.h>
-typedef KGenericFactory<AppearanceConfig, QWidget> KopeteAppearanceConfigFactory;
+typedef KGenericFactory<AppearanceConfig, TQWidget> KopeteAppearanceConfigFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kopete_appearanceconfig, KopeteAppearanceConfigFactory( "kcm_kopete_appearanceconfig" ) )
class FakeProtocol;
@@ -102,7 +102,7 @@ public:
styleChanged(false)
{}
- QTabWidget *mAppearanceTabCtl;
+ TQTabWidget *mAppearanceTabCtl;
ChatMessagePart *preview;
AppearanceConfig_Emoticons *mPrfsEmoticons;
@@ -111,7 +111,7 @@ public:
AppearanceConfig_ContactList *mPrfsContactList;
// value is the style path
- QMap<QListBoxItem*,QString> styleItemMap;
+ TQMap<TQListBoxItem*,TQString> styleItemMap;
ChatWindowStyle::StyleVariants currentVariantMap;
ChatWindowStyle *currentStyle;
bool loading;
@@ -130,16 +130,16 @@ public:
class KopeteStyleNewStuff : public KNewStuff
{
public:
- KopeteStyleNewStuff(const QString &type, QWidget *parentWidget = 0)
+ KopeteStyleNewStuff(const TQString &type, TQWidget *parentWidget = 0)
: KNewStuff( type, parentWidget)
{}
- bool createUploadFile(const QString &)
+ bool createUploadFile(const TQString &)
{
return false;
}
- bool install(const QString &styleFilename)
+ bool install(const TQString &styleFilename)
{
int styleInstallReturn = 0;
styleInstallReturn = ChatWindowStyleManager::self()->installStyle( styleFilename );
@@ -179,59 +179,59 @@ public:
};
// TODO: Someday, this configuration dialog must(not should) use KConfigXT
-AppearanceConfig::AppearanceConfig(QWidget *parent, const char* /*name*/, const QStringList &args )
+AppearanceConfig::AppearanceConfig(TQWidget *parent, const char* /*name*/, const TQStringList &args )
: KCModule( KopeteAppearanceConfigFactory::instance(), parent, args )
{
d = new Private;
- (new QVBoxLayout(this))->setAutoAdd(true);
- d->mAppearanceTabCtl = new QTabWidget(this, "mAppearanceTabCtl");
+ (new TQVBoxLayout(this))->setAutoAdd(true);
+ d->mAppearanceTabCtl = new TQTabWidget(this, "mAppearanceTabCtl");
KConfig *config = KGlobal::config();
config->setGroup( "ChatWindowSettings" );
// "Emoticons" TAB ==========================================================
d->mPrfsEmoticons = new AppearanceConfig_Emoticons(d->mAppearanceTabCtl);
- connect(d->mPrfsEmoticons->chkUseEmoticons, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsEmoticons->chkRequireSpaces, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsEmoticons->icon_theme_list, SIGNAL(selectionChanged()),
- this, SLOT(slotSelectedEmoticonsThemeChanged()));
- connect(d->mPrfsEmoticons->btnInstallTheme, SIGNAL(clicked()),
- this, SLOT(installEmoticonTheme()));
-
- connect(d->mPrfsEmoticons->btnGetThemes, SIGNAL(clicked()),
- this, SLOT(slotGetEmoticonThemes()));
- connect(d->mPrfsEmoticons->btnRemoveTheme, SIGNAL(clicked()),
- this, SLOT(removeSelectedEmoticonTheme()));
- connect(d->mPrfsEmoticons->btnEditThemes, SIGNAL(clicked()),
- this, SLOT(editSelectedEmoticonTheme()));
+ connect(d->mPrfsEmoticons->chkUseEmoticons, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsEmoticons->chkRequireSpaces, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsEmoticons->icon_theme_list, TQT_SIGNAL(selectionChanged()),
+ this, TQT_SLOT(slotSelectedEmoticonsThemeChanged()));
+ connect(d->mPrfsEmoticons->btnInstallTheme, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(installEmoticonTheme()));
+
+ connect(d->mPrfsEmoticons->btnGetThemes, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotGetEmoticonThemes()));
+ connect(d->mPrfsEmoticons->btnRemoveTheme, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(removeSelectedEmoticonTheme()));
+ connect(d->mPrfsEmoticons->btnEditThemes, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(editSelectedEmoticonTheme()));
d->mAppearanceTabCtl->addTab(d->mPrfsEmoticons, i18n("&Emoticons"));
// "Chat Window" TAB ========================================================
d->mPrfsChatWindow = new AppearanceConfig_ChatWindow(d->mAppearanceTabCtl);
- connect(d->mPrfsChatWindow->styleList, SIGNAL(selectionChanged(QListBoxItem *)),
- this, SLOT(slotChatStyleSelected()));
- connect(d->mPrfsChatWindow->variantList, SIGNAL(activated(const QString&)),
- this, SLOT(slotChatStyleVariantSelected(const QString &)));
- connect(d->mPrfsChatWindow->deleteButton, SIGNAL(clicked()),
- this, SLOT(slotDeleteChatStyle()));
- connect(d->mPrfsChatWindow->installButton, SIGNAL(clicked()),
- this, SLOT(slotInstallChatStyle()));
- connect(d->mPrfsChatWindow->btnGetStyles, SIGNAL(clicked()),
- this, SLOT(slotGetChatStyles()));
- connect(d->mPrfsChatWindow->groupConsecutiveMessages, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
+ connect(d->mPrfsChatWindow->styleList, TQT_SIGNAL(selectionChanged(TQListBoxItem *)),
+ this, TQT_SLOT(slotChatStyleSelected()));
+ connect(d->mPrfsChatWindow->variantList, TQT_SIGNAL(activated(const TQString&)),
+ this, TQT_SLOT(slotChatStyleVariantSelected(const TQString &)));
+ connect(d->mPrfsChatWindow->deleteButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotDeleteChatStyle()));
+ connect(d->mPrfsChatWindow->installButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotInstallChatStyle()));
+ connect(d->mPrfsChatWindow->btnGetStyles, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotGetChatStyles()));
+ connect(d->mPrfsChatWindow->groupConsecutiveMessages, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
// Show the available styles when the Manager has finish to load the styles.
- connect(ChatWindowStyleManager::self(), SIGNAL(loadStylesFinished()), this, SLOT(slotLoadChatStyles()));
+ connect(ChatWindowStyleManager::self(), TQT_SIGNAL(loadStylesFinished()), this, TQT_SLOT(slotLoadChatStyles()));
- d->mPrfsChatWindow->htmlFrame->setFrameStyle(QFrame::WinPanel | QFrame::Sunken);
+ d->mPrfsChatWindow->htmlFrame->setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken);
// Create the fake Chat Session
createPreviewChatSession();
- QVBoxLayout *l = new QVBoxLayout(d->mPrfsChatWindow->htmlFrame);
+ TQVBoxLayout *l = new TQVBoxLayout(d->mPrfsChatWindow->htmlFrame);
d->preview = new ChatMessagePart(d->previewChatSession, d->mPrfsChatWindow->htmlFrame, "preview");
d->preview->setJScriptEnabled(false);
d->preview->setJavaEnabled(false);
@@ -242,7 +242,7 @@ AppearanceConfig::AppearanceConfig(QWidget *parent, const char* /*name*/, const
htmlWidget->setMarginHeight(4);
htmlWidget->setFocusPolicy(NoFocus);
htmlWidget->setSizePolicy(
- QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
+ TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
l->addWidget(htmlWidget);
// Add the preview message to the ChatMessagePart
createPreviewMessages();
@@ -251,28 +251,28 @@ AppearanceConfig::AppearanceConfig(QWidget *parent, const char* /*name*/, const
// "Contact List" TAB =======================================================
d->mPrfsContactList = new AppearanceConfig_ContactList(d->mAppearanceTabCtl);
- connect(d->mPrfsContactList->mTreeContactList, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsContactList->mSortByGroup, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsContactList->mEditTooltips, SIGNAL(clicked()),
- this, SLOT(slotEditTooltips()));
- connect(d->mPrfsContactList->mIndentContacts, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsContactList->mDisplayMode, SIGNAL(clicked(int)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsContactList->mIconMode, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsContactList->mAnimateChanges, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsContactList->mFadeVisibility, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsContactList->mFoldVisibility, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsContactList->mAutoHide, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsContactList->mAutoHideTimeout, SIGNAL(valueChanged(int)),
- this, SLOT(emitChanged()));
+ connect(d->mPrfsContactList->mTreeContactList, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsContactList->mSortByGroup, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsContactList->mEditTooltips, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotEditTooltips()));
+ connect(d->mPrfsContactList->mIndentContacts, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsContactList->mDisplayMode, TQT_SIGNAL(clicked(int)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsContactList->mIconMode, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsContactList->mAnimateChanges, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsContactList->mFadeVisibility, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsContactList->mFoldVisibility, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsContactList->mAutoHide, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsContactList->mAutoHideTimeout, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(emitChanged()));
// don't enable the checkbox if XRender is not available
#ifdef HAVE_XRENDER
@@ -285,37 +285,37 @@ AppearanceConfig::AppearanceConfig(QWidget *parent, const char* /*name*/, const
// "Colors and Fonts" TAB ===================================================
d->mPrfsColors = new AppearanceConfig_Colors(d->mAppearanceTabCtl);
- connect(d->mPrfsColors->foregroundColor, SIGNAL(changed(const QColor &)),
- this, SLOT(slotHighlightChanged()));
- connect(d->mPrfsColors->backgroundColor, SIGNAL(changed(const QColor &)),
- this, SLOT(slotHighlightChanged()));
- connect(d->mPrfsColors->fontFace, SIGNAL(fontSelected(const QFont &)),
- this, SLOT(slotChangeFont()));
- connect(d->mPrfsColors->textColor, SIGNAL(changed(const QColor &)),
- this, SLOT(slotUpdateChatPreview()));
- connect(d->mPrfsColors->bgColor, SIGNAL(changed(const QColor &)),
- this, SLOT(slotUpdateChatPreview()));
- connect(d->mPrfsColors->linkColor, SIGNAL(changed(const QColor &)),
- this, SLOT(slotUpdateChatPreview()));
- connect(d->mPrfsColors->mGreyIdleMetaContacts, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsColors->idleContactColor, SIGNAL(changed(const QColor &)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsColors->mUseCustomFonts, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsColors->mSmallFont, SIGNAL(fontSelected(const QFont &)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsColors->mNormalFont, SIGNAL(fontSelected(const QFont &)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsColors->mGroupNameColor, SIGNAL(changed(const QColor &)),
- this, SLOT(emitChanged()));
-
- connect(d->mPrfsColors->mBgOverride, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsColors->mFgOverride, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
- connect(d->mPrfsColors->mRtfOverride, SIGNAL(toggled(bool)),
- this, SLOT(emitChanged()));
+ connect(d->mPrfsColors->foregroundColor, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(slotHighlightChanged()));
+ connect(d->mPrfsColors->backgroundColor, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(slotHighlightChanged()));
+ connect(d->mPrfsColors->fontFace, TQT_SIGNAL(fontSelected(const TQFont &)),
+ this, TQT_SLOT(slotChangeFont()));
+ connect(d->mPrfsColors->textColor, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(slotUpdateChatPreview()));
+ connect(d->mPrfsColors->bgColor, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(slotUpdateChatPreview()));
+ connect(d->mPrfsColors->linkColor, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(slotUpdateChatPreview()));
+ connect(d->mPrfsColors->mGreyIdleMetaContacts, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsColors->idleContactColor, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsColors->mUseCustomFonts, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsColors->mSmallFont, TQT_SIGNAL(fontSelected(const TQFont &)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsColors->mNormalFont, TQT_SIGNAL(fontSelected(const TQFont &)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsColors->mGroupNameColor, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(emitChanged()));
+
+ connect(d->mPrfsColors->mBgOverride, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsColors->mFgOverride, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
+ connect(d->mPrfsColors->mRtfOverride, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(emitChanged()));
d->mAppearanceTabCtl->addTab(d->mPrfsColors, i18n("Colors && Fonts"));
@@ -331,8 +331,8 @@ AppearanceConfig::~AppearanceConfig()
void AppearanceConfig::updateEmoticonsButton(bool _b)
{
- QString themeName = d->mPrfsEmoticons->icon_theme_list->currentText();
- QFileInfo fileInf(KGlobal::dirs()->findResource("emoticons", themeName+"/"));
+ TQString themeName = d->mPrfsEmoticons->icon_theme_list->currentText();
+ TQFileInfo fileInf(KGlobal::dirs()->findResource("emoticons", themeName+"/"));
d->mPrfsEmoticons->btnRemoveTheme->setEnabled( _b && fileInf.isWritable());
d->mPrfsEmoticons->btnGetThemes->setEnabled( false );
}
@@ -499,28 +499,28 @@ void AppearanceConfig::updateEmoticonlist()
d->mPrfsEmoticons->icon_theme_list->clear(); // Wipe out old list
// Get a list of directories in our icon theme dir
- QStringList themeDirs = KGlobal::dirs()->findDirs("emoticons", "");
+ TQStringList themeDirs = KGlobal::dirs()->findDirs("emoticons", "");
// loop adding themes from all dirs into theme-list
for(unsigned int x = 0;x < themeDirs.count();x++)
{
- QDir themeQDir(themeDirs[x]);
- themeQDir.setFilter( QDir::Dirs ); // only scan for subdirs
- themeQDir.setSorting( QDir::Name ); // I guess name is as good as any
+ TQDir themeQDir(themeDirs[x]);
+ themeQDir.setFilter( TQDir::Dirs ); // only scan for subdirs
+ themeQDir.setSorting( TQDir::Name ); // I guess name is as good as any
for(unsigned int y = 0; y < themeQDir.count(); y++)
{
- QStringList themes = themeQDir.entryList(QDir::Dirs, QDir::Name);
+ TQStringList themes = themeQDir.entryList(TQDir::Dirs, TQDir::Name);
// We don't care for '.' and '..'
if ( themeQDir[y] != "." && themeQDir[y] != ".." )
{
// Add ourselves to the list, using our directory name FIXME: use the first emoticon of the theme.
- QPixmap previewPixmap = QPixmap(locate("emoticons", themeQDir[y]+"/smile.png"));
+ TQPixmap previewPixmap = TQPixmap(locate("emoticons", themeQDir[y]+"/smile.png"));
d->mPrfsEmoticons->icon_theme_list->insertItem(previewPixmap,themeQDir[y]);
}
}
}
// Where is that theme in our big-list-o-themes?
- QListBoxItem *item = d->mPrfsEmoticons->icon_theme_list->findItem( p->iconTheme() );
+ TQListBoxItem *item = d->mPrfsEmoticons->icon_theme_list->findItem( p->iconTheme() );
if (item) // found it... make it the currently selected theme
d->mPrfsEmoticons->icon_theme_list->setCurrentItem( item );
@@ -530,18 +530,18 @@ void AppearanceConfig::updateEmoticonlist()
void AppearanceConfig::slotSelectedEmoticonsThemeChanged()
{
- QString themeName = d->mPrfsEmoticons->icon_theme_list->currentText();
- QFileInfo fileInf(KGlobal::dirs()->findResource("emoticons", themeName+"/"));
+ TQString themeName = d->mPrfsEmoticons->icon_theme_list->currentText();
+ TQFileInfo fileInf(KGlobal::dirs()->findResource("emoticons", themeName+"/"));
d->mPrfsEmoticons->btnRemoveTheme->setEnabled( fileInf.isWritable() );
Kopete::Emoticons emoticons( themeName );
- QStringList smileys = emoticons.emoticonAndPicList().keys();
- QString newContentText = "<qt>";
+ TQStringList smileys = emoticons.emoticonAndPicList().keys();
+ TQString newContentText = "<qt>";
- for(QStringList::Iterator it = smileys.begin(); it != smileys.end(); ++it )
- newContentText += QString::fromLatin1("<img src=\"%1\"> ").arg(*it);
+ for(TQStringList::Iterator it = smileys.begin(); it != smileys.end(); ++it )
+ newContentText += TQString::fromLatin1("<img src=\"%1\"> ").arg(*it);
- newContentText += QString::fromLatin1("</qt>");
+ newContentText += TQString::fromLatin1("</qt>");
d->mPrfsEmoticons->icon_theme_preview->setText(newContentText);
emitChanged();
}
@@ -563,7 +563,7 @@ void AppearanceConfig::slotChangeFont()
void AppearanceConfig::slotChatStyleSelected()
{
// Retrieve variant list.
- QString stylePath = d->styleItemMap[d->mPrfsChatWindow->styleList->selectedItem()];
+ TQString stylePath = d->styleItemMap[d->mPrfsChatWindow->styleList->selectedItem()];
d->currentStyle = ChatWindowStyleManager::self()->getStyleFromPool( stylePath );
if(d->currentStyle)
@@ -603,7 +603,7 @@ void AppearanceConfig::slotChatStyleSelected()
}
}
-void AppearanceConfig::slotChatStyleVariantSelected(const QString &variantName)
+void AppearanceConfig::slotChatStyleVariantSelected(const TQString &variantName)
{
// kdDebug(14000) << k_funcinfo << variantName << endl;
// kdDebug(14000) << k_funcinfo << d->currentVariantMap[variantName] << endl;
@@ -615,11 +615,11 @@ void AppearanceConfig::slotChatStyleVariantSelected(const QString &variantName)
void AppearanceConfig::slotInstallChatStyle()
{
- KURL styleToInstall = KFileDialog::getOpenURL( QString::null, QString::fromUtf8("application/x-zip application/x-tgz application/x-tbz"), this, i18n("Choose Chat Window style to install.") );
+ KURL styleToInstall = KFileDialog::getOpenURL( TQString::null, TQString::fromUtf8("application/x-zip application/x-tgz application/x-tbz"), this, i18n("Choose Chat Window style to install.") );
if( !styleToInstall.isEmpty() )
{
- QString stylePath;
+ TQString stylePath;
if( KIO::NetAccess::download( styleToInstall, stylePath, this ) )
{
int styleInstallReturn = 0;
@@ -660,14 +660,14 @@ void AppearanceConfig::slotInstallChatStyle()
void AppearanceConfig::slotDeleteChatStyle()
{
- QString styleName = d->mPrfsChatWindow->styleList->selectedItem()->text();
- QString stylePathToDelete = d->styleItemMap[d->mPrfsChatWindow->styleList->selectedItem()];
+ TQString styleName = d->mPrfsChatWindow->styleList->selectedItem()->text();
+ TQString stylePathToDelete = d->styleItemMap[d->mPrfsChatWindow->styleList->selectedItem()];
if( ChatWindowStyleManager::self()->removeStyle(stylePathToDelete) )
{
KMessageBox::queuedMessageBox(this, KMessageBox::Information, i18n("It's the deleted style name", "The style %1 was successfully deleted.").arg(styleName));
// Get the first item in the stye List.
- QString stylePath = (*d->styleItemMap.begin());
+ TQString stylePath = (*d->styleItemMap.begin());
d->currentStyle = ChatWindowStyleManager::self()->getStyleFromPool(stylePath);
emitChanged();
}
@@ -686,7 +686,7 @@ void AppearanceConfig::slotGetChatStyles()
downloadDialog->setType( "kopete/chatstyle" );
// you have to do this by hand when providing your own Engine
KNS::ProviderLoader *provider = new KNS::ProviderLoader( this );
- QObject::connect( provider, SIGNAL( providersLoaded(Provider::List*) ), downloadDialog, SLOT( slotProviders (Provider::List *) ) );
+ TQObject::connect( provider, TQT_SIGNAL( providersLoaded(Provider::List*) ), downloadDialog, TQT_SLOT( slotProviders (Provider::List *) ) );
provider->load( "kopete/chatstyle", "http://download.kde.org/khotnewstuff/kopetestyles12-providers.xml" );
downloadDialog->exec();
}
@@ -696,7 +696,7 @@ void AppearanceConfig::slotGetChatStyles()
class FakeContact : public Kopete::Contact
{
public:
- FakeContact (Kopete::Account *account, const QString &id, Kopete::MetaContact *mc ) : Kopete::Contact( account, id, mc ) {}
+ FakeContact (Kopete::Account *account, const TQString &id, Kopete::MetaContact *mc ) : Kopete::Contact( account, id, mc ) {}
virtual Kopete::ChatSession *manager(Kopete::Contact::CanCreateFlags /*c*/) { return 0L; }
virtual void slotUserInfo() {};
};
@@ -705,29 +705,29 @@ public:
class FakeProtocol : public Kopete::Protocol
{
public:
-FakeProtocol( KInstance *instance, QObject *parent, const char *name ) : Kopete::Protocol(instance, parent, name){}
-Kopete::Account* createNewAccount( const QString &/*accountId*/ ){return 0L;}
-AddContactPage* createAddContactWidget( QWidget */*parent*/, Kopete::Account */*account*/){return 0L;}
-KopeteEditAccountWidget* createEditAccountWidget( Kopete::Account */*account*/, QWidget */*parent */){return 0L;}
+FakeProtocol( KInstance *instance, TQObject *parent, const char *name ) : Kopete::Protocol(instance, parent, name){}
+Kopete::Account* createNewAccount( const TQString &/*accountId*/ ){return 0L;}
+AddContactPage* createAddContactWidget( TQWidget */*parent*/, Kopete::Account */*account*/){return 0L;}
+KopeteEditAccountWidget* createEditAccountWidget( Kopete::Account */*account*/, TQWidget */*parent */){return 0L;}
};
// This is for style preview.
class FakeAccount : public Kopete::Account
{
public:
-FakeAccount(Kopete::Protocol *parent, const QString &accountID, const char *name) : Kopete::Account(parent, accountID, name){}
+FakeAccount(Kopete::Protocol *parent, const TQString &accountID, const char *name) : Kopete::Account(parent, accountID, name){}
~FakeAccount()
{}
-bool createContact( const QString &/*contactId*/, Kopete::MetaContact */*parentContact*/ ){return true;}
+bool createContact( const TQString &/*contactId*/, Kopete::MetaContact */*parentContact*/ ){return true;}
void connect( const Kopete::OnlineStatus& /*initialStatus*/){}
void disconnect(){}
-void setOnlineStatus( const Kopete::OnlineStatus& /*status*/ , const QString &/*reason*/){}
+void setOnlineStatus( const Kopete::OnlineStatus& /*status*/ , const TQString &/*reason*/){}
};
void AppearanceConfig::createPreviewChatSession()
{
- d->previewProtocol = new FakeProtocol( new KInstance(QCString("kopete-preview-chatwindowstyle")), 0L, "kopete-preview-chatwindowstyle");
- d->previewAccount = new FakeAccount(d->previewProtocol, QString("previewaccount"), 0);
+ d->previewProtocol = new FakeProtocol( new KInstance(TQCString("kopete-preview-chatwindowstyle")), 0L, "kopete-preview-chatwindowstyle");
+ d->previewAccount = new FakeAccount(d->previewProtocol, TQString("previewaccount"), 0);
// Create fake meta/contacts
d->myselfMetaContact = new Kopete::MetaContact();
@@ -757,11 +757,11 @@ void AppearanceConfig::createPreviewMessages()
Kopete::Message msgOut2( d->myself, d->jack, i18n( "Ok, a outgoing consecutive message." ), Kopete::Message::Outbound );
Kopete::Message msgCol( d->jack, d->myself, i18n( "Here is an incoming colored message" ), Kopete::Message::Inbound );
- msgCol.setFg( QColor( "DodgerBlue" ) );
- msgCol.setBg( QColor( "LightSteelBlue" ) );
+ msgCol.setFg( TQColor( "DodgerBlue" ) );
+ msgCol.setBg( TQColor( "LightSteelBlue" ) );
Kopete::Message msgInt( d->jack, d->myself, i18n( "This is an internal message" ), Kopete::Message::Internal );
Kopete::Message msgAct( d->jack, d->myself, i18n( "performed an action" ), Kopete::Message::Inbound,
- Kopete::Message::PlainText, QString::null, Kopete::Message::TypeAction );
+ Kopete::Message::PlainText, TQString::null, Kopete::Message::TypeAction );
Kopete::Message msgHigh( d->jack, d->myself, i18n( "This is a highlighted message" ), Kopete::Message::Inbound );
msgHigh.setImportance( Kopete::Message::Highlight );
// This is a UTF-8 string btw.
@@ -801,7 +801,7 @@ void AppearanceConfig::emitChanged()
void AppearanceConfig::installEmoticonTheme()
{
- KURL themeURL = KURLRequesterDlg::getURL(QString::null, this,
+ KURL themeURL = KURLRequesterDlg::getURL(TQString::null, this,
i18n("Drag or Type Emoticon Theme URL"));
if ( themeURL.isEmpty() )
return;
@@ -820,13 +820,13 @@ void AppearanceConfig::installEmoticonTheme()
void AppearanceConfig::removeSelectedEmoticonTheme()
{
- QListBoxItem *selected = d->mPrfsEmoticons->icon_theme_list->selectedItem();
+ TQListBoxItem *selected = d->mPrfsEmoticons->icon_theme_list->selectedItem();
if(selected==0)
return;
- QString themeName = selected->text();
+ TQString themeName = selected->text();
- QString question=i18n("<qt>Are you sure you want to remove the "
+ TQString question=i18n("<qt>Are you sure you want to remove the "
"<strong>%1</strong> emoticon theme?<br>"
"<br>"
"This will delete the files installed by this theme.</qt>").
@@ -864,18 +864,18 @@ void AppearanceConfig::slotGetEmoticonThemes()
void AppearanceConfig::slotEditTooltips()
{
TooltipEditDialog *dlg = new TooltipEditDialog(this);
- connect(dlg, SIGNAL(changed(bool)), this, SIGNAL(changed(bool)));
+ connect(dlg, TQT_SIGNAL(changed(bool)), this, TQT_SIGNAL(changed(bool)));
dlg->exec();
delete dlg;
}
void AppearanceConfig::editSelectedEmoticonTheme()
{
- QListBoxItem *selected = d->mPrfsEmoticons->icon_theme_list->selectedItem();
+ TQListBoxItem *selected = d->mPrfsEmoticons->icon_theme_list->selectedItem();
if(selected==0)
return;
- QString themeName = selected->text();
+ TQString themeName = selected->text();
EmoticonsEditDialog *dlg = new EmoticonsEditDialog(this, themeName);
dlg->exec();
diff --git a/kopete/kopete/config/appearance/appearanceconfig.h b/kopete/kopete/config/appearance/appearanceconfig.h
index 747117c6..e380542d 100644
--- a/kopete/kopete/config/appearance/appearanceconfig.h
+++ b/kopete/kopete/config/appearance/appearanceconfig.h
@@ -20,8 +20,8 @@
#define __APPEARANCE_H
#include "kcmodule.h"
-#include <qptrlist.h>
-#include <qmap.h>
+#include <tqptrlist.h>
+#include <tqmap.h>
/**
* @author Duncan Mac-Vicar P. <duncan@kde.org>
@@ -34,7 +34,7 @@ class AppearanceConfig : public KCModule
friend class KopeteStyleNewStuff;
public:
- AppearanceConfig( QWidget *parent, const char *name, const QStringList &args );
+ AppearanceConfig( TQWidget *parent, const char *name, const TQStringList &args );
~AppearanceConfig();
virtual void save();
@@ -48,7 +48,7 @@ private slots:
void slotInstallChatStyle();
void slotDeleteChatStyle();
void slotChatStyleSelected();
- void slotChatStyleVariantSelected(const QString &variantName);
+ void slotChatStyleVariantSelected(const TQString &variantName);
void slotEditTooltips();
void emitChanged();
void installEmoticonTheme();
diff --git a/kopete/kopete/config/appearance/emoticonseditdialog.cpp b/kopete/kopete/config/appearance/emoticonseditdialog.cpp
index 21e12231..af62e4ff 100644
--- a/kopete/kopete/config/appearance/emoticonseditdialog.cpp
+++ b/kopete/kopete/config/appearance/emoticonseditdialog.cpp
@@ -25,19 +25,19 @@
#include <kstandarddirs.h>
#include <kfiledialog.h>
#include <kio/job.h>
-#include <qpixmap.h>
-#include <qheader.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqpixmap.h>
+#include <tqheader.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
-EditDialog::EditDialog(QWidget *parent, const char* name)
+EditDialog::EditDialog(TQWidget *parent, const char* name)
: KDialogBase(parent, name, true, i18n(name), Ok|Cancel, Ok, true)
{
setupDlg();
}
-EditDialog::EditDialog(QWidget *parent, const char* name, QPixmap emot, QString text, QString file)
+EditDialog::EditDialog(TQWidget *parent, const char* name, TQPixmap emot, TQString text, TQString file)
: KDialogBase(parent, name, true, i18n(name), Ok|Cancel, Ok, true)
{
setupDlg();
@@ -48,19 +48,19 @@ EditDialog::EditDialog(QWidget *parent, const char* name, QPixmap emot, QString
void EditDialog::setupDlg()
{
- wdg = new QWidget(this);
- QVBoxLayout *vl = new QVBoxLayout(wdg, 11, 6);
- QHBoxLayout *hb = new QHBoxLayout(wdg, 0, 6);
+ wdg = new TQWidget(this);
+ TQVBoxLayout *vl = new TQVBoxLayout(wdg, 11, 6);
+ TQHBoxLayout *hb = new TQHBoxLayout(wdg, 0, 6);
leText = new KLineEdit(wdg);
btnIcon = new KPushButton(wdg);
- btnIcon->setFixedSize(QSize(64, 64));
+ btnIcon->setFixedSize(TQSize(64, 64));
- vl->addWidget(new QLabel(i18n("Insert the string for the emoticon\nseparated by space if you want multiple strings"), wdg));
+ vl->addWidget(new TQLabel(i18n("Insert the string for the emoticon\nseparated by space if you want multiple strings"), wdg));
hb->addWidget(btnIcon);
hb->addWidget(leText);
vl->addLayout(hb);
setMainWidget(wdg);
- connect(btnIcon, SIGNAL(clicked()), this, SLOT(btnIconClicked()));
+ connect(btnIcon, TQT_SIGNAL(clicked()), this, TQT_SLOT(btnIconClicked()));
}
void EditDialog::btnIconClicked()
@@ -75,17 +75,17 @@ void EditDialog::btnIconClicked()
if(emoticon.isEmpty())
return;
- btnIcon->setPixmap(QPixmap(emoticon));
+ btnIcon->setPixmap(TQPixmap(emoticon));
}
-EmoticonsEditDialog::EmoticonsEditDialog(QWidget *parent, QString theme, const char* name)
+EmoticonsEditDialog::EmoticonsEditDialog(TQWidget *parent, TQString theme, const char* name)
: KDialogBase(parent, name, true, i18n("Emoticons Editor"), Ok|Cancel, Ok, true)
{
themeName = theme;
mMainWidget = new EmoticonsEditWidget(this, "EmoticonsEditDialog::mMainWidget");
setMainWidget(mMainWidget);
- resize(QSize(450, 350));
+ resize(TQSize(450, 350));
mMainWidget->btnAdd->setGuiItem(KStdGuiItem::add());
mMainWidget->btnEdit->setText(i18n("Edit..."));
mMainWidget->btnRemove->setGuiItem(KStdGuiItem::remove());
@@ -96,22 +96,22 @@ EmoticonsEditDialog::EmoticonsEditDialog(QWidget *parent, QString theme, const c
mMainWidget->klvEmoticons->addColumn("File", 0);
mMainWidget->klvEmoticons->header()->hide();
Kopete::Emoticons emoticons( theme );
- QMap<QString, QStringList> smileys = emoticons.emoticonAndPicList();
+ TQMap<TQString, TQStringList> smileys = emoticons.emoticonAndPicList();
- for(QMap<QString, QStringList>::Iterator it = smileys.begin(); it != smileys.end(); ++it )
+ for(TQMap<TQString, TQStringList>::Iterator it = smileys.begin(); it != smileys.end(); ++it )
{
KListViewItem *itm = new KListViewItem(mMainWidget->klvEmoticons);
- itm->setPixmap(0, QPixmap(it.key()));
- itm->setText(2, QFileInfo(it.key()).baseName());
- QString text = *it.data().at(0);
+ itm->setPixmap(0, TQPixmap(it.key()));
+ itm->setText(2, TQFileInfo(it.key()).baseName());
+ TQString text = *it.data().at(0);
for(uint i = 1; i < it.data().size(); i++) {
text += " " + *it.data().at(i);
}
itm->setText(1, text);
}
- QFile *fp = new QFile(KGlobal::dirs()->saveLocation( "emoticons", themeName, false ) + "/emoticons.xml");
+ TQFile *fp = new TQFile(KGlobal::dirs()->saveLocation( "emoticons", themeName, false ) + "/emoticons.xml");
if( !fp->exists() ) {
kdWarning() << "EmoticonsEditDialog::EmoticonsEditDialog() " << fp->name() << " doesn't exist!" << endl;
@@ -131,18 +131,18 @@ EmoticonsEditDialog::EmoticonsEditDialog(QWidget *parent, QString theme, const c
fp->close();
- mMainWidget->klvEmoticons->setColumnWidth(0, QListView::Maximum);
- mMainWidget->klvEmoticons->setColumnWidth(1, QListView::Maximum);
+ mMainWidget->klvEmoticons->setColumnWidth(0, TQListView::Maximum);
+ mMainWidget->klvEmoticons->setColumnWidth(1, TQListView::Maximum);
- connect(this, SIGNAL(okClicked()), this, SLOT(slotOkClicked()));
- connect(mMainWidget->btnAdd, SIGNAL(clicked()), this, SLOT(slotAddClicked()));
- connect(mMainWidget->btnEdit, SIGNAL(clicked()), this, SLOT(slotEditClicked()));
- connect(mMainWidget->btnRemove, SIGNAL(clicked()), this, SLOT(slotRemoveClicked()));
+ connect(this, TQT_SIGNAL(okClicked()), this, TQT_SLOT(slotOkClicked()));
+ connect(mMainWidget->btnAdd, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddClicked()));
+ connect(mMainWidget->btnEdit, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditClicked()));
+ connect(mMainWidget->btnRemove, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRemoveClicked()));
}
void EmoticonsEditDialog::slotOkClicked()
{
- QFile *fp = new QFile(KGlobal::dirs()->saveLocation( "emoticons", themeName, false ) + "/emoticons.xml");
+ TQFile *fp = new TQFile(KGlobal::dirs()->saveLocation( "emoticons", themeName, false ) + "/emoticons.xml");
if( !fp->exists() ) {
kdWarning() << "EmoticonsEditDialog::slotOkClicked() " << fp->name() << " doesn't exist!" << endl;
@@ -154,7 +154,7 @@ void EmoticonsEditDialog::slotOkClicked()
return;
}
- QTextStream emoStream(fp);
+ TQTextStream emoStream(fp);
emoStream << themeXml.toString(4);
fp->close();
}
@@ -163,7 +163,7 @@ void EmoticonsEditDialog::slotAddClicked()
{
EditDialog *dlg = new EditDialog(this, "Add emoticon");
- if(dlg->exec() == QDialog::Rejected)
+ if(dlg->exec() == TQDialog::Rejected)
return;
if(dlg->getText().isEmpty() || !dlg->getEmoticon())
@@ -182,29 +182,29 @@ void EmoticonsEditDialog::slotEditClicked()
dlg = new EditDialog(this, "Edit emoticon", *mMainWidget->klvEmoticons->selectedItem()->pixmap(0), mMainWidget->klvEmoticons->selectedItem()->text(1), mMainWidget->klvEmoticons->selectedItem()->text(2));
- if(dlg->exec() == QDialog::Rejected)
+ if(dlg->exec() == TQDialog::Rejected)
return;
if(dlg->getText().isEmpty() || !dlg->getEmoticon())
return;
bool copy;
- QString emo = dlg->getEmoticon();
+ TQString emo = dlg->getEmoticon();
if(mMainWidget->klvEmoticons->selectedItem()->text(2) != dlg->getEmoticon()) {
copy = true;
} else {
copy = false;
- QString f = mMainWidget->klvEmoticons->selectedItem()->text(2);
+ TQString f = mMainWidget->klvEmoticons->selectedItem()->text(2);
KStandardDirs *dir = KGlobal::dirs();
- emo = dir->findResource( "emoticons", themeName + QString::fromLatin1( "/" ) + f );
+ emo = dir->findResource( "emoticons", themeName + TQString::fromLatin1( "/" ) + f );
if( emo.isNull() )
- emo = dir->findResource( "emoticons", themeName + QString::fromLatin1( "/" ) + f + QString::fromLatin1( ".mng" ) );
+ emo = dir->findResource( "emoticons", themeName + TQString::fromLatin1( "/" ) + f + TQString::fromLatin1( ".mng" ) );
if ( emo.isNull() )
- emo = dir->findResource( "emoticons", themeName + QString::fromLatin1( "/" ) + f + QString::fromLatin1( ".png" ) );
+ emo = dir->findResource( "emoticons", themeName + TQString::fromLatin1( "/" ) + f + TQString::fromLatin1( ".png" ) );
if ( emo.isNull() )
- emo = dir->findResource( "emoticons", themeName + QString::fromLatin1( "/" ) + f + QString::fromLatin1( ".gif" ) );
+ emo = dir->findResource( "emoticons", themeName + TQString::fromLatin1( "/" ) + f + TQString::fromLatin1( ".gif" ) );
if ( emo.isNull() )
return;
}
@@ -223,44 +223,44 @@ void EmoticonsEditDialog::slotRemoveClicked()
removeEmoticon(mMainWidget->klvEmoticons->selectedItem()->text(2));
}
-void EmoticonsEditDialog::addEmoticon(QString emo, QString text, bool copy)
+void EmoticonsEditDialog::addEmoticon(TQString emo, TQString text, bool copy)
{
if(copy)
KIO::copy(emo, KGlobal::dirs()->saveLocation( "emoticons", themeName, false ));
KListViewItem *itm = new KListViewItem(mMainWidget->klvEmoticons);
- itm->setPixmap(0, QPixmap(emo));
+ itm->setPixmap(0, TQPixmap(emo));
itm->setText(1, text);
- itm->setText(2, QFileInfo(emo).baseName());
+ itm->setText(2, TQFileInfo(emo).baseName());
- QDomNode lc = themeXml.lastChild();
+ TQDomNode lc = themeXml.lastChild();
if(lc.isNull())
return;
- QDomElement emoticon = themeXml.createElement("emoticon");
- emoticon.setAttribute("file", QFileInfo(emo).baseName());
+ TQDomElement emoticon = themeXml.createElement("emoticon");
+ emoticon.setAttribute("file", TQFileInfo(emo).baseName());
lc.appendChild(emoticon);
- QStringList splitted = QStringList::split(" ", text);
- QStringList::const_iterator constIterator;
+ TQStringList splitted = TQStringList::split(" ", text);
+ TQStringList::const_iterator constIterator;
for(constIterator = splitted.begin(); constIterator != splitted.end(); constIterator++)
{
- QDomElement emotext = themeXml.createElement("string");
- QDomText txt = themeXml.createTextNode((*constIterator).stripWhiteSpace());
+ TQDomElement emotext = themeXml.createElement("string");
+ TQDomText txt = themeXml.createTextNode((*constIterator).stripWhiteSpace());
emotext.appendChild(txt);
emoticon.appendChild(emotext);
}
}
-void EmoticonsEditDialog::removeEmoticon(QString emo)
+void EmoticonsEditDialog::removeEmoticon(TQString emo)
{
- QDomNode lc = themeXml.lastChild();
+ TQDomNode lc = themeXml.lastChild();
if(lc.isNull())
return;
- QDomNodeList nl = lc.childNodes();
+ TQDomNodeList nl = lc.childNodes();
for(uint i = 0; i < nl.length(); i++) {
- QDomElement de = nl.item(i).toElement();
+ TQDomElement de = nl.item(i).toElement();
if(!de.isNull() && de.tagName() == "emoticon" && de.attribute("file") == emo) {
lc.removeChild(de);
delete mMainWidget->klvEmoticons->selectedItem();
diff --git a/kopete/kopete/config/appearance/emoticonseditdialog.h b/kopete/kopete/config/appearance/emoticonseditdialog.h
index 4bbaccda..fe5b8426 100644
--- a/kopete/kopete/config/appearance/emoticonseditdialog.h
+++ b/kopete/kopete/config/appearance/emoticonseditdialog.h
@@ -17,12 +17,12 @@
#define EMOTICONSEDITDIALOG_H
#include <kdebug.h>
-#include <qhbox.h>
+#include <tqhbox.h>
#include <kdialogbase.h>
#include <klineedit.h>
#include <kpushbutton.h>
-#include <qfile.h>
-#include <qdom.h>
+#include <tqfile.h>
+#include <tqdom.h>
class EmoticonsEditWidget;
@@ -31,18 +31,18 @@ class EditDialog : public KDialogBase
Q_OBJECT
public:
- EditDialog(QWidget *parent, const char* name);
- EditDialog(QWidget *parent, const char* name, QPixmap emot, QString text, QString file);
- const QString getText() { return leText->text(); };
- const QString getEmoticon() { return emoticon; };
+ EditDialog(TQWidget *parent, const char* name);
+ EditDialog(TQWidget *parent, const char* name, TQPixmap emot, TQString text, TQString file);
+ const TQString getText() { return leText->text(); };
+ const TQString getEmoticon() { return emoticon; };
private slots:
void btnIconClicked();
private:
void setupDlg();
- QWidget *wdg;
+ TQWidget *wdg;
KLineEdit *leText;
KPushButton *btnIcon;
- QString emoticon;
+ TQString emoticon;
};
class EmoticonsEditDialog : public KDialogBase
@@ -50,8 +50,8 @@ class EmoticonsEditDialog : public KDialogBase
Q_OBJECT
public:
- EmoticonsEditDialog(QWidget *parent=0, QString theme = QString::null, const char* name="EmoticonsEditDialog");
- void addEmoticon(QString emo, QString text, bool copy);
+ EmoticonsEditDialog(TQWidget *parent=0, TQString theme = TQString::null, const char* name="EmoticonsEditDialog");
+ void addEmoticon(TQString emo, TQString text, bool copy);
private slots:
void slotOkClicked();
@@ -60,11 +60,11 @@ class EmoticonsEditDialog : public KDialogBase
void slotRemoveClicked();
private:
- void removeEmoticon(QString emo);
+ void removeEmoticon(TQString emo);
EmoticonsEditWidget *mMainWidget;
- QString themeName;
+ TQString themeName;
EditDialog *dlg;
- QDomDocument themeXml;
+ TQDomDocument themeXml;
};
#endif
diff --git a/kopete/kopete/config/appearance/tooltipeditdialog.cpp b/kopete/kopete/config/appearance/tooltipeditdialog.cpp
index c8ed8a5d..eef1ccb0 100644
--- a/kopete/kopete/config/appearance/tooltipeditdialog.cpp
+++ b/kopete/kopete/config/appearance/tooltipeditdialog.cpp
@@ -21,10 +21,10 @@
#include "kopeteglobal.h"
#include "kopeteprefs.h"
-#include <qapplication.h>
-#include <qtoolbutton.h>
-#include <qheader.h>
-#include <qstringlist.h>
+#include <tqapplication.h>
+#include <tqtoolbutton.h>
+#include <tqheader.h>
+#include <tqstringlist.h>
#include <kiconloader.h>
#include <klistview.h>
@@ -33,26 +33,26 @@
class TooltipItem : public KListViewItem
{
public:
- TooltipItem(KListView *parent, const QString& label, const QString& propertyName)
+ TooltipItem(KListView *parent, const TQString& label, const TQString& propertyName)
: KListViewItem(parent, label),
mPropName(propertyName)
{
}
- TooltipItem(KListView *parent, QListViewItem *item, const QString& label, const QString& propertyName)
+ TooltipItem(KListView *parent, TQListViewItem *item, const TQString& label, const TQString& propertyName)
: KListViewItem(parent, item, label),
mPropName(propertyName)
{
}
- QString propertyName() const { return mPropName; }
+ TQString propertyName() const { return mPropName; }
private:
- QString mPropName;
+ TQString mPropName;
};
-TooltipEditDialog::TooltipEditDialog(QWidget *parent, const char* name)
+TooltipEditDialog::TooltipEditDialog(TQWidget *parent, const char* name)
: KDialogBase(parent, name, true, i18n("Tooltip Editor"), Ok|Cancel, Ok, true)
{
mMainWidget = new TooltipEditWidget(this, "TooltipEditDialog::mMainWidget");
@@ -64,13 +64,13 @@ TooltipEditDialog::TooltipEditDialog(QWidget *parent, const char* name)
const Kopete::ContactPropertyTmpl::Map propmap(
Kopete::Global::Properties::self()->templateMap());
- QStringList usedKeys = KopetePrefs::prefs()->toolTipContents();
+ TQStringList usedKeys = KopetePrefs::prefs()->toolTipContents();
- connect(mMainWidget->lstUnusedItems, SIGNAL(doubleClicked ( QListViewItem *, const QPoint &, int )), this, SLOT(slotAddButton()));
- connect(mMainWidget->lstUsedItems, SIGNAL(doubleClicked ( QListViewItem *, const QPoint &, int )), this, SLOT(slotRemoveButton()));
+ connect(mMainWidget->lstUnusedItems, TQT_SIGNAL(doubleClicked ( TQListViewItem *, const TQPoint &, int )), this, TQT_SLOT(slotAddButton()));
+ connect(mMainWidget->lstUsedItems, TQT_SIGNAL(doubleClicked ( TQListViewItem *, const TQPoint &, int )), this, TQT_SLOT(slotRemoveButton()));
// first fill the "used" list
- QStringList::Iterator usedIt=usedKeys.end();
+ TQStringList::Iterator usedIt=usedKeys.end();
do
{
usedIt--;
@@ -91,45 +91,45 @@ TooltipEditDialog::TooltipEditDialog(QWidget *parent, const char* name)
new TooltipItem(mMainWidget->lstUnusedItems, it.data().label(), it.key());
}
- connect(mMainWidget->lstUnusedItems, SIGNAL(selectionChanged(QListViewItem *)),
- this, SLOT(slotUnusedSelected(QListViewItem *)));
- connect(mMainWidget->lstUsedItems, SIGNAL(selectionChanged(QListViewItem *)),
- this, SLOT(slotUsedSelected(QListViewItem *)));
+ connect(mMainWidget->lstUnusedItems, TQT_SIGNAL(selectionChanged(TQListViewItem *)),
+ this, TQT_SLOT(slotUnusedSelected(TQListViewItem *)));
+ connect(mMainWidget->lstUsedItems, TQT_SIGNAL(selectionChanged(TQListViewItem *)),
+ this, TQT_SLOT(slotUsedSelected(TQListViewItem *)));
- QIconSet iconSet;
+ TQIconSet iconSet;
iconSet = SmallIconSet("up");
mMainWidget->tbUp->setIconSet(iconSet);
mMainWidget->tbUp->setEnabled(false);
mMainWidget->tbUp->setAutoRepeat(true);
- connect(mMainWidget->tbUp, SIGNAL(clicked()), SLOT(slotUpButton()));
+ connect(mMainWidget->tbUp, TQT_SIGNAL(clicked()), TQT_SLOT(slotUpButton()));
iconSet = SmallIconSet("down");
mMainWidget->tbDown->setIconSet(iconSet);
mMainWidget->tbDown->setEnabled(false);
mMainWidget->tbDown->setAutoRepeat(true);
- connect(mMainWidget->tbDown, SIGNAL(clicked()), SLOT(slotDownButton()));
+ connect(mMainWidget->tbDown, TQT_SIGNAL(clicked()), TQT_SLOT(slotDownButton()));
- iconSet = QApplication::reverseLayout() ? SmallIconSet("back") : SmallIconSet("forward");
+ iconSet = TQApplication::reverseLayout() ? SmallIconSet("back") : SmallIconSet("forward");
mMainWidget->tbAdd->setIconSet(iconSet);
mMainWidget->tbAdd->setEnabled(false);
- connect(mMainWidget->tbAdd, SIGNAL(clicked()), SLOT(slotAddButton()));
+ connect(mMainWidget->tbAdd, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddButton()));
- iconSet = QApplication::reverseLayout() ? SmallIconSet("forward") : SmallIconSet("back");
+ iconSet = TQApplication::reverseLayout() ? SmallIconSet("forward") : SmallIconSet("back");
mMainWidget->tbRemove->setIconSet(iconSet);
mMainWidget->tbRemove->setEnabled(false);
- connect(mMainWidget->tbRemove, SIGNAL(clicked()), SLOT(slotRemoveButton()));
+ connect(mMainWidget->tbRemove, TQT_SIGNAL(clicked()), TQT_SLOT(slotRemoveButton()));
- connect(this, SIGNAL(okClicked()), this, SLOT(slotOkClicked()));
+ connect(this, TQT_SIGNAL(okClicked()), this, TQT_SLOT(slotOkClicked()));
- resize(QSize(450, 450));
+ resize(TQSize(450, 450));
}
void TooltipEditDialog::slotOkClicked()
{
- QStringList oldList = KopetePrefs::prefs()->toolTipContents();
- QStringList newList;
- QListViewItemIterator it(mMainWidget->lstUsedItems);
- QString keyname;
+ TQStringList oldList = KopetePrefs::prefs()->toolTipContents();
+ TQStringList newList;
+ TQListViewItemIterator it(mMainWidget->lstUsedItems);
+ TQString keyname;
while(it.current())
{
@@ -149,13 +149,13 @@ void TooltipEditDialog::slotOkClicked()
}
-void TooltipEditDialog::slotUnusedSelected(QListViewItem *item)
+void TooltipEditDialog::slotUnusedSelected(TQListViewItem *item)
{
//mMainWidget->tbRemove->setEnabled(false);
mMainWidget->tbAdd->setEnabled(item!=0);
}
-void TooltipEditDialog::slotUsedSelected(QListViewItem *item)
+void TooltipEditDialog::slotUsedSelected(TQListViewItem *item)
{
mMainWidget->tbRemove->setEnabled(item!=0);
//mMainWidget->tbAdd->setEnabled(false);
@@ -173,8 +173,8 @@ void TooltipEditDialog::slotUsedSelected(QListViewItem *item)
void TooltipEditDialog::slotUpButton()
{
- QListViewItem *item = mMainWidget->lstUsedItems->currentItem();
- QListViewItem *prev = item->itemAbove();
+ TQListViewItem *item = mMainWidget->lstUsedItems->currentItem();
+ TQListViewItem *prev = item->itemAbove();
if(prev == 0) // we are first item already
return;
@@ -184,8 +184,8 @@ void TooltipEditDialog::slotUpButton()
void TooltipEditDialog::slotDownButton()
{
- QListViewItem *item = mMainWidget->lstUsedItems->currentItem();
- QListViewItem *next = item->itemBelow();
+ TQListViewItem *item = mMainWidget->lstUsedItems->currentItem();
+ TQListViewItem *next = item->itemBelow();
if(next == 0) // we are last item already
return;
diff --git a/kopete/kopete/config/appearance/tooltipeditdialog.h b/kopete/kopete/config/appearance/tooltipeditdialog.h
index 92d75aa9..54807df4 100644
--- a/kopete/kopete/config/appearance/tooltipeditdialog.h
+++ b/kopete/kopete/config/appearance/tooltipeditdialog.h
@@ -18,7 +18,7 @@
#define TOOLTIPEDITDIALOG_H
#include <kdebug.h>
-#include <qhbox.h>
+#include <tqhbox.h>
#include <kdialogbase.h>
class TooltipEditWidget;
@@ -27,11 +27,11 @@ class TooltipEditDialog : public KDialogBase
Q_OBJECT
public:
- TooltipEditDialog(QWidget *parent=0, const char* name="ToolTipEditDialog");
+ TooltipEditDialog(TQWidget *parent=0, const char* name="ToolTipEditDialog");
private slots:
- void slotUnusedSelected(QListViewItem *);
- void slotUsedSelected(QListViewItem *);
+ void slotUnusedSelected(TQListViewItem *);
+ void slotUsedSelected(TQListViewItem *);
void slotUpButton();
void slotDownButton();
void slotAddButton();
diff --git a/kopete/kopete/config/avdevice/avdeviceconfig.cpp b/kopete/kopete/config/avdevice/avdeviceconfig.cpp
index a2c474e0..dec03277 100644
--- a/kopete/kopete/config/avdevice/avdeviceconfig.cpp
+++ b/kopete/kopete/config/avdevice/avdeviceconfig.cpp
@@ -19,13 +19,13 @@
#include "avdeviceconfig_videoconfig.h"
#include "videodevice.h"
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qhbuttongroup.h>
-#include <qspinbox.h>
-#include <qcombobox.h>
-#include <qslider.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqhbuttongroup.h>
+#include <tqspinbox.h>
+#include <tqcombobox.h>
+#include <tqslider.h>
#include <kplugininfo.h>
#include <klocale.h>
@@ -34,35 +34,35 @@
#include <ktrader.h>
#include <kconfig.h>
#include <kcombobox.h>
-#include <qimage.h>
-#include <qpixmap.h>
+#include <tqimage.h>
+#include <tqpixmap.h>
-#include <qtabwidget.h>
+#include <tqtabwidget.h>
//#include "videodevice.h"
-typedef KGenericFactory<AVDeviceConfig, QWidget> KopeteAVDeviceConfigFactory;
+typedef KGenericFactory<AVDeviceConfig, TQWidget> KopeteAVDeviceConfigFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kopete_avdeviceconfig, KopeteAVDeviceConfigFactory( "kcm_kopete_avdeviceconfig" ) )
-AVDeviceConfig::AVDeviceConfig(QWidget *parent, const char * name , const QStringList &args)
+AVDeviceConfig::AVDeviceConfig(TQWidget *parent, const char * name , const TQStringList &args)
: KCModule( KopeteAVDeviceConfigFactory::instance(), parent, args )
{
kdDebug() << "kopete:config (avdevice): KopeteAVDeviceConfigFactory::instance() called. " << endl;
- (new QVBoxLayout(this))->setAutoAdd(true);
- mAVDeviceTabCtl = new QTabWidget(this, "mAVDeviceTabCtl");
+ (new TQVBoxLayout(this))->setAutoAdd(true);
+ mAVDeviceTabCtl = new TQTabWidget(this, "mAVDeviceTabCtl");
// "Video" TAB ============================================================
mPrfsVideoDevice = new AVDeviceConfig_VideoDevice(mAVDeviceTabCtl);
- connect(mPrfsVideoDevice->mDeviceKComboBox, SIGNAL(activated(int)), this, SLOT(slotDeviceKComboBoxChanged(int)));
- connect(mPrfsVideoDevice->mInputKComboBox, SIGNAL(activated(int)), this, SLOT(slotInputKComboBoxChanged(int)));
- connect(mPrfsVideoDevice->mStandardKComboBox, SIGNAL(activated(int)), this, SLOT(slotStandardKComboBoxChanged(int)));
- connect(mPrfsVideoDevice->mBrightnessSlider, SIGNAL(valueChanged(int)), this, SLOT(slotBrightnessSliderChanged(int)));
- connect(mPrfsVideoDevice->mContrastSlider, SIGNAL(valueChanged(int)), this, SLOT(slotContrastSliderChanged(int)));
- connect(mPrfsVideoDevice->mSaturationSlider, SIGNAL(valueChanged(int)), this, SLOT(slotSaturationSliderChanged(int)));
- connect(mPrfsVideoDevice->mWhitenessSlider, SIGNAL(valueChanged(int)), this, SLOT(slotWhitenessSliderChanged(int)));
- connect(mPrfsVideoDevice->mHueSlider, SIGNAL(valueChanged(int)), this, SLOT(slotHueSliderChanged(int)));
- connect(mPrfsVideoDevice->mImageAutoBrightnessContrast, SIGNAL(toggled(bool)), this, SLOT(slotImageAutoBrightnessContrastChanged(bool)));
- connect(mPrfsVideoDevice->mImageAutoColorCorrection, SIGNAL(toggled(bool)), this, SLOT(slotImageAutoColorCorrectionChanged(bool)));
- connect(mPrfsVideoDevice->mImageAsMirror, SIGNAL(toggled(bool)), this, SLOT(slotImageAsMirrorChanged(bool)));
+ connect(mPrfsVideoDevice->mDeviceKComboBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotDeviceKComboBoxChanged(int)));
+ connect(mPrfsVideoDevice->mInputKComboBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotInputKComboBoxChanged(int)));
+ connect(mPrfsVideoDevice->mStandardKComboBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotStandardKComboBoxChanged(int)));
+ connect(mPrfsVideoDevice->mBrightnessSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotBrightnessSliderChanged(int)));
+ connect(mPrfsVideoDevice->mContrastSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotContrastSliderChanged(int)));
+ connect(mPrfsVideoDevice->mSaturationSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSaturationSliderChanged(int)));
+ connect(mPrfsVideoDevice->mWhitenessSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotWhitenessSliderChanged(int)));
+ connect(mPrfsVideoDevice->mHueSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotHueSliderChanged(int)));
+ connect(mPrfsVideoDevice->mImageAutoBrightnessContrast, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotImageAutoBrightnessContrastChanged(bool)));
+ connect(mPrfsVideoDevice->mImageAutoColorCorrection, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotImageAutoColorCorrectionChanged(bool)));
+ connect(mPrfsVideoDevice->mImageAsMirror, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotImageAsMirrorChanged(bool)));
// why is this here?
// mPrfsVideoDevice->mVideoImageLabel->setPixmap(qpixmap);
@@ -81,7 +81,7 @@ AVDeviceConfig::AVDeviceConfig(QWidget *parent, const char * name , const QStri
mVideoDevicePool->getImage(&qimage);
if (qpixmap.convertFromImage(qimage,0) == true)
mPrfsVideoDevice->mVideoImageLabel->setPixmap(qpixmap);
- connect(&qtimer, SIGNAL(timeout()), this, SLOT(slotUpdateImage()) );
+ connect(&qtimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotUpdateImage()) );
qtimer.start(0,FALSE);
}
diff --git a/kopete/kopete/config/avdevice/avdeviceconfig.h b/kopete/kopete/config/avdevice/avdeviceconfig.h
index d732b1a7..3648a913 100644
--- a/kopete/kopete/config/avdevice/avdeviceconfig.h
+++ b/kopete/kopete/config/avdevice/avdeviceconfig.h
@@ -20,12 +20,12 @@
#include "kcmodule.h"
#include "videodevicepool.h"
-#include <qimage.h>
-#include <qpixmap.h>
-#include <qtimer.h>
+#include <tqimage.h>
+#include <tqpixmap.h>
+#include <tqtimer.h>
#ifdef HAVE_GL
-# include <qgl.h>
+# include <tqgl.h>
#endif
class QFrame;
@@ -41,7 +41,7 @@ class AVDeviceConfig : public KCModule
{
Q_OBJECT
public:
- AVDeviceConfig(QWidget *parent, const char * name , const QStringList &args);
+ AVDeviceConfig(TQWidget *parent, const char * name , const TQStringList &args);
~AVDeviceConfig();
virtual void save();
@@ -63,16 +63,16 @@ private slots:
void slotImageAsMirrorChanged(bool);
void slotUpdateImage();
private:
- QTabWidget* mAVDeviceTabCtl;
+ TQTabWidget* mAVDeviceTabCtl;
AVDeviceConfig_VideoDevice *mPrfsVideoDevice;
AVDeviceConfig_AudioDevice *mPrfsAudioDevice;
Kopete::AV::VideoDevicePool *mVideoDevicePool ;
- QImage qimage;
- QPixmap qpixmap;
- QTimer qtimer;
+ TQImage qimage;
+ TQPixmap qpixmap;
+ TQTimer qtimer;
void setVideoInputParameters();
#ifdef HAVE_GL
- QGLWidget m_video_gl;
+ TQGLWidget m_video_gl;
#endif
};
diff --git a/kopete/kopete/config/behavior/behaviorconfig.cpp b/kopete/kopete/config/behavior/behaviorconfig.cpp
index 379e762a..b133a64b 100644
--- a/kopete/kopete/config/behavior/behaviorconfig.cpp
+++ b/kopete/kopete/config/behavior/behaviorconfig.cpp
@@ -18,14 +18,14 @@
#include "behaviorconfig_events.h"
#include "behaviorconfig_chat.h"
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qhbuttongroup.h>
-#include <qspinbox.h>
-#include <qcombobox.h>
-#include <qradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqhbuttongroup.h>
+#include <tqspinbox.h>
+#include <tqcombobox.h>
+#include <tqradiobutton.h>
#include <kdebug.h>
#include <kplugininfo.h>
@@ -42,17 +42,17 @@
#include "kopetepluginmanager.h"
#include "kopeteaway.h"
-#include <qtabwidget.h>
+#include <tqtabwidget.h>
-typedef KGenericFactory<BehaviorConfig, QWidget> KopeteBehaviorConfigFactory;
+typedef KGenericFactory<BehaviorConfig, TQWidget> KopeteBehaviorConfigFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kopete_behaviorconfig, KopeteBehaviorConfigFactory( "kcm_kopete_behaviorconfig" ) )
-BehaviorConfig::BehaviorConfig(QWidget *parent, const char * /* name */, const QStringList &args) :
+BehaviorConfig::BehaviorConfig(TQWidget *parent, const char * /* name */, const TQStringList &args) :
KCModule( KopeteBehaviorConfigFactory::instance(), parent, args )
{
- (new QVBoxLayout(this))->setAutoAdd(true);
- mBehaviorTabCtl = new QTabWidget(this, "mBehaviorTabCtl");
+ (new TQVBoxLayout(this))->setAutoAdd(true);
+ mBehaviorTabCtl = new TQTabWidget(this, "mBehaviorTabCtl");
// "General" TAB ============================================================
mPrfsGeneral = new BehaviorConfig_General(mBehaviorTabCtl);
@@ -77,81 +77,81 @@ BehaviorConfig::BehaviorConfig(QWidget *parent, const char * /* name */, const Q
// "General" TAB ============================================================
- connect(mPrfsGeneral->mShowTrayChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsGeneral->mStartDockedChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsGeneral->mUseQueueChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsGeneral->mUseStackChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsGeneral->mQueueUnreadMessagesChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsGeneral->mAutoConnect, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsGeneral->mShowTrayChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsGeneral->mStartDockedChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsGeneral->mUseQueueChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsGeneral->mUseStackChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsGeneral->mQueueUnreadMessagesChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsGeneral->mAutoConnect, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
// "Events" TAB ============================================================
- connect(mPrfsEvents->mQueueOnlyHighlightedMessagesInGroupChatsChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsEvents->mQueueOnlyMessagesOnAnotherDesktopChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsEvents->mBalloonNotifyChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsEvents->mBalloonNotifyIgnoreClosesChatViewChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsEvents->mCloseBalloonChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsEvents->mBalloonCloseDelay, SIGNAL(valueChanged(int)),
- this, SLOT(slotValueChanged(int)));
- connect(mPrfsEvents->mTrayflashNotifyChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsEvents->mTrayflashNotifyLeftClickOpensMessageChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsEvents->mTrayflashNotifySetCurrentDesktopToChatViewChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsEvents->mSoundIfAwayChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsEvents->mEventIfActive, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect(mPrfsEvents->mRaiseMsgWindowChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsEvents->mQueueOnlyHighlightedMessagesInGroupChatsChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsEvents->mQueueOnlyMessagesOnAnotherDesktopChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsEvents->mBalloonNotifyChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsEvents->mBalloonNotifyIgnoreClosesChatViewChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsEvents->mCloseBalloonChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsEvents->mBalloonCloseDelay, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotValueChanged(int)));
+ connect(mPrfsEvents->mTrayflashNotifyChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsEvents->mTrayflashNotifyLeftClickOpensMessageChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsEvents->mTrayflashNotifySetCurrentDesktopToChatViewChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsEvents->mSoundIfAwayChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsEvents->mEventIfActive, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect(mPrfsEvents->mRaiseMsgWindowChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
// "Chat" TAB ===============================================================
- connect( mPrfsChat->cb_ShowEventsChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect( mPrfsChat->highlightEnabled, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect( mPrfsChat->cb_SpellCheckChk, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect( mPrfsChat->cmbChatGroupingPolicy, SIGNAL(activated(int)),
- this, SLOT(slotValueChanged(int)));
- connect( mPrfsChat->mChatViewBufferSize, SIGNAL(valueChanged(int)),
- this, SLOT(slotValueChanged(int)));
- connect( mPrfsChat->truncateContactNameEnabled, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect( mPrfsChat->mMaxContactNameLength, SIGNAL(valueChanged(int)),
- this, SLOT(slotValueChanged(int)));
- connect( mPrfsChat->viewPlugin, SIGNAL(activated(int)),
- this, SLOT(slotValueChanged(int)));
- connect( mPrfsChat->viewPlugin, SIGNAL(activated(int)),
- this, SLOT(slotUpdatePluginLabel(int)));
+ connect( mPrfsChat->cb_ShowEventsChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect( mPrfsChat->highlightEnabled, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect( mPrfsChat->cb_SpellCheckChk, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect( mPrfsChat->cmbChatGroupingPolicy, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotValueChanged(int)));
+ connect( mPrfsChat->mChatViewBufferSize, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotValueChanged(int)));
+ connect( mPrfsChat->truncateContactNameEnabled, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect( mPrfsChat->mMaxContactNameLength, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotValueChanged(int)));
+ connect( mPrfsChat->viewPlugin, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotValueChanged(int)));
+ connect( mPrfsChat->viewPlugin, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotUpdatePluginLabel(int)));
// "Away" TAB ===============================================================
- connect( mAwayConfigUI->rememberedMessages, SIGNAL(valueChanged(int)),
- this, SLOT(slotValueChanged(int)));
- connect( mAwayConfigUI->mAutoAwayTimeout, SIGNAL(valueChanged(int)),
- this, SLOT(slotValueChanged(int)));
- connect( mAwayConfigUI->mGoAvailable, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect( mAwayConfigUI->mUseAutoAway, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect( mAwayConfigUI->mDisplayLastAwayMessage, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect( mAwayConfigUI->mDisplayCustomAwayMessage, SIGNAL(toggled(bool)),
- this, SLOT(slotSettingsChanged(bool)));
- connect( mAwayConfigUI->mAutoAwayMessageEdit, SIGNAL(textChanged(const QString&)),
- this, SLOT(slotTextChanged(const QString&)));
+ connect( mAwayConfigUI->rememberedMessages, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotValueChanged(int)));
+ connect( mAwayConfigUI->mAutoAwayTimeout, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotValueChanged(int)));
+ connect( mAwayConfigUI->mGoAvailable, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect( mAwayConfigUI->mUseAutoAway, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect( mAwayConfigUI->mDisplayLastAwayMessage, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect( mAwayConfigUI->mDisplayCustomAwayMessage, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSettingsChanged(bool)));
+ connect( mAwayConfigUI->mAutoAwayMessageEdit, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(slotTextChanged(const TQString&)));
}
void BehaviorConfig::save()
@@ -270,7 +270,7 @@ void BehaviorConfig::load()
mPrfsChat->viewPlugin->clear();
int selectedIdx = 0, i = 0;
- for( QValueList<KPluginInfo*>::iterator it = viewPlugins.begin(); it != viewPlugins.end(); ++it )
+ for( TQValueList<KPluginInfo*>::iterator it = viewPlugins.begin(); it != viewPlugins.end(); ++it )
{
if( (*it)->pluginName() == p->interfacePreference() )
selectedIdx = i;
@@ -296,7 +296,7 @@ void BehaviorConfig::slotValueChanged(int)
emit changed( true );
}
-void BehaviorConfig::slotTextChanged(const QString&)
+void BehaviorConfig::slotTextChanged(const TQString&)
{
emit changed( true );
}
diff --git a/kopete/kopete/config/behavior/behaviorconfig.h b/kopete/kopete/config/behavior/behaviorconfig.h
index 5a981784..8fead0ed 100644
--- a/kopete/kopete/config/behavior/behaviorconfig.h
+++ b/kopete/kopete/config/behavior/behaviorconfig.h
@@ -37,7 +37,7 @@ class BehaviorConfig : public KCModule
Q_OBJECT
public:
- BehaviorConfig(QWidget *parent, const char * name , const QStringList &args) ;
+ BehaviorConfig(TQWidget *parent, const char * name , const TQStringList &args) ;
virtual void save();
virtual void load();
@@ -46,15 +46,15 @@ class BehaviorConfig : public KCModule
void slotSettingsChanged(bool);
void slotValueChanged(int);
void slotUpdatePluginLabel(int);
- void slotTextChanged(const QString&);
+ void slotTextChanged(const TQString&);
private:
- QTabWidget* mBehaviorTabCtl;
+ TQTabWidget* mBehaviorTabCtl;
BehaviorConfig_General *mPrfsGeneral;
BehaviorConfig_Events *mPrfsEvents;
BehaviorConfig_Chat *mPrfsChat;
KopeteAwayConfigBaseUI *mAwayConfigUI;
- QValueList<KPluginInfo*> viewPlugins;
+ TQValueList<KPluginInfo*> viewPlugins;
Kopete::Away* awayInstance;
};
#endif
diff --git a/kopete/kopete/config/identity/globalidentitiesmanager.cpp b/kopete/kopete/config/identity/globalidentitiesmanager.cpp
index 192849e4..52da32a7 100644
--- a/kopete/kopete/config/identity/globalidentitiesmanager.cpp
+++ b/kopete/kopete/config/identity/globalidentitiesmanager.cpp
@@ -17,9 +17,9 @@
#include "globalidentitiesmanager.h"
// Qt includes
-#include <qdom.h>
-#include <qfile.h>
-#include <qtextstream.h>
+#include <tqdom.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
// KDE includes
#include <kdebug.h>
@@ -37,7 +37,7 @@
class GlobalIdentitiesManager::Private
{
public:
- QMap<QString, Kopete::MetaContact*> identitiesList;
+ TQMap<TQString, Kopete::MetaContact*> identitiesList;
};
GlobalIdentitiesManager *GlobalIdentitiesManager::s_self = 0L;
@@ -49,8 +49,8 @@ GlobalIdentitiesManager *GlobalIdentitiesManager::self()
return s_self;
}
-GlobalIdentitiesManager::GlobalIdentitiesManager(QObject *parent, const char *name)
- : QObject(parent, name)
+GlobalIdentitiesManager::GlobalIdentitiesManager(TQObject *parent, const char *name)
+ : TQObject(parent, name)
{
d = new Private;
}
@@ -62,7 +62,7 @@ GlobalIdentitiesManager::~GlobalIdentitiesManager()
delete d;
}
-void GlobalIdentitiesManager::createNewIdentity(const QString &identityName)
+void GlobalIdentitiesManager::createNewIdentity(const TQString &identityName)
{
// Create new identity metacontact based on myself to get the sub-contacts.
Kopete::MetaContact *newIdentity = createNewMetaContact();
@@ -71,21 +71,21 @@ void GlobalIdentitiesManager::createNewIdentity(const QString &identityName)
d->identitiesList.insert(identityName, newIdentity);
}
-void GlobalIdentitiesManager::copyIdentity(const QString &copyIdentityName, const QString &sourceIdentity)
+void GlobalIdentitiesManager::copyIdentity(const TQString &copyIdentityName, const TQString &sourceIdentity)
{
Kopete::MetaContact *copyIdentity = createCopyMetaContact(d->identitiesList[sourceIdentity]);
d->identitiesList.insert(copyIdentityName, copyIdentity);
}
-void GlobalIdentitiesManager::renameIdentity(const QString &oldName, const QString &newName)
+void GlobalIdentitiesManager::renameIdentity(const TQString &oldName, const TQString &newName)
{
Kopete::MetaContact *renamedIdentity = d->identitiesList[oldName];
d->identitiesList.remove(oldName);
d->identitiesList.insert(newName, renamedIdentity);
}
-void GlobalIdentitiesManager::removeIdentity(const QString &removedIdentity)
+void GlobalIdentitiesManager::removeIdentity(const TQString &removedIdentity)
{
// Clear from memory the identity metacontact.
delete d->identitiesList[removedIdentity];
@@ -93,15 +93,15 @@ void GlobalIdentitiesManager::removeIdentity(const QString &removedIdentity)
d->identitiesList.remove(removedIdentity);
}
-void GlobalIdentitiesManager::updateIdentity(const QString &updatedIdentity, Kopete::MetaContact *sourceMetaContact)
+void GlobalIdentitiesManager::updateIdentity(const TQString &updatedIdentity, Kopete::MetaContact *sourceMetaContact)
{
copyMetaContact(d->identitiesList[updatedIdentity], sourceMetaContact);
}
-bool GlobalIdentitiesManager::isIdentityPresent(const QString &identityName)
+bool GlobalIdentitiesManager::isIdentityPresent(const TQString &identityName)
{
- QMapIterator<QString, Kopete::MetaContact*> it;
- QMapIterator<QString, Kopete::MetaContact*> end = d->identitiesList.end();
+ TQMapIterator<TQString, Kopete::MetaContact*> it;
+ TQMapIterator<TQString, Kopete::MetaContact*> end = d->identitiesList.end();
for(it = d->identitiesList.begin(); it != end; ++it)
{
@@ -114,7 +114,7 @@ bool GlobalIdentitiesManager::isIdentityPresent(const QString &identityName)
return false;
}
-Kopete::MetaContact *GlobalIdentitiesManager::getIdentity(const QString &identityName)
+Kopete::MetaContact *GlobalIdentitiesManager::getIdentity(const TQString &identityName)
{
// Check if the identity is present.
return isIdentityPresent(identityName) ? d->identitiesList[identityName] : 0;
@@ -124,26 +124,26 @@ void GlobalIdentitiesManager::loadXML()
{
kdDebug() << k_funcinfo << "Loading global identities list from XML." << endl;
- QString filename = locateLocal( "appdata", QString::fromUtf8("global-identities.xml") );
+ TQString filename = locateLocal( "appdata", TQString::fromUtf8("global-identities.xml") );
if( filename.isEmpty() )
{
return;
}
- QDomDocument globalIdentitiesList( QString::fromUtf8( "kopete-global-identities-list" ) );
+ TQDomDocument globalIdentitiesList( TQString::fromUtf8( "kopete-global-identities-list" ) );
- QFile globalIdentitiesListFile( filename );
+ TQFile globalIdentitiesListFile( filename );
globalIdentitiesListFile.open( IO_ReadOnly );
globalIdentitiesList.setContent( &globalIdentitiesListFile );
- QDomElement list = globalIdentitiesList.documentElement();
- QDomElement element = list.firstChild().toElement();
+ TQDomElement list = globalIdentitiesList.documentElement();
+ TQDomElement element = list.firstChild().toElement();
while( !element.isNull() )
{
- if( element.tagName() == QString::fromUtf8("identity") )
+ if( element.tagName() == TQString::fromUtf8("identity") )
{
Kopete::MetaContact *metaContact = createNewMetaContact();
- QString identityName = element.attribute(QString::fromUtf8("name"));
+ TQString identityName = element.attribute(TQString::fromUtf8("name"));
if(!metaContact->fromXML(element))
{
@@ -169,12 +169,12 @@ void GlobalIdentitiesManager::saveXML()
{
kdDebug() << k_funcinfo << "Saving global identities list to XML." << endl;
- QString globalIdentitiesListFileName = locateLocal( "appdata", QString::fromUtf8("global-identities.xml") );
+ TQString globalIdentitiesListFileName = locateLocal( "appdata", TQString::fromUtf8("global-identities.xml") );
KSaveFile globalIdentitiesListFile(globalIdentitiesListFileName);
if( globalIdentitiesListFile.status() == 0 )
{
- QTextStream *stream = globalIdentitiesListFile.textStream();
- stream->setEncoding( QTextStream::UnicodeUTF8 );
+ TQTextStream *stream = globalIdentitiesListFile.textStream();
+ stream->setEncoding( TQTextStream::UnicodeUTF8 );
toXML().save( *stream, 4 );
if ( globalIdentitiesListFile.close() )
@@ -193,20 +193,20 @@ void GlobalIdentitiesManager::saveXML()
}
}
-const QDomDocument GlobalIdentitiesManager::toXML()
+const TQDomDocument GlobalIdentitiesManager::toXML()
{
- QDomDocument doc;
+ TQDomDocument doc;
- doc.appendChild(doc.createElement(QString::fromUtf8("kopete-global-identities-list")));
+ doc.appendChild(doc.createElement(TQString::fromUtf8("kopete-global-identities-list")));
- QMapIterator<QString, Kopete::MetaContact*> it;
- QMapIterator<QString, Kopete::MetaContact*> end = d->identitiesList.end();
+ TQMapIterator<TQString, Kopete::MetaContact*> it;
+ TQMapIterator<TQString, Kopete::MetaContact*> end = d->identitiesList.end();
for(it = d->identitiesList.begin(); it != end; ++it)
{
kdDebug(14000) << k_funcinfo << "Saving " << it.key() << endl;
- QDomElement identityMetaContactElement = it.data()->toXML(true); // Save minimal information.
- identityMetaContactElement.setTagName(QString::fromUtf8("identity"));
- identityMetaContactElement.setAttribute(QString::fromUtf8("name"), it.key());
+ TQDomElement identityMetaContactElement = it.data()->toXML(true); // Save minimal information.
+ identityMetaContactElement.setTagName(TQString::fromUtf8("identity"));
+ identityMetaContactElement.setAttribute(TQString::fromUtf8("name"), it.key());
doc.documentElement().appendChild(doc.importNode(identityMetaContactElement, true));
}
@@ -216,11 +216,11 @@ const QDomDocument GlobalIdentitiesManager::toXML()
Kopete::MetaContact *GlobalIdentitiesManager::createNewMetaContact()
{
Kopete::MetaContact *newMetaContact = new Kopete::MetaContact();
- QPtrList<Kopete::Contact> contactList = Kopete::ContactList::self()->myself()->contacts();
+ TQPtrList<Kopete::Contact> contactList = Kopete::ContactList::self()->myself()->contacts();
// Copy the contacts list to the new metacontact, so Kopete::Contact for SourceContact
// will not be null.
- QPtrListIterator<Kopete::Contact> it( contactList);
+ TQPtrListIterator<Kopete::Contact> it( contactList);
for ( ; it.current(); ++it )
{
newMetaContact->addContact(it.current());
@@ -252,7 +252,7 @@ void GlobalIdentitiesManager::copyMetaContact(Kopete::MetaContact *destination,
destination->setPhotoSourceContact(source->photoSourceContact());
}
-QMap<QString, Kopete::MetaContact*> GlobalIdentitiesManager::getGlobalIdentitiesList()
+TQMap<TQString, Kopete::MetaContact*> GlobalIdentitiesManager::getGlobalIdentitiesList()
{
return d->identitiesList;
}
diff --git a/kopete/kopete/config/identity/globalidentitiesmanager.h b/kopete/kopete/config/identity/globalidentitiesmanager.h
index c188d497..71e890b0 100644
--- a/kopete/kopete/config/identity/globalidentitiesmanager.h
+++ b/kopete/kopete/config/identity/globalidentitiesmanager.h
@@ -18,8 +18,8 @@
#ifndef GLOBALIDENTITIESMANAGER_H
#define GLOBALIDENTITIESMANAGER_H
-#include <qobject.h>
-#include <qmap.h>
+#include <tqobject.h>
+#include <tqmap.h>
namespace Kopete
{
@@ -54,7 +54,7 @@ public:
/**
* @brief Create a new identity and add it to the internal list.
*/
- void createNewIdentity(const QString &identityName);
+ void createNewIdentity(const TQString &identityName);
/**
* @brief Copy a identity
@@ -62,7 +62,7 @@ public:
* @param copyIdentityName Name for the copy identity.
* @param sourceIdentity Name of the source identity.
*/
- void copyIdentity(const QString &copyIdentityName, const QString &sourceIdentity);
+ void copyIdentity(const TQString &copyIdentityName, const TQString &sourceIdentity);
/**
* @brief Rename a identity
@@ -70,14 +70,14 @@ public:
* @param oldName Identity to rename.
* @param newName New identity name.
*/
- void renameIdentity(const QString &oldName, const QString &newName);
+ void renameIdentity(const TQString &oldName, const TQString &newName);
/**
* @brief Delete identity
*
* @param removedIdentity Identity name to remove.
*/
- void removeIdentity(const QString &removedIdentity);
+ void removeIdentity(const TQString &removedIdentity);
/**
* @brief Update the specified identity using the source MetaContact
@@ -85,7 +85,7 @@ public:
* @param updatedIdentity Identity to update.
* @param sourceMetaContact Source of data.
*/
- void updateIdentity(const QString &updatedIdentity, Kopete::MetaContact *sourceMetaContact);
+ void updateIdentity(const TQString &updatedIdentity, Kopete::MetaContact *sourceMetaContact);
/**
* @brief Check if the specified identityName exists.
@@ -93,7 +93,7 @@ public:
* This is a helper method to avoid duplicated entries.
* @return if the identityName is in the internal list.
*/
- bool isIdentityPresent(const QString &identityName);
+ bool isIdentityPresent(const TQString &identityName);
/**
* @brief Return the specified identity.
@@ -101,7 +101,7 @@ public:
* @param identityName Identity to retrive.
* @return Identity data as Kopete::MetaContact.
*/
- Kopete::MetaContact *getIdentity(const QString &identityName);
+ Kopete::MetaContact *getIdentity(const TQString &identityName);
/**
* @brief Load the XML file where global identities metacontacts are stored.
@@ -117,17 +117,17 @@ public:
* @brief Return the list of global identities metacontact.
* @return The pointer list of metacontact as QValueList
*/
- QMap<QString, Kopete::MetaContact*> getGlobalIdentitiesList();
+ TQMap<TQString, Kopete::MetaContact*> getGlobalIdentitiesList();
private:
- GlobalIdentitiesManager(QObject *parent = 0, const char *name = 0);
+ GlobalIdentitiesManager(TQObject *parent = 0, const char *name = 0);
/**
* @brief Return a XML representation of the global identities list.
*
- * @return the XML represention as QDomDocument.
+ * @return the XML represention as TQDomDocument.
*/
- const QDomDocument toXML();
+ const TQDomDocument toXML();
Kopete::MetaContact *createNewMetaContact();
Kopete::MetaContact *createCopyMetaContact(Kopete::MetaContact *source);
diff --git a/kopete/kopete/config/identity/kopeteidentityconfig.cpp b/kopete/kopete/config/identity/kopeteidentityconfig.cpp
index 26613b87..0f718e70 100644
--- a/kopete/kopete/config/identity/kopeteidentityconfig.cpp
+++ b/kopete/kopete/config/identity/kopeteidentityconfig.cpp
@@ -18,15 +18,15 @@
#include "kopeteidentityconfig.h"
// Qt includes
-#include <qlayout.h>
-#include <qimage.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qcombobox.h>
-#include <qapplication.h>
-#include <qbuffer.h>
+#include <tqlayout.h>
+#include <tqimage.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqcombobox.h>
+#include <tqapplication.h>
+#include <tqbuffer.h>
// KDE includes
#include <kcombobox.h>
@@ -78,17 +78,17 @@ public:
Kopete::MetaContact *myself;
Kopete::MetaContact *currentIdentity;
- QMap<int, Kopete::Contact*> contactPhotoSourceList;
- QString selectedIdentity;
+ TQMap<int, Kopete::Contact*> contactPhotoSourceList;
+ TQString selectedIdentity;
};
-typedef KGenericFactory<KopeteIdentityConfig, QWidget> KopeteIdentityConfigFactory;
+typedef KGenericFactory<KopeteIdentityConfig, TQWidget> KopeteIdentityConfigFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kopete_identityconfig, KopeteIdentityConfigFactory( "kcm_kopete_identityconfig" ) )
-KopeteIdentityConfig::KopeteIdentityConfig(QWidget *parent, const char */*name*/, const QStringList &args) : KCModule( KopeteIdentityConfigFactory::instance(), parent, args)
+KopeteIdentityConfig::KopeteIdentityConfig(TQWidget *parent, const char */*name*/, const TQStringList &args) : KCModule( KopeteIdentityConfigFactory::instance(), parent, args)
{
d = new Private;
- ( new QVBoxLayout( this ) )->setAutoAdd( true );
+ ( new TQVBoxLayout( this ) )->setAutoAdd( true );
d->m_view = new KopeteIdentityConfigBase( this, "KopeteIdentityConfig::m_view" );
// Setup KConfigXT link with GUI.
@@ -109,7 +109,7 @@ KopeteIdentityConfig::KopeteIdentityConfig(QWidget *parent, const char */*name*/
// If the latest selected Identity is not present anymore, use a fallback identity.
if( !GlobalIdentitiesManager::self()->isIdentityPresent(d->selectedIdentity) )
{
- QMapIterator<QString, Kopete::MetaContact*> it = GlobalIdentitiesManager::self()->getGlobalIdentitiesList().begin();
+ TQMapIterator<TQString, Kopete::MetaContact*> it = GlobalIdentitiesManager::self()->getGlobalIdentitiesList().begin();
d->selectedIdentity = it.key();
}
else
@@ -124,33 +124,33 @@ KopeteIdentityConfig::KopeteIdentityConfig(QWidget *parent, const char */*name*/
d->m_view->buttonCopyIdentity->setIconSet(SmallIconSet("editcopy"));
d->m_view->buttonRenameIdentity->setIconSet(SmallIconSet("edit"));
d->m_view->buttonRemoveIdentity->setIconSet(SmallIconSet("delete_user"));
- d->m_view->buttonClearPhoto->setIconSet( SmallIconSet( QApplication::reverseLayout() ? "locationbar_erase" : "clear_left" ) );
+ d->m_view->buttonClearPhoto->setIconSet( SmallIconSet( TQApplication::reverseLayout() ? "locationbar_erase" : "clear_left" ) );
load(); // Load Configuration
// Action signal/slots
- connect(d->m_view->buttonChangeAddressee, SIGNAL(clicked()), this, SLOT(slotChangeAddressee()));
- connect(d->m_view->comboSelectIdentity, SIGNAL(activated(const QString &)), this, SLOT(slotUpdateCurrentIdentity(const QString& )));
- connect(d->m_view->buttonNewIdentity, SIGNAL(clicked()), this, SLOT(slotNewIdentity()));
- connect(d->m_view->buttonCopyIdentity, SIGNAL(clicked()), this, SLOT(slotCopyIdentity()));
- connect(d->m_view->buttonRenameIdentity, SIGNAL(clicked()), this, SLOT(slotRenameIdentity()));
- connect(d->m_view->buttonRemoveIdentity, SIGNAL(clicked()), this, SLOT(slotRemoveIdentity()));
- connect(d->m_view->comboPhotoURL, SIGNAL(urlSelected(const QString& )), this, SLOT(slotChangePhoto(const QString& )));
- connect(d->m_view->buttonClearPhoto, SIGNAL(clicked()), this, SLOT(slotClearPhoto()));
+ connect(d->m_view->buttonChangeAddressee, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotChangeAddressee()));
+ connect(d->m_view->comboSelectIdentity, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotUpdateCurrentIdentity(const TQString& )));
+ connect(d->m_view->buttonNewIdentity, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewIdentity()));
+ connect(d->m_view->buttonCopyIdentity, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCopyIdentity()));
+ connect(d->m_view->buttonRenameIdentity, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRenameIdentity()));
+ connect(d->m_view->buttonRemoveIdentity, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRemoveIdentity()));
+ connect(d->m_view->comboPhotoURL, TQT_SIGNAL(urlSelected(const TQString& )), this, TQT_SLOT(slotChangePhoto(const TQString& )));
+ connect(d->m_view->buttonClearPhoto, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClearPhoto()));
// Settings signal/slots
- connect(d->m_view->radioNicknameContact, SIGNAL(toggled(bool )), this, SLOT(slotEnableAndDisableWidgets()));
- connect(d->m_view->radioNicknameCustom, SIGNAL(toggled(bool )), this, SLOT(slotEnableAndDisableWidgets()));
- connect(d->m_view->radioNicknameKABC, SIGNAL(toggled(bool )), this, SLOT(slotEnableAndDisableWidgets()));
-
- connect(d->m_view->radioPhotoContact, SIGNAL(toggled(bool )), this, SLOT(slotEnableAndDisableWidgets()));
- connect(d->m_view->radioPhotoCustom, SIGNAL(toggled(bool )), this, SLOT(slotEnableAndDisableWidgets()));
- connect(d->m_view->radioPhotoKABC, SIGNAL(toggled(bool )), this, SLOT(slotEnableAndDisableWidgets()));
-
- connect(d->m_view->checkSyncPhotoKABC, SIGNAL(toggled(bool )), this, SLOT(slotSettingsChanged()));
- connect(d->m_view->lineNickname, SIGNAL(textChanged(const QString& )), this, SLOT(slotSettingsChanged()));
- connect(d->m_view->comboNameContact, SIGNAL(activated(int )), this, SLOT(slotSettingsChanged()));
- connect(d->m_view->comboPhotoContact, SIGNAL(activated(int )), this, SLOT(slotEnableAndDisableWidgets()));
+ connect(d->m_view->radioNicknameContact, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotEnableAndDisableWidgets()));
+ connect(d->m_view->radioNicknameCustom, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotEnableAndDisableWidgets()));
+ connect(d->m_view->radioNicknameKABC, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotEnableAndDisableWidgets()));
+
+ connect(d->m_view->radioPhotoContact, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotEnableAndDisableWidgets()));
+ connect(d->m_view->radioPhotoCustom, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotEnableAndDisableWidgets()));
+ connect(d->m_view->radioPhotoKABC, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotEnableAndDisableWidgets()));
+
+ connect(d->m_view->checkSyncPhotoKABC, TQT_SIGNAL(toggled(bool )), this, TQT_SLOT(slotSettingsChanged()));
+ connect(d->m_view->lineNickname, TQT_SIGNAL(textChanged(const TQString& )), this, TQT_SLOT(slotSettingsChanged()));
+ connect(d->m_view->comboNameContact, TQT_SIGNAL(activated(int )), this, TQT_SLOT(slotSettingsChanged()));
+ connect(d->m_view->comboPhotoContact, TQT_SIGNAL(activated(int )), this, TQT_SLOT(slotEnableAndDisableWidgets()));
}
KopeteIdentityConfig::~KopeteIdentityConfig()
@@ -220,9 +220,9 @@ void KopeteIdentityConfig::loadIdentities()
{
d->m_view->comboSelectIdentity->clear();
- QMap<QString, Kopete::MetaContact*> identitiesList = GlobalIdentitiesManager::self()->getGlobalIdentitiesList();
- QMapIterator<QString, Kopete::MetaContact*> it;
- QMapIterator<QString, Kopete::MetaContact*> end = identitiesList.end();
+ TQMap<TQString, Kopete::MetaContact*> identitiesList = GlobalIdentitiesManager::self()->getGlobalIdentitiesList();
+ TQMapIterator<TQString, Kopete::MetaContact*> it;
+ TQMapIterator<TQString, Kopete::MetaContact*> end = identitiesList.end();
int count=0, selectedIndex=0;
for(it = identitiesList.begin(); it != end; ++it)
@@ -266,15 +266,15 @@ void KopeteIdentityConfig::slotLoadNameSources()
{
Kopete::Contact *nameSourceContact = d->currentIdentity->displayNameSourceContact();
- QPtrList<Kopete::Contact> contactList = d->myself->contacts(); // Use myself contact PtrList. Safer.
- QPtrListIterator<Kopete::Contact> it(contactList);
+ TQPtrList<Kopete::Contact> contactList = d->myself->contacts(); // Use myself contact PtrList. Safer.
+ TQPtrListIterator<Kopete::Contact> it(contactList);
d->m_view->comboNameContact->clear();
for(; it.current(); ++it)
{
- QString account = it.current()->property(Kopete::Global::Properties::self()->nickName()).value().toString() + " <" + it.current()->contactId() + ">";
- QPixmap accountIcon = it.current()->account()->accountIcon();
+ TQString account = it.current()->property(Kopete::Global::Properties::self()->nickName()).value().toString() + " <" + it.current()->contactId() + ">";
+ TQPixmap accountIcon = it.current()->account()->accountIcon();
d->m_view->comboNameContact->insertItem(accountIcon, account);
// Select this item if it's the one we're tracking.
@@ -297,8 +297,8 @@ void KopeteIdentityConfig::slotLoadPhotoSources()
{
Kopete::Contact *photoSourceContact = d->currentIdentity->photoSourceContact();
- QPtrList<Kopete::Contact> contactList = d->myself->contacts(); // Use myself contact PtrList. Safer.
- QPtrListIterator<Kopete::Contact> it(contactList);
+ TQPtrList<Kopete::Contact> contactList = d->myself->contacts(); // Use myself contact PtrList. Safer.
+ TQPtrListIterator<Kopete::Contact> it(contactList);
d->m_view->comboPhotoContact->clear();
d->m_view->comboPhotoURL->clear();
@@ -309,8 +309,8 @@ void KopeteIdentityConfig::slotLoadPhotoSources()
Kopete::Contact *currentContact = it.current();
if(currentContact->hasProperty(Kopete::Global::Properties::self()->photo().key()))
{
- QString account = currentContact->property(Kopete::Global::Properties::self()->nickName()).value().toString() + " <" + currentContact->contactId() + ">";
- QPixmap accountIcon = currentContact->account()->accountIcon();
+ TQString account = currentContact->property(Kopete::Global::Properties::self()->nickName()).value().toString() + " <" + currentContact->contactId() + ">";
+ TQPixmap accountIcon = currentContact->account()->accountIcon();
d->m_view->comboPhotoContact->insertItem(accountIcon, account);
d->contactPhotoSourceList.insert(d->m_view->comboPhotoContact->count() - 1, currentContact);
@@ -368,7 +368,7 @@ void KopeteIdentityConfig::slotEnableAndDisableWidgets()
d->m_view->comboPhotoContact->setEnabled(false);
}
- QImage photo;
+ TQImage photo;
switch ( selectedPhotoSource() )
{
case Kopete::MetaContact::SourceKABC:
@@ -378,19 +378,19 @@ void KopeteIdentityConfig::slotEnableAndDisableWidgets()
photo = Kopete::photoFromContact(selectedNameSourceContact());
break;
case Kopete::MetaContact::SourceCustom:
- photo = QImage(d->m_view->comboPhotoURL->url());
+ photo = TQImage(d->m_view->comboPhotoURL->url());
break;
}
if(!photo.isNull())
- d->m_view->labelPhoto->setPixmap(QPixmap(photo.smoothScale(64, 92, QImage::ScaleMin)));
+ d->m_view->labelPhoto->setPixmap(TQPixmap(photo.smoothScale(64, 92, TQImage::ScaleMin)));
else
- d->m_view->labelPhoto->setPixmap(QPixmap());
+ d->m_view->labelPhoto->setPixmap(TQPixmap());
emit changed(true);
}
-void KopeteIdentityConfig::slotUpdateCurrentIdentity(const QString &selectedIdentity)
+void KopeteIdentityConfig::slotUpdateCurrentIdentity(const TQString &selectedIdentity)
{
kdDebug() << k_funcinfo << "Updating current identity." << endl;
@@ -413,7 +413,7 @@ void KopeteIdentityConfig::slotUpdateCurrentIdentity(const QString &selectedIden
void KopeteIdentityConfig::slotNewIdentity()
{
bool ok;
- QString newIdentityName = KInputDialog::getText(i18n("New Identity"), i18n("Identity name:") , QString::null , &ok);
+ TQString newIdentityName = KInputDialog::getText(i18n("New Identity"), i18n("Identity name:") , TQString::null , &ok);
if(newIdentityName.isEmpty() || !ok)
return;
@@ -428,7 +428,7 @@ void KopeteIdentityConfig::slotNewIdentity()
void KopeteIdentityConfig::slotCopyIdentity()
{
bool ok;
- QString copyName = KInputDialog::getText(i18n("Copy Identity"), i18n("Identity name:") , QString::null, &ok);
+ TQString copyName = KInputDialog::getText(i18n("Copy Identity"), i18n("Identity name:") , TQString::null, &ok);
if(copyName.isEmpty() || !ok)
return;
@@ -453,7 +453,7 @@ void KopeteIdentityConfig::slotRenameIdentity()
return;
bool ok;
- QString renamedName = KInputDialog::getText(i18n("Rename Identity"), i18n("Identity name:") , d->selectedIdentity, &ok);
+ TQString renamedName = KInputDialog::getText(i18n("Rename Identity"), i18n("Identity name:") , d->selectedIdentity, &ok);
if(renamedName.isEmpty() || !ok)
return;
@@ -515,20 +515,20 @@ void KopeteIdentityConfig::slotChangeAddressee()
emit changed(true);
}
-void KopeteIdentityConfig::slotChangePhoto(const QString &photoUrl)
+void KopeteIdentityConfig::slotChangePhoto(const TQString &photoUrl)
{
- QString saveLocation;
+ TQString saveLocation;
- QImage photo(photoUrl);
+ TQImage photo(photoUrl);
// use KABC photo size 100x140
- photo = KPixmapRegionSelectorDialog::getSelectedImage( QPixmap(photo), 96, 96, this );
+ photo = KPixmapRegionSelectorDialog::getSelectedImage( TQPixmap(photo), 96, 96, this );
if(!photo.isNull())
{
if(photo.width() > 96 || photo.height() > 96)
{
// Scale and crop the picture.
- photo = photo.smoothScale( 96, 96, QImage::ScaleMin );
+ photo = photo.smoothScale( 96, 96, TQImage::ScaleMin );
// crop image if not square
if(photo.width() < photo.height())
photo = photo.copy((photo.width()-photo.height())/2, 0, 96, 96);
@@ -539,7 +539,7 @@ void KopeteIdentityConfig::slotChangePhoto(const QString &photoUrl)
else if (photo.width() < 32 || photo.height() < 32)
{
// Scale and crop the picture.
- photo = photo.smoothScale( 32, 32, QImage::ScaleMin );
+ photo = photo.smoothScale( 32, 32, TQImage::ScaleMin );
// crop image if not square
if(photo.width() < photo.height())
photo = photo.copy((photo.width()-photo.height())/2, 0, 32, 32);
@@ -557,14 +557,14 @@ void KopeteIdentityConfig::slotChangePhoto(const QString &photoUrl)
// Use MD5 hash to save the filename, so no problems will occur with the filename because of non-ASCII characters.
// Bug 124175: My personnal picture doesn't appear cause of l10n
- QByteArray tempArray;
- QBuffer tempBuffer(tempArray);
+ TQByteArray tempArray;
+ TQBuffer tempBuffer(tempArray);
tempBuffer.open( IO_WriteOnly );
photo.save(&tempBuffer, "PNG");
KMD5 context(tempArray);
// Save the image to a file.
saveLocation = context.hexDigest() + ".png";
- saveLocation = locateLocal( "appdata", QString::fromUtf8("globalidentitiespictures/%1").arg( saveLocation ) );
+ saveLocation = locateLocal( "appdata", TQString::fromUtf8("globalidentitiespictures/%1").arg( saveLocation ) );
if(!photo.save(saveLocation, "PNG"))
{
@@ -585,7 +585,7 @@ void KopeteIdentityConfig::slotChangePhoto(const QString &photoUrl)
void KopeteIdentityConfig::slotClearPhoto()
{
- d->m_view->comboPhotoURL->setURL( QString::null );
+ d->m_view->comboPhotoURL->setURL( TQString::null );
slotEnableAndDisableWidgets();
}
diff --git a/kopete/kopete/config/identity/kopeteidentityconfig.h b/kopete/kopete/config/identity/kopeteidentityconfig.h
index f18c5a8c..88644be8 100644
--- a/kopete/kopete/config/identity/kopeteidentityconfig.h
+++ b/kopete/kopete/config/identity/kopeteidentityconfig.h
@@ -37,7 +37,7 @@ class KopeteIdentityConfig : public KCModule
{
Q_OBJECT
public:
- KopeteIdentityConfig(QWidget *parent, const char *name, const QStringList &args );
+ KopeteIdentityConfig(TQWidget *parent, const char *name, const TQStringList &args );
~KopeteIdentityConfig();
public slots:
@@ -58,14 +58,14 @@ private slots:
void slotLoadPhotoSources();
void slotEnableAndDisableWidgets();
- void slotUpdateCurrentIdentity(const QString &selectedIdentity);
+ void slotUpdateCurrentIdentity(const TQString &selectedIdentity);
void slotNewIdentity();
void slotCopyIdentity();
void slotRenameIdentity();
void slotRemoveIdentity();
void slotChangeAddressee();
- void slotChangePhoto(const QString &photoUrl);
+ void slotChangePhoto(const TQString &photoUrl);
void slotClearPhoto();
void slotSettingsChanged();
diff --git a/kopete/kopete/config/plugins/kopetepluginconfig.cpp b/kopete/kopete/config/plugins/kopetepluginconfig.cpp
index 9949f70e..7f790a0b 100644
--- a/kopete/kopete/config/plugins/kopetepluginconfig.cpp
+++ b/kopete/kopete/config/plugins/kopetepluginconfig.cpp
@@ -17,8 +17,8 @@
#include "kopetepluginconfig.h"
-#include <qlayout.h>
-#include <qtimer.h>
+#include <tqlayout.h>
+#include <tqtimer.h>
#include <kdebug.h>
#include <klocale.h>
@@ -39,7 +39,7 @@ KopetePluginConfig::~KopetePluginConfig()
delete d;
}
-KopetePluginConfig::KopetePluginConfig( QWidget *parent, const char *name )
+KopetePluginConfig::KopetePluginConfig( TQWidget *parent, const char *name )
: KDialogBase( Plain, i18n( "Configure Plugins" ), /*Help |*/ Cancel | Apply | Ok | User1,
Ok, parent, name, false, true, KGuiItem( i18n( "&Reset" ), "undo" ) )
{
@@ -50,14 +50,14 @@ KopetePluginConfig::KopetePluginConfig( QWidget *parent, const char *name )
// FIXME: Implement this - Martijn
enableButton( KDialogBase::Help, false );
- setInitialSize( QSize( 640, 480 ) );
+ setInitialSize( TQSize( 640, 480 ) );
- ( new QVBoxLayout( plainPage(), 0, 0 ) )->setAutoAdd( true );
+ ( new TQVBoxLayout( plainPage(), 0, 0 ) )->setAutoAdd( true );
d->pluginSelector = new KPluginSelector( plainPage() );
setMainWidget( d->pluginSelector );
- connect( d->pluginSelector, SIGNAL( changed( bool ) ), this, SLOT( setChanged( bool ) ) );
- connect( d->pluginSelector, SIGNAL( configCommitted( const QCString & ) ),
- KSettings::Dispatcher::self(), SLOT( reparseConfiguration( const QCString & ) ) );
+ connect( d->pluginSelector, TQT_SIGNAL( changed( bool ) ), this, TQT_SLOT( setChanged( bool ) ) );
+ connect( d->pluginSelector, TQT_SIGNAL( configCommitted( const TQCString & ) ),
+ KSettings::Dispatcher::self(), TQT_SLOT( reparseConfiguration( const TQCString & ) ) );
d->pluginSelector->addPlugins( Kopete::PluginManager::self()->availablePlugins( "Plugins" ), i18n( "General Plugins" ), "Plugins" );
}
diff --git a/kopete/kopete/config/plugins/kopetepluginconfig.h b/kopete/kopete/config/plugins/kopetepluginconfig.h
index e8853a1c..04d1cfa1 100644
--- a/kopete/kopete/config/plugins/kopetepluginconfig.h
+++ b/kopete/kopete/config/plugins/kopetepluginconfig.h
@@ -32,7 +32,7 @@ class KopetePluginConfig : public KDialogBase
Q_OBJECT
public:
- KopetePluginConfig( QWidget *parent, const char *name = 0L );
+ KopetePluginConfig( TQWidget *parent, const char *name = 0L );
~KopetePluginConfig();
void apply();