summaryrefslogtreecommitdiffstats
path: root/knode
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-15 01:44:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-15 01:44:26 +0000
commit2d0cd394291d27533313adaf3dfdcd2eb92f61da (patch)
treef54a0d39f384783af4982dc9b153d1ab563261e3 /knode
parent1c93fca14d9ce37499bcfdf994c660186a0b6f17 (diff)
downloadtdepim-2d0cd394291d27533313adaf3dfdcd2eb92f61da.tar.gz
tdepim-2d0cd394291d27533313adaf3dfdcd2eb92f61da.zip
Fix Qt3 compilation of kdepim
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227976 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knode')
-rw-r--r--knode/articlewidget.cpp4
-rw-r--r--knode/kngroupdialog.cpp2
-rw-r--r--knode/kngroupselectdialog.cpp2
-rw-r--r--knode/knode_part.cpp4
-rw-r--r--knode/utilities.cpp2
5 files changed, 7 insertions, 7 deletions
diff --git a/knode/articlewidget.cpp b/knode/articlewidget.cpp
index 30af3f603..b5586c33c 100644
--- a/knode/articlewidget.cpp
+++ b/knode/articlewidget.cpp
@@ -98,13 +98,13 @@ ArticleWidget::ArticleWidget( TQWidget *tqparent,
TQHBoxLayout *box = new TQHBoxLayout( this );
mViewer = new KHTMLPart( this, "mViewer" );
box->addWidget( mViewer->widget() );
- mViewer->widget()->setFocusPolicy( Qt::WheelFocus );
+ mViewer->widget()->setFocusPolicy( TQ_WheelFocus );
mViewer->setPluginsEnabled( false );
mViewer->setJScriptEnabled( false );
mViewer->setJavaEnabled( false );
mViewer->setMetaRefreshEnabled( false );
mViewer->setOnlyLocalReferences( true );
- mViewer->view()->setFocusPolicy( Qt::WheelFocus );
+ mViewer->view()->setFocusPolicy( TQ_WheelFocus );
connect( mViewer->browserExtension(), TQT_SIGNAL(openURLRequestDelayed(const KURL&, const KParts::URLArgs&)),
TQT_SLOT(slotURLClicked(const KURL&)) );
connect( mViewer, TQT_SIGNAL(popupMenu(const TQString&, const TQPoint&)),
diff --git a/knode/kngroupdialog.cpp b/knode/kngroupdialog.cpp
index 4d86178fb..8265be68c 100644
--- a/knode/kngroupdialog.cpp
+++ b/knode/kngroupdialog.cpp
@@ -177,7 +177,7 @@ void KNGroupDialog::setButtonDirection(arrowButton b, arrowDirection d)
void KNGroupDialog::slotItemSelected(TQListViewItem *it)
{
- const TQObject *s=TQT_TQOBJECT(sender());
+ const TQObject *s=TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()));
if(TQT_BASE_OBJECT_CONST(s)==TQT_BASE_OBJECT(subView)) {
diff --git a/knode/kngroupselectdialog.cpp b/knode/kngroupselectdialog.cpp
index 0476442b3..a3328b8e0 100644
--- a/knode/kngroupselectdialog.cpp
+++ b/knode/kngroupselectdialog.cpp
@@ -114,7 +114,7 @@ TQString KNGroupSelectDialog::selectedGroups()const
void KNGroupSelectDialog::slotItemSelected(TQListViewItem *it)
{
- const TQObject *s=TQT_TQOBJECT(sender());
+ const TQObject *s=TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()));
if(TQT_BASE_OBJECT_CONST(s)==TQT_BASE_OBJECT(groupView)) {
selView->clearSelection();
diff --git a/knode/knode_part.cpp b/knode/knode_part.cpp
index ad01aef7d..729d71f9f 100644
--- a/knode/knode_part.cpp
+++ b/knode/knode_part.cpp
@@ -68,13 +68,13 @@ KNodePart::KNodePart(TQWidget *tqparentWidget, const char *widgetName,
// create a canvas to insert our widget
TQWidget *canvas = new TQWidget(tqparentWidget, widgetName);
- canvas->setFocusPolicy(Qt::ClickFocus);
+ canvas->setFocusPolicy(TQ_ClickFocus);
setWidget(canvas);
mainWidget = new KNMainWidget( this, false, canvas, "knode_widget" );
TQVBoxLayout *topLayout = new TQVBoxLayout(canvas);
topLayout->addWidget(mainWidget);
- mainWidget->setFocusPolicy(Qt::ClickFocus);
+ mainWidget->setFocusPolicy(TQ_ClickFocus);
kapp->dcopClient()->resume(); // Ok. We are ready for DCOP requests.
diff --git a/knode/utilities.cpp b/knode/utilities.cpp
index 5fd418fe4..4c857a3e5 100644
--- a/knode/utilities.cpp
+++ b/knode/utilities.cpp
@@ -410,7 +410,7 @@ TQString KNHelper::rewrapStringList(TQStringList text, int wrapAt, TQChar quoteC
if (!alwaysSpace && (thisLine[0]==quoteChar))
thisLine.prepend(quoteChar); // second quote level without space
else
- thisLine.prepend(quoteChar+TQString(' '));
+ thisLine.prepend(TQString(quoteChar)+' ');
thisPrefix=TQString();
TQChar c;