summaryrefslogtreecommitdiffstats
path: root/src/logviewerdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logviewerdialog.cpp')
-rw-r--r--src/logviewerdialog.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/logviewerdialog.cpp b/src/logviewerdialog.cpp
index dbedf89..8167ba6 100644
--- a/src/logviewerdialog.cpp
+++ b/src/logviewerdialog.cpp
@@ -20,10 +20,10 @@
#include "logviewerdialog.h"
#include <klocale.h>
#include <klistview.h>
-#include <qpixmap.h>
+#include <tqpixmap.h>
#include <kglobal.h>
-#include <qstring.h>
-#include <qcursor.h>
+#include <tqstring.h>
+#include <tqcursor.h>
#include <kiconloader.h>
#include <kstddirs.h>
#include <ktextbrowser.h>
@@ -33,35 +33,35 @@
#include <kprogress.h>
#include <iostream>
#include <kvpnc.h>
-#include <qfile.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
#include <kmessagebox.h>
-LogViewerDialog::LogViewerDialog(QWidget *parent, QApplication *app, KVpncConfig *GlobalConfig,const QString& caption, int count) : KDialogBase( parent, "Show_log", false, caption,
+LogViewerDialog::LogViewerDialog(TQWidget *parent, TQApplication *app, KVpncConfig *GlobalConfig,const TQString& caption, int count) : KDialogBase( parent, "Show_log", false, caption,
KDialogBase::Ok|KDialogBase::Cancel,KDialogBase::Ok, true )
{
main = new LogViewerDialogBase (this);
setMainWidget(main);
- // main->setMinimumSize(main->sizeHint());
+ // main->setMinimumSize(main->tqsizeHint());
main->setMinimumSize(750,500);
main->LineCountIntSpinBox->setValue(count);
this->GlobalConfig = GlobalConfig;
this->app = app;
- // QPixmap info_icon = KGlobal::iconLoader()->loadIcon( "button_ok", KIcon::NoGroup, 16 );
- // QPixmap debug_icon = KGlobal::iconLoader()->loadIcon( "button_cancel", KIcon::NoGroup, 16 );
- // QPixmap error_icon = KGlobal::iconLoader()->loadIcon( "button_ok", KIcon::NoGroup, 16 );
- // QPixmap debug_icon = KGlobal::iconLoader()->loadIcon( "button_cancel", KIcon::NoGroup, 16 );
+ // TQPixmap info_icon = KGlobal::iconLoader()->loadIcon( "button_ok", KIcon::NoGroup, 16 );
+ // TQPixmap debug_icon = KGlobal::iconLoader()->loadIcon( "button_cancel", KIcon::NoGroup, 16 );
+ // TQPixmap error_icon = KGlobal::iconLoader()->loadIcon( "button_ok", KIcon::NoGroup, 16 );
+ // TQPixmap debug_icon = KGlobal::iconLoader()->loadIcon( "button_cancel", KIcon::NoGroup, 16 );
// InfoListView->setSorting(1);
- connect (main->LineCountApplyPushButton,SIGNAL(clicked()),this, SLOT(updateLineCountClicked()));
- connect (main->FindPushButton,SIGNAL(clicked()),this, SLOT(findLogEntryClicked()));
+ connect (main->LineCountApplyPushButton,TQT_SIGNAL(clicked()),this, TQT_SLOT(updateLineCountClicked()));
+ connect (main->FindPushButton,TQT_SIGNAL(clicked()),this, TQT_SLOT(findLogEntryClicked()));
- QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
+ TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) );
parseLog();
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
showLogPart(count*-1,count);
}
@@ -70,7 +70,7 @@ LogViewerDialog::~LogViewerDialog()
void LogViewerDialog::accept()
{
- QDialog::accept();
+ TQDialog::accept();
}
@@ -78,9 +78,9 @@ void LogViewerDialog::parseLog()
{
KStandardDirs *dirs = KGlobal::dirs();
- QString logfileName = dirs->saveLocation( "data" );
+ TQString logfileName = dirs->saveLocation( "data" );
logfileName += "/kvpnc/kvpnc.log";
- QFile logfile;
+ TQFile logfile;
int linecount=0;
//std::cout << "file exists: " << logfile.exists() << std::endl;
logfile.setName( logfileName );
@@ -112,11 +112,11 @@ void LogViewerDialog::parseLog()
if (logfile.open(IO_ReadOnly ))
{
- QTextStream stream( &logfile );
- QString line;
- QString lines;
- QString prefix;
- QString postfix;
+ TQTextStream stream( &logfile );
+ TQString line;
+ TQString lines;
+ TQString prefix;
+ TQString postfix;
// int type=0;
int i=0;
int localcount=0;
@@ -175,21 +175,21 @@ void LogViewerDialog::showLogPart(int start,int count, bool parseLogType)
}
-// QString msg = QString("start: ");
-// msg+=QString().setNum(startval);
-// msg+=QString(", count: ");
-// msg+=QString().setNum(count);
-// msg+=QString(", loglist.count: ");
-// msg+=QString().setNum(LogList.count());
+// TQString msg = TQString("start: ");
+// msg+=TQString().setNum(startval);
+// msg+=TQString(", count: ");
+// msg+=TQString().setNum(count);
+// msg+=TQString(", loglist.count: ");
+// msg+=TQString().setNum(LogList.count());
// KMessageBox::information(0,msg,"aaa");
for ( int index = startval;index <= startval+count;index++)
{
- QString prefix="";
- QString postfix="";
+ TQString prefix="";
+ TQString postfix="";
int type=KVpncConfig::info;
- QString line = LogList[index];
+ TQString line = LogList[index];
if (!line.isEmpty())
{
if (parseLogType)
@@ -251,17 +251,17 @@ void LogViewerDialog::showLogPart(int start,int count, bool parseLogType)
}
postfix+="</font>";
- main->LogTextBrowser->append( QString().setNum(index)+" "+prefix+line+postfix) ;
+ main->LogTextBrowser->append( TQString().setNum(index)+" "+prefix+line+postfix) ;
}
else
{
- main->LogTextBrowser->append( QString().setNum(index)+" "+line) ;
+ main->LogTextBrowser->append( TQString().setNum(index)+" "+line) ;
}
}
}
}
-void LogViewerDialog::find(QString what)
+void LogViewerDialog::find(TQString what)
{
bool casesense=false;
bool whooleword=false;