summaryrefslogtreecommitdiffstats
path: root/src/modules/addon
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:33:07 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:33:07 -0600
commit805c2821ceaddada48b346c6d11bd0dc1351a539 (patch)
treef4f34d4fae6b86d1b1058f396da4729906edbadb /src/modules/addon
parent918c3ff07736f0c343cb190d3f0df99e4cb8dab8 (diff)
downloadkvirc-805c2821ceaddada48b346c6d11bd0dc1351a539.tar.gz
kvirc-805c2821ceaddada48b346c6d11bd0dc1351a539.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/modules/addon')
-rw-r--r--src/modules/addon/libkviaddon.cpp14
-rw-r--r--src/modules/addon/managementdialog.cpp6
2 files changed, 10 insertions, 10 deletions
diff --git a/src/modules/addon/libkviaddon.cpp b/src/modules/addon/libkviaddon.cpp
index 08f18081..9d3b0ebc 100644
--- a/src/modules/addon/libkviaddon.cpp
+++ b/src/modules/addon/libkviaddon.cpp
@@ -195,7 +195,7 @@ static bool addon_kvs_cmd_uninstall(KviKvsModuleCommandCall * c)
KviKvsScriptAddonManager::instance()->unregisterAddon(szName,c->window(),!c->switches()->find('n',"no-callback"));
} else {
if(!c->switches()->find('q',"quiet"))
- c->warning(__tr2qs("The addon \"%1\" does not exist").tqarg(szName));
+ c->warning(__tr2qs("The addon \"%1\" does not exist").arg(szName));
}
return true;
@@ -235,13 +235,13 @@ static bool addon_kvs_cmd_configure(KviKvsModuleCommandCall * c)
if(ss.isEmpty())
{
if(!c->switches()->find('q',"quiet"))
- c->warning(__tr2qs("The addon \"%1\" has no configure callback set").tqarg(szName));
+ c->warning(__tr2qs("The addon \"%1\" has no configure callback set").arg(szName));
} else {
a->executeConfigureCallback(c->window());
}
} else {
if(!c->switches()->find('q',"quiet"))
- c->warning(__tr2qs("The addon \"%1\" does not exist").tqarg(szName));
+ c->warning(__tr2qs("The addon \"%1\" does not exist").arg(szName));
}
return true;
@@ -282,13 +282,13 @@ static bool addon_kvs_cmd_help(KviKvsModuleCommandCall * c)
if(ss.isEmpty())
{
if(!c->switches()->find('q',"quiet"))
- c->warning(__tr2qs("The addon \"%1\" has no help callback set").tqarg(szName));
+ c->warning(__tr2qs("The addon \"%1\" has no help callback set").arg(szName));
} else {
a->executeHelpCallback(c->window());
}
} else {
if(!c->switches()->find('q',"quiet"))
- c->warning(__tr2qs("The addon \"%1\" does not exist").tqarg(szName));
+ c->warning(__tr2qs("The addon \"%1\" does not exist").arg(szName));
}
return true;
@@ -334,7 +334,7 @@ static bool addon_kvs_cmd_setconfigurecallback(KviKvsModuleCallbackCommandCall *
a->setConfigureCallback(c->callback()->code());
} else {
if(!c->switches()->find('q',"quiet"))
- c->warning(__tr2qs("The addon \"%1\" does not exist").tqarg(szName));
+ c->warning(__tr2qs("The addon \"%1\" does not exist").arg(szName));
}
return true;
@@ -381,7 +381,7 @@ static bool addon_kvs_cmd_sethelpcallback(KviKvsModuleCallbackCommandCall * c)
a->setHelpCallback(c->callback()->code());
} else {
if(!c->switches()->find('q',"quiet"))
- c->warning(__tr2qs("The addon \"%1\" does not exist").tqarg(szName));
+ c->warning(__tr2qs("The addon \"%1\" does not exist").arg(szName));
}
return true;
diff --git a/src/modules/addon/managementdialog.cpp b/src/modules/addon/managementdialog.cpp
index 24c539f2..34bc7eec 100644
--- a/src/modules/addon/managementdialog.cpp
+++ b/src/modules/addon/managementdialog.cpp
@@ -37,7 +37,7 @@
#include "kvi_sourcesdate.h"
#include <tqpushbutton.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqapplication.h>
#include <tqtooltip.h>
#include <tqlineedit.h>
@@ -213,7 +213,7 @@ KviScriptManagementDialog::KviScriptManagementDialog(TQWidget * p)
lb->setFixedWidth(pix->width());
}
lb->setBackgroundColor(TQt::black);
- lb->tqsetAlignment(TQt::AlignBottom | TQt::AlignRight);
+ lb->setAlignment(TQt::AlignBottom | TQt::AlignRight);
*/
m_pListView = new KviScriptAddonListView(this);
g->addMultiCellWidget(m_pListView,0,10,1,1);
@@ -330,7 +330,7 @@ void KviScriptManagementDialog::uninstallScript()
if(!it)return;
TQString txt = "<p>";
- txt += __tr2qs("Do you really want to uninstall the addon \"%1\" ?").tqarg(it->addon()->visibleName());
+ txt += __tr2qs("Do you really want to uninstall the addon \"%1\" ?").arg(it->addon()->visibleName());
txt += "</p>";
if(TQMessageBox::question(this,