summaryrefslogtreecommitdiffstats
path: root/src/toolsinfodialog.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-06 14:15:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-06 14:15:01 -0600
commit1b89319fd93b88313cab40f1e9de24c067b04efb (patch)
tree80132996de993c3dcab4040864d7729842875b2d /src/toolsinfodialog.cpp
parentd08a0ede1d2cb15bb14b0ff75eacf5c682b1fa0a (diff)
downloadkvpnc-1b89319fd93b88313cab40f1e9de24c067b04efb.tar.gz
kvpnc-1b89319fd93b88313cab40f1e9de24c067b04efb.zip
Initial TQt conversion
Diffstat (limited to 'src/toolsinfodialog.cpp')
-rw-r--r--src/toolsinfodialog.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/toolsinfodialog.cpp b/src/toolsinfodialog.cpp
index 26e8041..e638238 100644
--- a/src/toolsinfodialog.cpp
+++ b/src/toolsinfodialog.cpp
@@ -21,48 +21,48 @@
#include "toolsinfodialog.h"
#include "listviewtooltip.h"
#include <klistview.h>
-//#include <qlistviewitem.h>
-#include <qpixmap.h>
+//#include <tqlistviewitem.h>
+#include <tqpixmap.h>
#include <kglobal.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <kiconloader.h>
#include <iostream>
#include <klocale.h>
-#include <qcursor.h>
+#include <tqcursor.h>
#include "utils.h"
//END INCLUDES
-ToolsInfoDialog::ToolsInfoDialog(KVpncConfig *GlobalConfig, QWidget *parent, const char *)
+ToolsInfoDialog::ToolsInfoDialog(KVpncConfig *GlobalConfig, TQWidget *parent, const char *)
:KDialogBase( parent, "Tool_information", true, "",
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true )
{
main = new ToolsInfoWidgetBase(this);
setMainWidget(main);
- main->InfoListView->setMinimumSize(main->InfoListView->sizeHint());
+ main->InfoListView->setMinimumSize(main->InfoListView->tqsizeHint());
- QPixmap ok_icon = KGlobal::iconLoader()->loadIcon( "button_ok", KIcon::NoGroup, 16 );
- QPixmap wrong_icon = KGlobal::iconLoader()->loadIcon( "button_cancel", KIcon::NoGroup, 16 );
+ TQPixmap ok_icon = KGlobal::iconLoader()->loadIcon( "button_ok", KIcon::NoGroup, 16 );
+ TQPixmap wrong_icon = KGlobal::iconLoader()->loadIcon( "button_cancel", KIcon::NoGroup, 16 );
ToolInfo *tool=0;
main->InfoListView->setSorting(1);
- GlobalConfig->appPointer->setOverrideCursor( QCursor(Qt::WaitCursor) );
+ GlobalConfig->appPointer->setOverrideCursor( TQCursor(TQt::WaitCursor) );
for ( tool = GlobalConfig->ToolList->first(); tool; tool = GlobalConfig->ToolList->next() )
{
// std::cout << "tool: " << tool->Name.ascii() << std::endl;
// std::cout << "Version: " << tool->Version << std::endl;
// std::cout << "Path: " << tool->PathToExec << std::endl << std::endl;
- QString state="";
- QString usability="";
- QString requiredBy="";
- QString comment="";
+ TQString state="";
+ TQString usability="";
+ TQString requiredBy="";
+ TQString comment="";
tool->programsInPath = GlobalConfig->programsInPath;
// tool->collectToolInfo();
- if (!tool->PathToExec.isEmpty() && QFile (tool->PathToExec).exists() && QFileInfo(tool->PathToExec).isFile() )
+ if (!tool->PathToExec.isEmpty() && TQFile (tool->PathToExec).exists() && TQFileInfo(tool->PathToExec).isFile() )
{
// state=i18n("Found");
if (tool->Name == "vpnc")
@@ -100,25 +100,25 @@ ToolsInfoDialog::ToolsInfoDialog(KVpncConfig *GlobalConfig, QWidget *parent, con
else if (tool->Name == "ipsec")
{
// version is like this: "Openswan U2.4.4/K2.6.15" or "strongSwan U2.4.4/K2.6.15"
- QString realversion=tool->Version.section(' ',1,1).section('/',0,0).right(tool->Version.section(' ',1,1).section('/',0,0).length()-1);
+ TQString realversion=tool->Version.section(' ',1,1).section('/',0,0).right(tool->Version.section(' ',1,1).section('/',0,0).length()-1);
int majorversion = realversion.section('.',0,0).toInt();
int minorversion = realversion.section('.',1,1).toInt();
int subminorversion = realversion.section('.',2,2).toInt();
- QString realtype=tool->Version.section(' ',0,0).lower();
+ TQString realtype=tool->Version.section(' ',0,0).lower();
if ( tool->Version.contains("Openswan"))
{
comment="Openswan";
- comment+=", "+i18n("kernel %1 support").arg("2.6");
+ comment+=", "+i18n("kernel %1 support").tqarg("2.6");
comment+=", "+i18n("smartcard support");
}
else if ( tool->Version.contains("strongSwan"))
{
comment="strongSwan";
comment+=", "+i18n("no aggressive mode");
- comment+=", "+i18n("kernel %1 support").arg("2.4");
+ comment+=", "+i18n("kernel %1 support").tqarg("2.4");
if (!(majorversion <= 2 && minorversion <= 8 && subminorversion <= 1))
- comment+=", "+i18n("kernel %1 support").arg("2.6");
+ comment+=", "+i18n("kernel %1 support").tqarg("2.6");
comment+=", "+i18n("smartcard support");
}
else
@@ -328,13 +328,13 @@ ToolsInfoDialog::ToolsInfoDialog(KVpncConfig *GlobalConfig, QWidget *parent, con
}
else if (tool->Name == "tail")
{
-// comment+=", "+i18n("kernel %1 support").arg("2.6");
+// comment+=", "+i18n("kernel %1 support").tqarg("2.6");
}
else if (tool->Name == "ssh")
{
int major=tool->Version.section('.',0,0).toInt();
int minor=tool->Version.section('.',1,1).section('p',0,0).toInt();
-// std::cout << "ssh version: major: " << QString().setNum(major).ascii() << " minor: " << QString().setNum(minor).ascii() << std::endl;
+// std::cout << "ssh version: major: " << TQString().setNum(major).ascii() << " minor: " << TQString().setNum(minor).ascii() << std::endl;
if ( major > 4 || ( major == 4 && minor >= 3) )
{
usability=i18n("full");
@@ -372,8 +372,8 @@ ToolsInfoDialog::ToolsInfoDialog(KVpncConfig *GlobalConfig, QWidget *parent, con
}
else if (tool->Name == "ipsec")
{
- QString realversion=tool->Version.section(' ',1,1).section('/',0,0).right(tool->Version.section(' ',1,1).section('/',0,0).length()-1);
- QString realtype=tool->Version.section(' ',0,0).lower();
+ TQString realversion=tool->Version.section(' ',1,1).section('/',0,0).right(tool->Version.section(' ',1,1).section('/',0,0).length()-1);
+ TQString realtype=tool->Version.section(' ',0,0).lower();
if ( tool->Version.contains("Openswan"))
{
@@ -505,7 +505,7 @@ ToolsInfoDialog::ToolsInfoDialog(KVpncConfig *GlobalConfig, QWidget *parent, con
- QListViewItem *item = new QListViewItem(main->InfoListView, tool->Name,state, tool->Version, usability,requiredBy , tool->PathToExec, comment);
+ TQListViewItem *item = new TQListViewItem(main->InfoListView, tool->Name,state, tool->Version, usability,requiredBy , tool->PathToExec, comment);
if (tool->found)
item->setPixmap(1,ok_icon);
else
@@ -514,13 +514,13 @@ ToolsInfoDialog::ToolsInfoDialog(KVpncConfig *GlobalConfig, QWidget *parent, con
}
- QToolTip::remove( main->InfoListView );
+ TQToolTip::remove( main->InfoListView );
new ListViewToolTip( main->InfoListView );
this->resize(800,600);
- main->InfoListView->resize(main->InfoListView->sizeHint());
- main->resize(main->sizeHint());
- //this->resize(sizeHint());
+ main->InfoListView->resize(main->InfoListView->tqsizeHint());
+ main->resize(main->tqsizeHint());
+ //this->resize(tqsizeHint());
GlobalConfig->appPointer->restoreOverrideCursor();
}