summaryrefslogtreecommitdiffstats
path: root/src/modules/options
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:20 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:20 -0600
commitc6611272c2bc4a42580848946c8c5d81bb0409c7 (patch)
tree0fd5b58844663dfcd00fb2b79cf67dd0fd429c62 /src/modules/options
parent805c2821ceaddada48b346c6d11bd0dc1351a539 (diff)
downloadkvirc-c6611272c2bc4a42580848946c8c5d81bb0409c7.tar.gz
kvirc-c6611272c2bc4a42580848946c8c5d81bb0409c7.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 805c2821ceaddada48b346c6d11bd0dc1351a539.
Diffstat (limited to 'src/modules/options')
-rw-r--r--src/modules/options/container.cpp4
-rw-r--r--src/modules/options/dialog.cpp18
-rwxr-xr-xsrc/modules/options/mkcreateinstanceproc.sh6
-rw-r--r--src/modules/options/optw_antispam.cpp4
-rw-r--r--src/modules/options/optw_away.cpp2
-rw-r--r--src/modules/options/optw_ctcpfloodprotection.cpp2
-rw-r--r--src/modules/options/optw_dcc.cpp2
-rw-r--r--src/modules/options/optw_highlighting.cpp2
-rw-r--r--src/modules/options/optw_identity.cpp10
-rw-r--r--src/modules/options/optw_ignore.cpp2
-rw-r--r--src/modules/options/optw_input.cpp4
-rw-r--r--src/modules/options/optw_interfacefeatures.cpp2
-rw-r--r--src/modules/options/optw_interfacelookglobal.cpp10
-rw-r--r--src/modules/options/optw_irc.cpp2
-rw-r--r--src/modules/options/optw_ircoutput.cpp2
-rw-r--r--src/modules/options/optw_ircview.cpp4
-rw-r--r--src/modules/options/optw_lag.cpp2
-rw-r--r--src/modules/options/optw_logging.cpp2
-rw-r--r--src/modules/options/optw_mediatypes.cpp48
-rw-r--r--src/modules/options/optw_messages.cpp14
-rw-r--r--src/modules/options/optw_nickserv.cpp4
-rw-r--r--src/modules/options/optw_notify.cpp2
-rw-r--r--src/modules/options/optw_protection.cpp2
-rw-r--r--src/modules/options/optw_proxy.cpp6
-rw-r--r--src/modules/options/optw_query.cpp2
-rw-r--r--src/modules/options/optw_servers.cpp14
-rw-r--r--src/modules/options/optw_ssl.cpp2
-rw-r--r--src/modules/options/optw_taskbar.cpp2
-rw-r--r--src/modules/options/optw_textencoding.cpp4
-rw-r--r--src/modules/options/optw_texticons.cpp10
-rw-r--r--src/modules/options/optw_tools.cpp2
-rw-r--r--src/modules/options/optw_topiclabel.cpp2
-rw-r--r--src/modules/options/optw_tray.cpp2
-rw-r--r--src/modules/options/optw_uparser.cpp2
-rw-r--r--src/modules/options/optw_urlhandlers.cpp2
-rw-r--r--src/modules/options/optw_userlist.cpp6
36 files changed, 103 insertions, 103 deletions
diff --git a/src/modules/options/container.cpp b/src/modules/options/container.cpp
index 097d7729..c0b7bf8a 100644
--- a/src/modules/options/container.cpp
+++ b/src/modules/options/container.cpp
@@ -27,7 +27,7 @@
#include "kvi_iconmanager.h"
#include "kvi_app.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <tqpushbutton.h>
#include "kvi_tal_tooltip.h"
#include <tqevent.h>
@@ -59,7 +59,7 @@ void KviOptionsWidgetContainer::setup(KviOptionsWidget * w)
TQPushButton * b = new TQPushButton(__tr2qs_ctx("&OK","options"),this);
KviTalToolTip::add(b,__tr2qs_ctx("Close this dialog, accepting all changes.","options"));
- //b->setMinimumWidth(m_pCancel->sizeHint().width());
+ //b->setMinimumWidth(m_pCancel->tqsizeHint().width());
g->addWidget(b,1,1);
b->setDefault(true);
connect(b,TQT_SIGNAL(clicked()),this,TQT_SLOT(okClicked()));
diff --git a/src/modules/options/dialog.cpp b/src/modules/options/dialog.cpp
index 8b7242fb..b00eba60 100644
--- a/src/modules/options/dialog.cpp
+++ b/src/modules/options/dialog.cpp
@@ -32,7 +32,7 @@
#include "kvi_module.h"
#include "kvi_styled_controls.h"
#include "kvi_pointerhashtable.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_accel.h"
#include <tqlabel.h>
#include "kvi_tal_vbox.h"
@@ -69,8 +69,8 @@ KviGeneralOptionsFrontWidget::KviGeneralOptionsFrontWidget(TQWidget *parent,cons
#ifdef COMPILE_USE_QT4
l->setWordWrap(true);
#endif
- l->setAlignment(TQt::AlignTop);
- layout()->addWidget(l,0,0);
+ l->tqsetAlignment(TQt::AlignTop);
+ tqlayout()->addWidget(l,0,0);
}
KviGeneralOptionsFrontWidget::~KviGeneralOptionsFrontWidget()
@@ -179,7 +179,7 @@ KviOptionsDialog::KviOptionsDialog(TQWidget * par,const TQString &szGroup)
"</td>" \
"</tr>" \
"</table>"
- ).arg(szDialogTitle).arg(szDialog).arg(szInfoTips).arg(szOkCancelButtons);
+ ).tqarg(szDialogTitle).tqarg(szDialog).tqarg(szInfoTips).tqarg(szOkCancelButtons);
TQString szCaption = szDialogTitle + " - KVIrc";
setCaption(szCaption);
@@ -534,10 +534,10 @@ void KviOptionsDialog::fillListView(KviTalListViewItem * p,KviPointerList<KviOpt
{
if(e->bIsContainer)
{
- // it's a container: add only eventual not contained children (containers or explicitly marked as not contained)
+ // it's a container: add only eventual not contained tqchildren (containers or explicitly marked as not contained)
fillListView(it,e->pChildList,szGroup,true);
} else {
- // it's not a container, add any children
+ // it's not a container, add any tqchildren
fillListView(it,e->pChildList,szGroup,false);
}
}
@@ -578,7 +578,7 @@ KviOptionsListViewItem * KviOptionsDialog::findItemByPage(KviOptionsListViewItem
if(it->m_pOptionsWidget == pPage)return it;
KviOptionsListViewItem *i;
- // run through the children
+ // run through the tqchildren
i = (KviOptionsListViewItem *)(it->firstChild());
if(i)
{
@@ -586,7 +586,7 @@ KviOptionsListViewItem * KviOptionsDialog::findItemByPage(KviOptionsListViewItem
if(i)return i;
}
- // not found in the children tree.. look in the next sibling
+ // not found in the tqchildren tree.. look in the next sibling
i = (KviOptionsListViewItem *)(it->nextSibling());
if(i)
{
@@ -647,7 +647,7 @@ void KviOptionsDialog::closeEvent(TQCloseEvent *e)
void KviOptionsDialog::recursiveCommit(KviOptionsListViewItem *it)
{
- // First commit the children
+ // First commit the tqchildren
if(!it) return;
KviOptionsListViewItem *it2 = (KviOptionsListViewItem *)it->firstChild();
while(it2)
diff --git a/src/modules/options/mkcreateinstanceproc.sh b/src/modules/options/mkcreateinstanceproc.sh
index 9947aff7..1a25a14d 100755
--- a/src/modules/options/mkcreateinstanceproc.sh
+++ b/src/modules/options/mkcreateinstanceproc.sh
@@ -271,7 +271,7 @@ printclass()
fi
}
-addchildren()
+addtqchildren()
{
if [ -f "$CLASSDIR/$2" ]; then
LEVEL=`cat $CLASSDIR/$2`
@@ -282,7 +282,7 @@ addchildren()
echo "$3 e$1->pChildList = new KviPointerList<KviOptionsWidgetInstanceEntry>;" >> $TARGET
echo "$3 e$1->pChildList->setAutoDelete(true);" >> $TARGET
NEXTLEVEL=`expr $1 + 1`
- addchildren $NEXTLEVEL $achild "$3 "
+ addtqchildren $NEXTLEVEL $achild "$3 "
else
echo "$3 e$1->pChildList = 0;" >> $TARGET
fi
@@ -290,7 +290,7 @@ addchildren()
fi
}
-addchildren 0 NOPARENT ""
+addtqchildren 0 NOPARENT ""
rm -fr $CLASSDIR
diff --git a/src/modules/options/optw_antispam.cpp b/src/modules/options/optw_antispam.cpp
index edb2dc40..43cc13e9 100644
--- a/src/modules/options/optw_antispam.cpp
+++ b/src/modules/options/optw_antispam.cpp
@@ -22,7 +22,7 @@
#include "optw_antispam.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
@@ -47,7 +47,7 @@ KviAntispamOptionsWidget::KviAntispamOptionsWidget(TQWidget * parent)
reenableStuff(true);
- layout()->setRowStretch(2,1);
+ tqlayout()->setRowStretch(2,1);
}
KviAntispamOptionsWidget::~KviAntispamOptionsWidget()
diff --git a/src/modules/options/optw_away.cpp b/src/modules/options/optw_away.cpp
index 546b232d..0faf216e 100644
--- a/src/modules/options/optw_away.cpp
+++ b/src/modules/options/optw_away.cpp
@@ -23,7 +23,7 @@
#include "optw_away.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
diff --git a/src/modules/options/optw_ctcpfloodprotection.cpp b/src/modules/options/optw_ctcpfloodprotection.cpp
index 82b3f95e..a0604d9b 100644
--- a/src/modules/options/optw_ctcpfloodprotection.cpp
+++ b/src/modules/options/optw_ctcpfloodprotection.cpp
@@ -22,7 +22,7 @@
#include "optw_ctcpfloodprotection.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
diff --git a/src/modules/options/optw_dcc.cpp b/src/modules/options/optw_dcc.cpp
index f32dfc50..8ddf15bc 100644
--- a/src/modules/options/optw_dcc.cpp
+++ b/src/modules/options/optw_dcc.cpp
@@ -24,7 +24,7 @@
#include "optw_dcc.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
diff --git a/src/modules/options/optw_highlighting.cpp b/src/modules/options/optw_highlighting.cpp
index 2ecbc0bc..fdb8e908 100644
--- a/src/modules/options/optw_highlighting.cpp
+++ b/src/modules/options/optw_highlighting.cpp
@@ -24,7 +24,7 @@
#include "optw_highlighting.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
diff --git a/src/modules/options/optw_identity.cpp b/src/modules/options/optw_identity.cpp
index bf270c49..57b67a48 100644
--- a/src/modules/options/optw_identity.cpp
+++ b/src/modules/options/optw_identity.cpp
@@ -27,7 +27,7 @@
#include <tqlineedit.h>
#include <tqcheckbox.h>
#include <tqpushbutton.h>
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_tal_tooltip.h"
#include <tqtabwidget.h>
#include <tqcombobox.h>
@@ -311,7 +311,7 @@ KviIdentityGeneralOptionsWidget::KviIdentityGeneralOptionsWidget(TQWidget * pare
createLayout(3,1);
- layout()->setMargin(10);
+ tqlayout()->setMargin(10);
KviTalGroupBox * gbox = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Basic Properties","options"));
KviTalHBox * hb = new KviTalHBox(gbox);
@@ -492,7 +492,7 @@ KviIdentityAvatarOptionsWidget::KviIdentityAvatarOptionsWidget(TQWidget * parent
: KviOptionsWidget(parent)
{
createLayout(4,1);
- layout()->setMargin(10);
+ tqlayout()->setMargin(10);
m_pLocalAvatar = new KviPixmap(KVI_OPTION_PIXMAP(KviOption_pixmapMyAvatar));
@@ -540,7 +540,7 @@ KviIdentityAvatarOptionsWidget::KviIdentityAvatarOptionsWidget(TQWidget * parent
connect(m_pChooseAvatarButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(chooseAvatar()));
- layout()->setRowStretch(1,2);
+ tqlayout()->setRowStretch(1,2);
}
KviIdentityAvatarOptionsWidget::~KviIdentityAvatarOptionsWidget()
@@ -678,7 +678,7 @@ KviIdentityAdvancedOptionsWidget::KviIdentityAdvancedOptionsWidget(TQWidget * pa
createLayout(2,1);
- layout()->setMargin(10);
+ tqlayout()->setMargin(10);
KviTalGroupBox * gbox = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("User Mode","options"));
m_pISelector = addBoolSelector(gbox,__tr2qs_ctx("Invisible (+i)","options"),&m_bI);
diff --git a/src/modules/options/optw_ignore.cpp b/src/modules/options/optw_ignore.cpp
index 90bec09a..9d6b56a8 100644
--- a/src/modules/options/optw_ignore.cpp
+++ b/src/modules/options/optw_ignore.cpp
@@ -22,7 +22,7 @@
#include "optw_ignore.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
diff --git a/src/modules/options/optw_input.cpp b/src/modules/options/optw_input.cpp
index a125f769..c1ad6e84 100644
--- a/src/modules/options/optw_input.cpp
+++ b/src/modules/options/optw_input.cpp
@@ -21,7 +21,7 @@
//
#include "optw_input.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
@@ -92,7 +92,7 @@ KviInputLookOptionsWidget::KviInputLookOptionsWidget(TQWidget * parent)
}
- layout()->setRowStretch(7,1);
+ tqlayout()->setRowStretch(7,1);
}
KviInputLookOptionsWidget::~KviInputLookOptionsWidget()
diff --git a/src/modules/options/optw_interfacefeatures.cpp b/src/modules/options/optw_interfacefeatures.cpp
index e10e3059..780c493f 100644
--- a/src/modules/options/optw_interfacefeatures.cpp
+++ b/src/modules/options/optw_interfacefeatures.cpp
@@ -24,7 +24,7 @@
#include "optw_interfacefeatures.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlabel.h>
#include <string.h>
diff --git a/src/modules/options/optw_interfacelookglobal.cpp b/src/modules/options/optw_interfacelookglobal.cpp
index a0e5aedb..1e2c998f 100644
--- a/src/modules/options/optw_interfacelookglobal.cpp
+++ b/src/modules/options/optw_interfacelookglobal.cpp
@@ -22,7 +22,7 @@
#include "optw_interfacelookglobal.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_settings.h"
#include "kvi_options.h"
@@ -104,13 +104,13 @@ KviThemeTransparencyOptionsWidget::KviThemeTransparencyOptionsWidget(TQWidget *
m_pGlobalBackgroundPixmapSelector = addPixmapSelector(0,6,1,6,__tr2qs_ctx("Transparency blend image:","options"),KviOption_pixmapGlobalTransparencyBackground,
KVI_OPTION_BOOL(KviOption_boolUseGlobalPseudoTransparency) && !KVI_OPTION_BOOL(KviOption_boolObtainGlobalBackgroundFromKde));
- layout()->setRowStretch(6,1);
+ tqlayout()->setRowStretch(6,1);
connect(m_pObtainBackgroundFromKdeBoolSelector,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(enableGlobalBackgroundPixmapSelector(bool)));
#else //!COMPILE_KDE_SUPPORT
m_pGlobalBackgroundPixmapSelector = addPixmapSelector(0,4,1,4,__tr2qs_ctx("Transparency blend image:","options"),KviOption_pixmapGlobalTransparencyBackground,
KVI_OPTION_BOOL(KviOption_boolUseGlobalPseudoTransparency));
- layout()->setRowStretch(4,1);
+ tqlayout()->setRowStretch(4,1);
#endif //!COMPILE_KDE_SUPPORT
connect(m_pUseTransparencyBoolSelector,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(enableGlobalBackgroundPixmapSelector(bool)));
connect(m_pUseTransparencyBoolSelector,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(enableUpdateKdeBackgroundBoolSelector(bool)));
@@ -177,7 +177,7 @@ KviThemeMdiAreaOptionsWidget::KviThemeMdiAreaOptionsWidget(TQWidget * parent)
addColorSelector(0,0,0,0,__tr2qs_ctx("Background","options"),KviOption_colorMdiBackground);
addPixmapSelector(0,1,0,1,__tr2qs_ctx("Background Image","options"),KviOption_pixmapMdiBackground);
- layout()->setRowStretch(1,1);
+ tqlayout()->setRowStretch(1,1);
}
KviThemeMdiAreaOptionsWidget::~KviThemeMdiAreaOptionsWidget()
@@ -204,7 +204,7 @@ KviThemeToolBarAppletsOptionsWidget::KviThemeToolBarAppletsOptionsWidget(TQWidge
addPixmapSelector(0,8,0,8,__tr2qs_ctx("Background Image","options"),KviOption_pixmapIrcToolBarAppletBackground);
- layout()->setRowStretch(8,1);
+ tqlayout()->setRowStretch(8,1);
}
KviThemeToolBarAppletsOptionsWidget::~KviThemeToolBarAppletsOptionsWidget()
diff --git a/src/modules/options/optw_irc.cpp b/src/modules/options/optw_irc.cpp
index a6cee9d0..f39add08 100644
--- a/src/modules/options/optw_irc.cpp
+++ b/src/modules/options/optw_irc.cpp
@@ -181,7 +181,7 @@ KviChannelAdvancedOptionsWidget::KviChannelAdvancedOptionsWidget(TQWidget * pPar
hostmask.mask(tmp1,(KviIrcMask::MaskType)i);
ipmask.mask(tmp2,(KviIrcMask::MaskType)i);
- m_pBanTypeCombo->insertItem(TQString("%1 (%2)").arg(tmp1).arg(tmp2));
+ m_pBanTypeCombo->insertItem(TQString("%1 (%2)").tqarg(tmp1).tqarg(tmp2));
}
m_pBanTypeCombo->setCurrentItem(KVI_OPTION_UINT(KviOption_uintDefaultBanType));
diff --git a/src/modules/options/optw_ircoutput.cpp b/src/modules/options/optw_ircoutput.cpp
index 7ff21bee..6446fe72 100644
--- a/src/modules/options/optw_ircoutput.cpp
+++ b/src/modules/options/optw_ircoutput.cpp
@@ -22,7 +22,7 @@
#include "optw_ircoutput.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_settings.h"
#include "kvi_options.h"
diff --git a/src/modules/options/optw_ircview.cpp b/src/modules/options/optw_ircview.cpp
index 8c38bfa9..4bb80f59 100644
--- a/src/modules/options/optw_ircview.cpp
+++ b/src/modules/options/optw_ircview.cpp
@@ -21,7 +21,7 @@
//
#include "optw_ircview.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
@@ -98,7 +98,7 @@ KviIrcViewLookOptionsWidget::KviIrcViewLookOptionsWidget(TQWidget * parent)
m_pVerticalAlign->setCurrentItem(0);
}
- layout()->setRowStretch(2,1);
+ tqlayout()->setRowStretch(2,1);
}
KviIrcViewLookOptionsWidget::~KviIrcViewLookOptionsWidget()
diff --git a/src/modules/options/optw_lag.cpp b/src/modules/options/optw_lag.cpp
index fa964a9c..8dce8615 100644
--- a/src/modules/options/optw_lag.cpp
+++ b/src/modules/options/optw_lag.cpp
@@ -23,7 +23,7 @@
#include "optw_lag.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_tal_tooltip.h"
#include "kvi_options.h"
diff --git a/src/modules/options/optw_logging.cpp b/src/modules/options/optw_logging.cpp
index e935dfc6..378c1dd1 100644
--- a/src/modules/options/optw_logging.cpp
+++ b/src/modules/options/optw_logging.cpp
@@ -23,7 +23,7 @@
#include "optw_logging.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
diff --git a/src/modules/options/optw_mediatypes.cpp b/src/modules/options/optw_mediatypes.cpp
index 51cdad76..b93081e9 100644
--- a/src/modules/options/optw_mediatypes.cpp
+++ b/src/modules/options/optw_mediatypes.cpp
@@ -22,7 +22,7 @@
#include "optw_mediatypes.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlabel.h>
#include "kvi_tal_tooltip.h"
@@ -77,72 +77,72 @@ KviMediaTypesOptionsWidget::KviMediaTypesOptionsWidget(TQWidget * parent)
connect(m_pListView,TQT_SIGNAL(currentChanged(KviTalListViewItem *)),this,TQT_SLOT(currentItemChanged(KviTalListViewItem *)));
- layout()->addMultiCellWidget(m_pListView,0,0,0,2);
+ tqlayout()->addMultiCellWidget(m_pListView,0,0,0,2);
TQLabel * l = new TQLabel(__tr2qs_ctx("Description:","options"),this);
- layout()->addWidget(l,1,0);
+ tqlayout()->addWidget(l,1,0);
m_pDescription = new TQLineEdit(this);
- layout()->addMultiCellWidget(m_pDescription,1,1,1,2);
+ tqlayout()->addMultiCellWidget(m_pDescription,1,1,1,2);
l = new TQLabel(__tr2qs_ctx("MIME type:","options"),this);
- layout()->addWidget(l,2,0);
+ tqlayout()->addWidget(l,2,0);
m_pIanaType = new TQLineEdit(this);
- layout()->addMultiCellWidget(m_pIanaType,2,2,1,2);
+ tqlayout()->addMultiCellWidget(m_pIanaType,2,2,1,2);
l = new TQLabel(__tr2qs_ctx("File pattern:","options"),this);
- layout()->addWidget(l,3,0);
+ tqlayout()->addWidget(l,3,0);
m_pFileMask = new TQLineEdit(this);
- layout()->addMultiCellWidget(m_pFileMask,3,3,1,2);
+ tqlayout()->addMultiCellWidget(m_pFileMask,3,3,1,2);
l = new TQLabel(__tr2qs_ctx("Magic bytes:","options"),this);
- layout()->addWidget(l,4,0);
+ tqlayout()->addWidget(l,4,0);
m_pMagicBytes = new TQLineEdit(this);
- layout()->addMultiCellWidget(m_pMagicBytes,4,4,1,2);
+ tqlayout()->addMultiCellWidget(m_pMagicBytes,4,4,1,2);
l = new TQLabel(__tr2qs_ctx("Save path:","options"),this);
- layout()->addWidget(l,5,0);
+ tqlayout()->addWidget(l,5,0);
m_pSavePath = new TQLineEdit(this);
- layout()->addMultiCellWidget(m_pSavePath,5,5,1,2);
+ tqlayout()->addMultiCellWidget(m_pSavePath,5,5,1,2);
l = new TQLabel(__tr2qs_ctx("Local open command:","options"),this);
- layout()->addWidget(l,6,0);
+ tqlayout()->addWidget(l,6,0);
m_pCommandline = new TQLineEdit(this);
- layout()->addMultiCellWidget(m_pCommandline,6,6,1,2);
+ tqlayout()->addMultiCellWidget(m_pCommandline,6,6,1,2);
#ifdef COMPILE_INFO_TIPS
mergeTip(m_pCommandline,__tr2qs_ctx("<center>This field contains the command to execute to open a local file.<br>" \
"<tt>$0</tt> is used in place of the filename</center>","options"));
#endif
l = new TQLabel(__tr2qs_ctx("Remote open command:","options"),this);
- layout()->addWidget(l,7,0);
+ tqlayout()->addWidget(l,7,0);
m_pRemoteExecCommandline = new TQLineEdit(this);
- layout()->addMultiCellWidget(m_pRemoteExecCommandline,7,7,1,2);
+ tqlayout()->addMultiCellWidget(m_pRemoteExecCommandline,7,7,1,2);
#ifdef COMPILE_INFO_TIPS
mergeTip(m_pRemoteExecCommandline,__tr2qs_ctx("<center>This field contains the command to execute when automatically opening a received file.<br>" \
"<tt>$0</tt> is used in place of the filename</center>","options"));
#endif
l = new TQLabel(__tr2qs_ctx("Icon","options"),this);
- layout()->addWidget(l,8,0);
+ tqlayout()->addWidget(l,8,0);
m_pIcon = new TQLineEdit(this);
- layout()->addMultiCellWidget(m_pIcon,8,8,1,2);
+ tqlayout()->addMultiCellWidget(m_pIcon,8,8,1,2);
TQFrame * f = new TQFrame(this);
f->setFrameStyle(TQFrame::Sunken | TQFrame::HLine);
- layout()->addMultiCellWidget(f,9,9,0,2);
+ tqlayout()->addMultiCellWidget(f,9,9,0,2);
TQPushButton * b = new TQPushButton(__tr2qs_ctx("&New","options"),this);
connect(b,TQT_SIGNAL(clicked()),this,TQT_SLOT(newMediaType()));
- layout()->addWidget(b,10,1);
+ tqlayout()->addWidget(b,10,1);
m_pDelete = new TQPushButton(__tr2qs_ctx("Re&move","options"),this);
connect(m_pDelete,TQT_SIGNAL(clicked()),this,TQT_SLOT(delMediaType()));
- layout()->addWidget(m_pDelete,10,2);
+ tqlayout()->addWidget(m_pDelete,10,2);
- layout()->setColStretch(1,1);
- layout()->setColStretch(2,1);
- layout()->setRowStretch(0,1);
+ tqlayout()->setColStretch(1,1);
+ tqlayout()->setColStretch(2,1);
+ tqlayout()->setRowStretch(0,1);
m_pLastItem = 0;
diff --git a/src/modules/options/optw_messages.cpp b/src/modules/options/optw_messages.cpp
index faf26954..175f119b 100644
--- a/src/modules/options/optw_messages.cpp
+++ b/src/modules/options/optw_messages.cpp
@@ -26,7 +26,7 @@
#include "optw_messages.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <tqpushbutton.h>
#include "kvi_tal_vbox.h"
#include <tqcursor.h>
@@ -186,7 +186,7 @@ KviStandardColorsOptionsWidget::KviStandardColorsOptionsWidget(TQWidget * parent
addRowSpacer(0,4,3,4);
- layout()->setRowStretch(4,1);
+ tqlayout()->setRowStretch(4,1);
}
KviStandardColorsOptionsWidget::~KviStandardColorsOptionsWidget()
@@ -261,14 +261,14 @@ void KviMessageListViewItem::paintCell(TQPainter * p,const TQColorGroup &,int,in
#ifdef COMPILE_PSEUDO_TRANSPARENCY
if(g_pShadedChildGlobalDesktopBackground)
{
- TQPoint pnt = listView()->viewport()->mapToGlobal(TQPoint(int(p->worldMatrix().dx()),int(p->worldMatrix().dy())));
+ TQPoint pnt = listView()->viewport()->mapToGlobal(TQPoint(int(p->tqworldMatrix().dx()),int(p->tqworldMatrix().dy())));
p->drawTiledPixmap(0,0,w,height(),*g_pShadedChildGlobalDesktopBackground,pnt.x(),pnt.y());
} else {
#endif
TQPixmap * pix = KVI_OPTION_PIXMAP(KviOption_pixmapIrcViewBackground).pixmap();
if(pix)
{
- TQPoint pnt = listView()->viewportToContents(TQPoint(int(p->worldMatrix().dx()),int(p->worldMatrix().dy())));
+ TQPoint pnt = listView()->viewportToContents(TQPoint(int(p->tqworldMatrix().dx()),int(p->tqworldMatrix().dy())));
p->fillRect(0,0,w,height(),KVI_OPTION_COLOR(KviOption_colorIrcViewBackground));
p->drawTiledPixmap(0,0,w,height(),*pix,pnt.x(),pnt.y());
} else {
@@ -335,7 +335,7 @@ void KviMessageColorListBoxItem::paint(TQPainter * p)
clr = lb->isEnabled() ? KVI_OPTION_MIRCCOLOR(m_iClrIdx) : TQt::gray;
p->fillRect(0,0,width(lb),height(lb),clr);
} else {
- clr = listBox()->colorGroup().background();
+ clr = listBox()->tqcolorGroup().background();
KviTalListBoxText::paint(p);
}
if(isSelected())
@@ -464,8 +464,8 @@ KviMessageColorsOptionsWidget::KviMessageColorsOptionsWidget(TQWidget * parent)
it = new KviMessageListViewItem(m_pListView,i);
}
- layout()->setRowStretch(0,1);
- layout()->setColStretch(0,1);
+ tqlayout()->setRowStretch(0,1);
+ tqlayout()->setColStretch(0,1);
connect(m_pListView,TQT_SIGNAL(selectionChanged(KviTalListViewItem *)),this,TQT_SLOT(itemChanged(KviTalListViewItem *)));
connect(m_pForeListBox,TQT_SIGNAL(selectionChanged(KviTalListBoxItem *)),this,TQT_SLOT(colorChanged(KviTalListBoxItem *)));
diff --git a/src/modules/options/optw_nickserv.cpp b/src/modules/options/optw_nickserv.cpp
index 0fa796c4..19a7683d 100644
--- a/src/modules/options/optw_nickserv.cpp
+++ b/src/modules/options/optw_nickserv.cpp
@@ -24,7 +24,7 @@
#include "optw_nickserv.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_tal_tooltip.h"
#include "kvi_tal_listview.h"
#include <tqlineedit.h>
@@ -236,7 +236,7 @@ KviNickServOptionsWidget::KviNickServOptionsWidget(TQWidget * parent)
{
createLayout(3,3);
- TQGridLayout * gl = layout();
+ TQGridLayout * gl = tqlayout();
KviNickServRuleSet * rs = g_pNickServRuleSet;
bool bNickServEnabled = rs ? (rs->isEnabled() && !rs->isEmpty()) : false;
diff --git a/src/modules/options/optw_notify.cpp b/src/modules/options/optw_notify.cpp
index 4e75c076..8688cdc6 100644
--- a/src/modules/options/optw_notify.cpp
+++ b/src/modules/options/optw_notify.cpp
@@ -22,7 +22,7 @@
#include "optw_notify.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_settings.h"
#include "kvi_options.h"
#include "kvi_locale.h"
diff --git a/src/modules/options/optw_protection.cpp b/src/modules/options/optw_protection.cpp
index 65bec77f..5f125101 100644
--- a/src/modules/options/optw_protection.cpp
+++ b/src/modules/options/optw_protection.cpp
@@ -24,7 +24,7 @@
#include "optw_protection.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_settings.h"
#include "kvi_options.h"
diff --git a/src/modules/options/optw_proxy.cpp b/src/modules/options/optw_proxy.cpp
index aa9cedac..f5db3256 100644
--- a/src/modules/options/optw_proxy.cpp
+++ b/src/modules/options/optw_proxy.cpp
@@ -104,7 +104,7 @@ KviProxyOptionsWidget::KviProxyOptionsWidget(TQWidget * parent)
KviTalGroupBox * gbox = addGroupBox(0,2,1,2,2,Qt::Horizontal,__tr2qs_ctx("Configuration","options"),this);
- //TQGridLayout * gl = new TQGridLayout(gbox->layout());
+ //TQGridLayout * gl = new TQGridLayout(gbox->tqlayout());
//gl->setMargin(2);
//gl->setSpacing(4);
@@ -147,8 +147,8 @@ KviProxyOptionsWidget::KviProxyOptionsWidget(TQWidget * parent)
fillProxyList();
- layout()->setRowStretch(0,1);
- layout()->setColStretch(0,1);
+ tqlayout()->setRowStretch(0,1);
+ tqlayout()->setColStretch(0,1);
m_pContextPopup = new KviTalPopupMenu(this);
diff --git a/src/modules/options/optw_query.cpp b/src/modules/options/optw_query.cpp
index a11f0a7d..dfaca3bb 100644
--- a/src/modules/options/optw_query.cpp
+++ b/src/modules/options/optw_query.cpp
@@ -23,7 +23,7 @@
#include "optw_query.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
diff --git a/src/modules/options/optw_servers.cpp b/src/modules/options/optw_servers.cpp
index 3706f10c..319f5be8 100644
--- a/src/modules/options/optw_servers.cpp
+++ b/src/modules/options/optw_servers.cpp
@@ -102,7 +102,7 @@ KviNetworkDetailsWidget::KviNetworkDetailsWidget(TQWidget * par,KviIrcNetwork *
TQLabel * l = new TQLabel(szTmp,this);
l->setFrameStyle(TQFrame::Raised | TQFrame::StyledPanel);
- l->setAlignment(TQt::AlignCenter);
+ l->tqsetAlignment(TQt::AlignCenter);
l->setMargin(10);
g->addMultiCellWidget(l,0,0,0,3);
l->setMinimumWidth(200);
@@ -451,7 +451,7 @@ KviServerDetailsWidget::KviServerDetailsWidget(TQWidget * par,KviIrcServer * s)
m_pHeaderLabel = new TQLabel("",this); // the text will be set later
m_pHeaderLabel->setFrameStyle(TQFrame::Raised | TQFrame::StyledPanel);
- m_pHeaderLabel->setAlignment(TQt::AlignCenter);
+ m_pHeaderLabel->tqsetAlignment(TQt::AlignCenter);
m_pHeaderLabel->setMargin(10);
g->addMultiCellWidget(m_pHeaderLabel,0,0,0,3);
m_pHeaderLabel->setMinimumWidth(200);
@@ -732,7 +732,7 @@ KviServerDetailsWidget::KviServerDetailsWidget(TQWidget * par,KviIrcServer * s)
KviPointerList<KviProxy> * proxylist = g_pProxyDataBase->proxyList();
for(KviProxy * p = proxylist->first();p;p = proxylist->next())
{
- m_pProxyEditor->insertItem(TQString("%1:%2").arg(p->hostname()).arg(p->port()));
+ m_pProxyEditor->insertItem(TQString("%1:%2").tqarg(p->hostname()).tqarg(p->port()));
}
if(m_pProxyEditor->count() > (s->proxy()+2))
m_pProxyEditor->setCurrentItem(s->proxy()+2);
@@ -1192,10 +1192,10 @@ KviServerOptionsWidget::KviServerOptionsWidget(TQWidget * parent)
fillServerList();
- layout()->setRowStretch(0,1);
- //layout()->setColStretch(1,5);
- //layout()->setColStretch(2,2);
- layout()->setColStretch(0,1);
+ tqlayout()->setRowStretch(0,1);
+ //tqlayout()->setColStretch(1,5);
+ //tqlayout()->setColStretch(2,2);
+ tqlayout()->setColStretch(0,1);
setMinimumWidth(320);
}
diff --git a/src/modules/options/optw_ssl.cpp b/src/modules/options/optw_ssl.cpp
index 46da0619..54135f69 100644
--- a/src/modules/options/optw_ssl.cpp
+++ b/src/modules/options/optw_ssl.cpp
@@ -22,7 +22,7 @@
#include "optw_ssl.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <kvi_tal_groupbox.h>
#include "kvi_options.h"
diff --git a/src/modules/options/optw_taskbar.cpp b/src/modules/options/optw_taskbar.cpp
index 0c85ea7e..201766cd 100644
--- a/src/modules/options/optw_taskbar.cpp
+++ b/src/modules/options/optw_taskbar.cpp
@@ -161,7 +161,7 @@ KviTreeTaskBarBackgroundOptionsWidget::KviTreeTaskBarBackgroundOptionsWidget(TQW
m_pVerticalAlign->setCurrentItem(0);
}
- layout()->setRowStretch(1,1);
+ tqlayout()->setRowStretch(1,1);
}
diff --git a/src/modules/options/optw_textencoding.cpp b/src/modules/options/optw_textencoding.cpp
index fc915ed4..495df00a 100644
--- a/src/modules/options/optw_textencoding.cpp
+++ b/src/modules/options/optw_textencoding.cpp
@@ -68,7 +68,7 @@ KviTextEncodingOptionsWidget::KviTextEncodingOptionsWidget(TQWidget * parent)
m_pForcedLocaleCombo->insertItem(__tr2qs_ctx("Automatic detection","options"));
m_pForcedLocaleCombo->insertItem(__tr2qs_ctx("en","options"));
- TQString szLangFile=TQString("%1/.kvirc_force_locale").arg(TQDir::homeDirPath());
+ TQString szLangFile=TQString("%1/.kvirc_force_locale").tqarg(TQDir::homeDirPath());
bool bIsDefaultLocale = !KviFileUtils::fileExists(szLangFile);
//We Have setted locale, but not restarted kvirc
@@ -121,7 +121,7 @@ void KviTextEncodingOptionsWidget::commit()
}
idx=m_pForcedLocaleCombo->currentItem();
- TQString szLangFile=TQString("%1/.kvirc_force_locale").arg(TQDir::homeDirPath());
+ TQString szLangFile=TQString("%1/.kvirc_force_locale").tqarg(TQDir::homeDirPath());
if(idx==0) {
if(KviFileUtils::fileExists(szLangFile))
KviFileUtils::removeFile(szLangFile);
diff --git a/src/modules/options/optw_texticons.cpp b/src/modules/options/optw_texticons.cpp
index b8ae293c..3d6e01bc 100644
--- a/src/modules/options/optw_texticons.cpp
+++ b/src/modules/options/optw_texticons.cpp
@@ -27,7 +27,7 @@
#include "kvi_locale.h"
#include "kvi_filedialog.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <tqcursor.h>
#include "kvi_tal_hbox.h"
@@ -37,7 +37,7 @@ KviTextIconEditor::KviTextIconEditor(TQWidget * par,KviTextIcon * icon,KviTextIc
{
m_pIconButton=new TQToolButton(this);
m_pBrowseButton=new TQToolButton(this);
- m_pBrowseButton->setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum,TQSizePolicy::Maximum));
+ m_pBrowseButton->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Maximum,TQSizePolicy::Maximum));
m_pBrowseButton->setText("...");
m_pIcon = icon;
m_pPopup = 0;
@@ -160,14 +160,14 @@ KviTextIconsOptionsWidget::KviTextIconsOptionsWidget(TQWidget * parent)
++it;
}
- layout()->addMultiCellWidget(m_pTable,0,0,0,1);
+ tqlayout()->addMultiCellWidget(m_pTable,0,0,0,1);
m_pAdd = new TQPushButton(__tr2qs_ctx("Add","options"),this);
- layout()->addWidget(m_pAdd,1,0);
+ tqlayout()->addWidget(m_pAdd,1,0);
connect(m_pAdd,TQT_SIGNAL(clicked()),this,TQT_SLOT(addClicked()));
m_pDel = new TQPushButton(__tr2qs_ctx("Delete","options"),this);
- layout()->addWidget(m_pDel,1,1);
+ tqlayout()->addWidget(m_pDel,1,1);
connect(m_pDel,TQT_SIGNAL(clicked()),this,TQT_SLOT(delClicked()));
m_pDel->setEnabled(false);
diff --git a/src/modules/options/optw_tools.cpp b/src/modules/options/optw_tools.cpp
index 33347712..a1f3cf00 100644
--- a/src/modules/options/optw_tools.cpp
+++ b/src/modules/options/optw_tools.cpp
@@ -24,7 +24,7 @@
#include "optw_tools.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_settings.h"
#include "kvi_options.h"
diff --git a/src/modules/options/optw_topiclabel.cpp b/src/modules/options/optw_topiclabel.cpp
index 904eeaee..ec076dac 100644
--- a/src/modules/options/optw_topiclabel.cpp
+++ b/src/modules/options/optw_topiclabel.cpp
@@ -33,7 +33,7 @@ KviTopicLabelLookOptionsWidget::KviTopicLabelLookOptionsWidget(TQWidget *p):KviO
addColorSelector(0, 2, 0, 2, __tr2qs_ctx("Background color","options"), KviOption_colorLabelBackground);
addPixmapSelector(0, 3, 0, 3, __tr2qs_ctx("Background image","options"), KviOption_pixmapLabelBackground);
- layout()->setRowStretch(3, 1);
+ tqlayout()->setRowStretch(3, 1);
}
KviTopicLabelLookOptionsWidget::~KviTopicLabelLookOptionsWidget()
diff --git a/src/modules/options/optw_tray.cpp b/src/modules/options/optw_tray.cpp
index f0083c42..df6fd0ba 100644
--- a/src/modules/options/optw_tray.cpp
+++ b/src/modules/options/optw_tray.cpp
@@ -23,7 +23,7 @@
#include "optw_tray.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_tal_tooltip.h"
#include "kvi_options.h"
diff --git a/src/modules/options/optw_uparser.cpp b/src/modules/options/optw_uparser.cpp
index 1a7c11ae..15fe465c 100644
--- a/src/modules/options/optw_uparser.cpp
+++ b/src/modules/options/optw_uparser.cpp
@@ -23,7 +23,7 @@
#include "optw_uparser.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
diff --git a/src/modules/options/optw_urlhandlers.cpp b/src/modules/options/optw_urlhandlers.cpp
index 1d712546..6e356770 100644
--- a/src/modules/options/optw_urlhandlers.cpp
+++ b/src/modules/options/optw_urlhandlers.cpp
@@ -24,7 +24,7 @@
#include "optw_urlhandlers.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
diff --git a/src/modules/options/optw_userlist.cpp b/src/modules/options/optw_userlist.cpp
index a18367dd..9785cf22 100644
--- a/src/modules/options/optw_userlist.cpp
+++ b/src/modules/options/optw_userlist.cpp
@@ -21,7 +21,7 @@
//
#include "optw_userlist.h"
-#include <layout.h>
+#include <tqlayout.h>
#include "kvi_options.h"
#include "kvi_locale.h"
@@ -178,8 +178,8 @@ KviUserListLookBackgroundOptionsWidget::KviUserListLookBackgroundOptionsWidget(T
- //layout()->setColStretch(0,1);
- layout()->setRowStretch(1,1);
+ //tqlayout()->setColStretch(0,1);
+ tqlayout()->setRowStretch(1,1);
}
KviUserListLookBackgroundOptionsWidget::~KviUserListLookBackgroundOptionsWidget()