summaryrefslogtreecommitdiffstats
path: root/kommander/pluginmanager/mainwindow.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/pluginmanager/mainwindow.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/pluginmanager/mainwindow.cpp')
-rw-r--r--kommander/pluginmanager/mainwindow.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kommander/pluginmanager/mainwindow.cpp b/kommander/pluginmanager/mainwindow.cpp
index 4cc67d62..94d365f5 100644
--- a/kommander/pluginmanager/mainwindow.cpp
+++ b/kommander/pluginmanager/mainwindow.cpp
@@ -28,14 +28,14 @@
#include <kglobal.h>
#include <kstandarddirs.h>
-MainWindow::MainWindow( QWidget* parent, const char *name, WFlags f )
+MainWindow::MainWindow( TQWidget* parent, const char *name, WFlags f )
: KMainWindow( parent, name, f )
{
KToolBar *toolBar = new KToolBar( this );
toolBar->insertButton("fileopen", Add, true, i18n("Add") );
toolBar->insertButton("no", Remove, true, i18n("Remove") );
toolBar->insertButton("reload", Refresh, true, i18n("Refresh") );
- connect( toolBar, SIGNAL(clicked(int)), this, SLOT(toolButton(int)) );
+ connect( toolBar, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(toolButton(int)) );
m_list = new KListBox( this );
setCentralWidget(m_list);
@@ -67,17 +67,17 @@ void MainWindow::toolButton( int id )
void MainWindow::add()
{
- QString libDir = KGlobal::dirs()->findResourceDir("lib", "libkommanderplugin");
- QString plugin = KFileDialog::getOpenFileName(libDir, "lib*", this,
+ TQString libDir = KGlobal::dirs()->findResourceDir("lib", "libkommanderplugin");
+ TQString plugin = KFileDialog::getOpenFileName(libDir, "lib*", this,
i18n("Add Kommander Plugin"));
add(plugin);
}
-void MainWindow::add(const QString &plugin)
+void MainWindow::add(const TQString &plugin)
{
if (!m_pluginManager->add(plugin))
{
- QString errMsg = i18n("<qt>Unable to load Kommander plugin<br><b>%1</b></qt>").arg(plugin);
+ TQString errMsg = i18n("<qt>Unable to load Kommander plugin<br><b>%1</b></qt>").arg(plugin);
KMessageBox::error(this, errMsg, i18n("Cannot add plugin"));
}
else
@@ -86,7 +86,7 @@ void MainWindow::add(const QString &plugin)
void MainWindow::remove()
{
- QString plugin = m_list->currentText();
+ TQString plugin = m_list->currentText();
if (m_pluginManager->remove(plugin))
refresh();
}