summaryrefslogtreecommitdiffstats
path: root/quanta/plugins/quantaplugineditor.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /quanta/plugins/quantaplugineditor.cpp
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz
tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/plugins/quantaplugineditor.cpp')
-rw-r--r--quanta/plugins/quantaplugineditor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/quanta/plugins/quantaplugineditor.cpp b/quanta/plugins/quantaplugineditor.cpp
index 42f6a237..db7f73ed 100644
--- a/quanta/plugins/quantaplugineditor.cpp
+++ b/quanta/plugins/quantaplugineditor.cpp
@@ -50,7 +50,7 @@ QuantaPluginEditor::QuantaPluginEditor(TQWidget *a_parent, const char *a_name)
setMainWidget(m_pluginEditorWidget);
m_pluginEditorWidget->pluginList->setSelectionMode(TQListView::Single);
m_pluginEditorWidget->pluginList->setAllColumnsShowFocus(true);
- m_pluginEditorWidget->pluginList->setColumnAlignment(2, Qt::AlignHCenter);
+ m_pluginEditorWidget->pluginList->setColumnAlignment(2, TQt::AlignHCenter);
connect(this, TQT_SIGNAL(pluginsChanged()), TQT_SLOT(refreshPlugins()));
connect(m_pluginEditorWidget->refreshButton, TQT_SIGNAL(clicked()), TQT_SLOT(refreshPlugins()));
@@ -100,7 +100,7 @@ void QuantaPluginEditor::addPlugin()
void QuantaPluginEditor::addSearchPath()
{
// Get a dir and append it to the line edit
- TQString appendDir = KFileDialog::getExistingDirectory(TQString::null, 0, i18n("Select Folder"));
+ TQString appendDir = KFileDialog::getExistingDirectory(TQString(), 0, i18n("Select Folder"));
if(!appendDir.isNull())
{
m_pluginEditorWidget->searchPaths->setText(m_pluginEditorWidget->searchPaths->text()+appendDir+":");
@@ -115,10 +115,10 @@ void QuantaPluginEditor::configurePlugin()
if(item)
key = item->text(0);
- if(!key.isNull() && m_plugins.find(key))
+ if(!key.isNull() && m_plugins.tqfind(key))
{
QuantaPluginConfig *configDlg = new QuantaPluginConfig(this, "pluginConfig");
- QuantaPlugin *curPlugin = m_plugins.find(key);
+ QuantaPlugin *curPlugin = m_plugins.tqfind(key);
PluginConfig *configWidget = static_cast<PluginConfig*>(configDlg->mainWidget());
configWidget->outputWindow->setCurrentText(curPlugin->outputWindow());
@@ -186,7 +186,7 @@ void QuantaPluginEditor::removePlugin()
TQListViewItem *currentItem = m_pluginEditorWidget->pluginList->currentItem();
if (currentItem)
{
- QuantaPlugin *plugin = m_plugins.find(currentItem->text(0));
+ QuantaPlugin *plugin = m_plugins.tqfind(currentItem->text(0));
if(plugin)
{
m_plugins.remove(plugin->pluginName());
@@ -212,7 +212,7 @@ void PluginEditorItem::paintCell(TQPainter *a_painter, const TQColorGroup &a_cg,
{
/*
if(a_column == 2)
- a_align = Qt::AlignCenter;
+ a_align = TQt::AlignCenter;
FIXME : Why won't QT let us align cell contents?
*/
TQListViewItem::paintCell(a_painter, a_cg, a_column, a_width, a_align);