summaryrefslogtreecommitdiffstats
path: root/quanta/plugins/quantaplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/plugins/quantaplugin.cpp')
-rw-r--r--quanta/plugins/quantaplugin.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/quanta/plugins/quantaplugin.cpp b/quanta/plugins/quantaplugin.cpp
index 628f38a7..bfed02c1 100644
--- a/quanta/plugins/quantaplugin.cpp
+++ b/quanta/plugins/quantaplugin.cpp
@@ -114,19 +114,19 @@ bool QuantaPlugin::load()
TQString ow = outputWindow();
m_targetWidget = new TQWidget(quantaApp);
if (m_readOnlyPart)
- m_part = KParts::ComponentFactory::createPartInstanceFromLibrary<KParts::ReadOnlyPart>(partInfo.baseName().latin1(), m_targetWidget, 0, m_targetWidget, 0 );
+ m_part = KParts::ComponentFactory::createPartInstanceFromLibrary<KParts::ReadOnlyPart>(partInfo.baseName().latin1(), m_targetWidget, 0, TQT_TQOBJECT(m_targetWidget), 0 );
else
- m_part = KParts::ComponentFactory::createPartInstanceFromLibrary<KParts::ReadWritePart>(partInfo.baseName().latin1(), m_targetWidget, 0, m_targetWidget, 0 );
+ m_part = KParts::ComponentFactory::createPartInstanceFromLibrary<KParts::ReadWritePart>(partInfo.baseName().latin1(), m_targetWidget, 0, TQT_TQOBJECT(m_targetWidget), 0 );
if(!m_part)
{
- KMessageBox::error(quantaApp, i18n("<qt>The <b>%1</b> plugin could not be loaded.<br>Possible reasons are:<br> - <b>%2</b> is not installed;<br> - the file <i>%3</i> is not installed or it is not reachable.").arg(m_name).arg(m_name).arg(m_fileName));
+ KMessageBox::error(quantaApp, i18n("<qt>The <b>%1</b> plugin could not be loaded.<br>Possible reasons are:<br> - <b>%2</b> is not installed;<br> - the file <i>%3</i> is not installed or it is not reachable.").tqarg(m_name).tqarg(m_name).tqarg(m_fileName));
delete m_targetWidget;
m_targetWidget = 0L;
return false;
}
m_part->setName(m_name.ascii()); // for better debug output
m_part->widget()->setName(m_name.ascii()); //needed to be able to dock the same plugin twice in separate toolviews
- m_part->widget()->setFocusPolicy(TQWidget::ClickFocus);
+ m_part->widget()->setFocusPolicy(TQ_ClickFocus);
quantaApp->slotNewPart(m_part, false); // register the part in the partmanager
return true;
}
@@ -155,7 +155,7 @@ bool QuantaPlugin::run()
}
case 3: { KURL url;
if ( Project::ref()->hasProject() &&
- (Project::ref()->contains(view->document()->url()) ||
+ (Project::ref()->tqcontains(view->document()->url()) ||
view->document()->isUntitled())
)
{