Rename a number of old tq methods that are no longer tq specific

pull/1/head
Timothy Pearson 13 years ago
parent ac1454e9bd
commit 4ce24ff375

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
//TQt includes //TQt includes
#include <tqlayout.h> #include <layout.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -46,8 +46,8 @@ AcpidOptions::AcpidOptions(TQWidget *parent) :
TQWidget(parent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *layout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true); layout->setAutoAdd(true);
TQString description=i18n("<qt><p>These files will be analyzed to display <b>ACPId log</b>. This list also determines the order in which the files are read.</p></qt>"); TQString description=i18n("<qt><p>These files will be analyzed to display <b>ACPId log</b>. This list also determines the order in which the files are read.</p></qt>");
fileList=new FileList(this, description); fileList=new FileList(this, description);

@ -57,7 +57,7 @@ LogLine* AcpidReader::parseMessage(TQString& logLine, LogFile* logFile) {
if (dateBegin==-1 || dateEnd==-1) { if (dateBegin==-1 || dateEnd==-1) {
type=i18n("none"); type=i18n("none");
message=logLine; message=logLine;
date=TQDate::tqcurrentDate(); date=TQDate::currentDate();
time=TQTime::currentTime(); time=TQTime::currentTime();
} }
else { else {

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
//TQt includes //TQt includes
#include <tqlayout.h> #include <layout.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -49,8 +49,8 @@ ApacheOptions::ApacheOptions(TQWidget *parent) :
apacheAccessFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Apache Access log</b>. This list also determines the order in which the files are read.</p></qt>")) apacheAccessFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Apache Access log</b>. This list also determines the order in which the files are read.</p></qt>"))
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *layout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true); layout->setAutoAdd(true);
tabs.addTab(&apacheFileList, Globals::apacheMode->pixmap, Globals::apacheMode->name); tabs.addTab(&apacheFileList, Globals::apacheMode->pixmap, Globals::apacheMode->name);
tabs.addTab(&apacheAccessFileList, Globals::apacheAccessMode->pixmap, Globals::apacheAccessMode->name); tabs.addTab(&apacheAccessFileList, Globals::apacheAccessMode->pixmap, Globals::apacheAccessMode->name);

@ -67,7 +67,7 @@ LogLine* ApacheReader::parseMessage(TQString& logLine, LogFile* logFile) {
//Special case which sometimes happens //Special case which sometimes happens
if (logLine.find("[client")==0) { if (logLine.find("[client")==0) {
date=TQDate::tqcurrentDate(); date=TQDate::currentDate();
time=TQTime::currentTime(); time=TQTime::currentTime();
level="notice"; level="notice";
} }

@ -20,7 +20,7 @@
//TQt includes //TQt includes
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbutton.h> #include <tqbutton.h>
@ -46,8 +46,8 @@ BootAuthenticationOptions::BootAuthenticationOptions(TQWidget *parent) :
TQWidget(parent) TQWidget(parent)
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this); TQVBoxLayout *layout = new TQVBoxLayout(this);
tqlayout->setSpacing(10); layout->setSpacing(10);
//Boot log file //Boot log file
TQVGroupBox* bootBox=new TQVGroupBox(i18n("Boot Log File"), this); TQVGroupBox* bootBox=new TQVGroupBox(i18n("Boot Log File"), this);
@ -75,9 +75,9 @@ BootAuthenticationOptions::BootAuthenticationOptions(TQWidget *parent) :
TQSpacerItem* spacer=new TQSpacerItem(0, 0, TQSizePolicy::Preferred, TQSizePolicy::Expanding); TQSpacerItem* spacer=new TQSpacerItem(0, 0, TQSizePolicy::Preferred, TQSizePolicy::Expanding);
tqlayout->addWidget(bootBox); layout->addWidget(bootBox);
tqlayout->addWidget(authenticationBox); layout->addWidget(authenticationBox);
tqlayout->addItem(spacer); layout->addItem(spacer);
readConfig(); readConfig();
} }

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
//TQt includes //TQt includes
#include <tqlayout.h> #include <layout.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -46,8 +46,8 @@ CronOptions::CronOptions(TQWidget *parent) :
TQWidget(parent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *layout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true); layout->setAutoAdd(true);
TQString description= i18n("<qt><p>These files will be analyzed to display <b>Cron Logs</b> (i.e. planned tasks logs). This list also determines the order in which the files are read.</p></qt>"); TQString description= i18n("<qt><p>These files will be analyzed to display <b>Cron Logs</b> (i.e. planned tasks logs). This list also determines the order in which the files are read.</p></qt>");
fileList=new SpecificFileList(this, description); fileList=new SpecificFileList(this, description);

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
//TQt includes //TQt includes
#include <tqlayout.h> #include <layout.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -49,8 +49,8 @@ CupsOptions::CupsOptions(TQWidget *parent) :
cupsAccessFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Cups Web Server log</b>. This list also determines the order in which the files are read.</p></qt>")) cupsAccessFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Cups Web Server log</b>. This list also determines the order in which the files are read.</p></qt>"))
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *layout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true); layout->setAutoAdd(true);
tabs.addTab(&cupsFileList, Globals::cupsMode->pixmap, Globals::cupsMode->name); tabs.addTab(&cupsFileList, Globals::cupsMode->pixmap, Globals::cupsMode->name);
tabs.addTab(&cupsAccessFileList, Globals::cupsAccessMode->pixmap, Globals::cupsAccessMode->name); tabs.addTab(&cupsAccessFileList, Globals::cupsAccessMode->pixmap, Globals::cupsAccessMode->name);

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
//TQt includes //TQt includes
#include <tqlayout.h> #include <layout.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -46,8 +46,8 @@ DaemonOptions::DaemonOptions(TQWidget *parent) :
TQWidget(parent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *layout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true); layout->setAutoAdd(true);
TQString description= i18n("<qt><p>These files will be analyzed to display <b>daemons Logs</b>. This list also determine the order in which the files are read.</p></qt>"); TQString description= i18n("<qt><p>These files will be analyzed to display <b>daemons Logs</b>. This list also determine the order in which the files are read.</p></qt>");
fileList=new SpecificFileList(this, description); fileList=new SpecificFileList(this, description);

@ -90,7 +90,7 @@ void DefaultReader::readLog() {
} }
void DefaultReader::readFile(LogFile* logFile) { void DefaultReader::readFile(LogFile* logFile) {
TQString message=i18n("Opening file '%1'...").tqarg(logFile->url.path()); TQString message=i18n("Opening file '%1'...").arg(logFile->url.path());
emit statusbarChanged(message); emit statusbarChanged(message);
//Inform connected TQObject that we are now reading the "index" file //Inform connected TQObject that we are now reading the "index" file
@ -120,7 +120,7 @@ void DefaultReader::readFile(LogFile* logFile) {
//If there is no line //If there is no line
if (rawBuffer->size()==0) { if (rawBuffer->size()==0) {
TQString message=i18n("No log line in '%1'.").tqarg(logFile->url.path()); TQString message=i18n("No log line in '%1'.").arg(logFile->url.path());
emit statusbarChanged(message); emit statusbarChanged(message);
delete rawBuffer; delete rawBuffer;
@ -174,7 +174,7 @@ void DefaultReader::readFile(LogFile* logFile) {
// Close the file // Close the file
this->closeFile(file); this->closeFile(file);
message=i18n("Log file '%1' loaded successfully.").tqarg(logFile->url.path()); message=i18n("Log file '%1' loaded successfully.").arg(logFile->url.path());
emit statusbarChanged(message); emit statusbarChanged(message);
} }
@ -268,7 +268,7 @@ void DefaultReader::logChanged(LogFile* logFile) {
this->closeFile(file); this->closeFile(file);
TQString message; TQString message;
message=i18n("Log file '%1' has changed.").tqarg(logFile->url.path()); message=i18n("Log file '%1' has changed.").arg(logFile->url.path());
emit statusbarChanged(message); emit statusbarChanged(message);
//Emit a signal which informs connected slots that there are new lines //Emit a signal which informs connected slots that there are new lines
@ -356,7 +356,7 @@ bool DefaultReader::insertOrReplaceLine(TQString& buffer, LogFile* originalFile)
LogLine* DefaultReader::parseMessage(TQString& logLine, LogFile* originalFile) { LogLine* DefaultReader::parseMessage(TQString& logLine, LogFile* originalFile) {
//kdDebug() << "Please don't use parseMessage() from SortedReader class" << endl; //kdDebug() << "Please don't use parseMessage() from SortedReader class" << endl;
int year=TQDate::tqcurrentDate().year(); int year=TQDate::currentDate().year();
//Month number //Month number
TQString month; TQString month;
@ -376,7 +376,7 @@ LogLine* DefaultReader::parseMessage(TQString& logLine, LogFile* originalFile) {
TQDate date(year, monthNum, dayNum); TQDate date(year, monthNum, dayNum);
if (!date.isValid()) { if (!date.isValid()) {
kdDebug() << "Malformed date" << endl; kdDebug() << "Malformed date" << endl;
date=TQDate::tqcurrentDate(); date=TQDate::currentDate();
} }
//Time //Time

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
//TQt includes //TQt includes
#include <tqlayout.h> #include <layout.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
@ -69,21 +69,21 @@ DetailDialog::DetailDialog(View* v, TQWidget *parent, const char *name) :
TQHBoxLayout* l1 = new TQHBoxLayout(0, 0, 5); TQHBoxLayout* l1 = new TQHBoxLayout(0, 0, 5);
icon=new TQLabel(widget); icon=new TQLabel(widget);
//icon->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); //icon->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
l1->addWidget(icon, 0, TQt::AlignVCenter); l1->addWidget(icon, 0, TQt::AlignVCenter);
//header=new KActiveLabel(widget, "header"); //header=new KActiveLabel(widget, "header");
header=new TQLabel(widget, "header"); header=new TQLabel(widget, "header");
//header->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Minimum) ); //header->setSizePolicy( TQSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Minimum) );
//header->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum ) ); //header->setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum ) );
l1->addWidget(header, 0, TQt::AlignVCenter || TQt::AlignHCenter); l1->addWidget(header, 0, TQt::AlignVCenter || TQt::AlignHCenter);
mainLayout->addLayout(l1); mainLayout->addLayout(l1);
message=new TQTextEdit(widget); message=new TQTextEdit(widget);
message->setReadOnly(true); message->setReadOnly(true);
//message->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum) ); //message->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum) );
//message->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding ) ); //message->setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding ) );
//message->setMinimumHeight(40); //message->setMinimumHeight(40);
//message->setMinimumHeight(60); //message->setMinimumHeight(60);
//message->setMinimumWidth(400); //message->setMinimumWidth(400);
@ -205,10 +205,10 @@ void DetailDialog::previousItem() {
} }
currentLine->setSelected(false); currentLine->setSelected(false);
currentLine->tqrepaint(); currentLine->repaint();
currentLine=static_cast<LogListItem*> (currentLine->itemAbove()); currentLine=static_cast<LogListItem*> (currentLine->itemAbove());
currentLine->setSelected(true); currentLine->setSelected(true);
currentLine->tqrepaint(); currentLine->repaint();
updateDetails(); updateDetails();
@ -230,10 +230,10 @@ void DetailDialog::nextItem() {
} }
currentLine->setSelected(false); currentLine->setSelected(false);
currentLine->tqrepaint(); currentLine->repaint();
currentLine=static_cast<LogListItem*> (currentLine->itemBelow()); currentLine=static_cast<LogListItem*> (currentLine->itemBelow());
currentLine->setSelected(true); currentLine->setSelected(true);
currentLine->tqrepaint(); currentLine->repaint();
updateDetails(); updateDetails();

@ -75,7 +75,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>tqlayout2</cstring> <cstring>layout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -147,7 +147,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>100</width> <width>100</width>
<height>31</height> <height>31</height>

@ -20,7 +20,7 @@
#include "fileList.h" #include "fileList.h"
#include <tqlayout.h> #include <layout.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -44,8 +44,8 @@ FileList::FileList(TQWidget *parent, TQString description) :
TQWidget(parent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *layout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true); layout->setAutoAdd(true);
TQVGroupBox* dirBox = new TQVGroupBox(i18n( "Files" ), this); TQVGroupBox* dirBox = new TQVGroupBox(i18n( "Files" ), this);
@ -156,21 +156,21 @@ bool FileList::isValidFile(KURL url) {
//If it is not valid //If it is not valid
if (!url.isValid()) { if (!url.isValid()) {
message=i18n("'%1' is not valid.").tqarg(url.path()); message=i18n("'%1' is not valid.").arg(url.path());
KMessageBox::error(this, message, i18n("File selection failed"), KMessageBox::Notify); KMessageBox::error(this, message, i18n("File selection failed"), KMessageBox::Notify);
return(false); return(false);
} }
//If it is not a local file //If it is not a local file
if (!url.isLocalFile()) { if (!url.isLocalFile()) {
message=i18n("'%1' is not a local file.").tqarg(url.path()); message=i18n("'%1' is not a local file.").arg(url.path());
KMessageBox::error(this, message, i18n("File selection failed"), KMessageBox::Notify); KMessageBox::error(this, message, i18n("File selection failed"), KMessageBox::Notify);
return(false); return(false);
} }
//If it's a directory, it's not valid //If it's a directory, it's not valid
if (TQDir(url.path()).exists()) { if (TQDir(url.path()).exists()) {
message=i18n("'%1' is a folder.").tqarg(url.path()); message=i18n("'%1' is a folder.").arg(url.path());
KMessageBox::error(this, message, i18n("File selection failed"), KMessageBox::Notify); KMessageBox::error(this, message, i18n("File selection failed"), KMessageBox::Notify);
return(false); return(false);
} }

@ -20,7 +20,7 @@
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbutton.h> #include <tqbutton.h>
@ -42,8 +42,8 @@ GeneralOptions::GeneralOptions(TQWidget *parent) :
TQWidget(parent) TQWidget(parent)
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this); TQVBoxLayout *layout = new TQVBoxLayout(this);
tqlayout->setSpacing(10); layout->setSpacing(10);
//Maximum Lines //Maximum Lines
TQVGroupBox* logLinesBox=new TQVGroupBox(i18n("Log Lines List"), this); TQVGroupBox* logLinesBox=new TQVGroupBox(i18n("Log Lines List"), this);
@ -88,11 +88,11 @@ GeneralOptions::GeneralOptions(TQWidget *parent) :
TQSpacerItem* spacer=new TQSpacerItem(0, 0, TQSizePolicy::Preferred, TQSizePolicy::Expanding); TQSpacerItem* spacer=new TQSpacerItem(0, 0, TQSizePolicy::Preferred, TQSizePolicy::Expanding);
tqlayout->addWidget(logLinesBox); layout->addWidget(logLinesBox);
tqlayout->addWidget(maxCharBox); layout->addWidget(maxCharBox);
tqlayout->addWidget(options); layout->addWidget(options);
tqlayout->addItem(spacer); layout->addItem(spacer);
readConfig(); readConfig();
} }

@ -84,7 +84,7 @@ LogListItem* ItemFactory::createParentItem(TQListView* view, ParentLogLine* line
//Group by Day //Group by Day
else if (line->getGroupBy()==GROUP_BY_DAY) { else if (line->getGroupBy()==GROUP_BY_DAY) {
//TODO Move these tests to a dedicated static method (to be able to reuse it) //TODO Move these tests to a dedicated static method (to be able to reuse it)
TQDate today=TQDate::tqcurrentDate(); TQDate today=TQDate::currentDate();
TQDate yesterday=today.addDays(-1); TQDate yesterday=today.addDays(-1);
TQDate date=line->getTime().date(); TQDate date=line->getTime().date();
@ -107,12 +107,12 @@ LogListItem* ItemFactory::createParentItem(TQListView* view, ParentLogLine* line
} }
//Group by Hour //Group by Hour
else if (line->getGroupBy()==GROUP_BY_HOUR) { else if (line->getGroupBy()==GROUP_BY_HOUR) {
TQString string(i18n("%1, %2h").tqarg(line->getTime().date().toString(), line->getTime().time().toString("h"))); TQString string(i18n("%1, %2h").arg(line->getTime().date().toString(), line->getTime().time().toString("h")));
item->setText(0, string); item->setText(0, string);
item->setPixmap(0, SmallIcon(GROUP_BY_HOUR_ICON)); item->setPixmap(0, SmallIcon(GROUP_BY_HOUR_ICON));
TQDate today=TQDate::tqcurrentDate(); TQDate today=TQDate::currentDate();
TQTime time=TQTime::currentTime(); TQTime time=TQTime::currentTime();
if (line->getTime().date()==today && line->getTime().time().hour()==time.hour()) { if (line->getTime().date()==today && line->getTime().time().hour()==time.hour()) {
kdDebug() << "Date equals, hour equals" << TQString(line->getTime().date().toString()) << " and " << TQString(line->getTime().time().toString()) << endl; kdDebug() << "Date equals, hour equals" << TQString(line->getTime().date().toString()) << " and " << TQString(line->getTime().time().toString()) << endl;
@ -271,17 +271,17 @@ TQString ItemFactory::createParentFormattedText(LogLine* line) {
//All Group By cases are showed here //All Group By cases are showed here
if (parent->getGroupBy()==GROUP_BY_LOG_LEVEL) { if (parent->getGroupBy()==GROUP_BY_LOG_LEVEL) {
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(line->getLogLevel()->name)); result.append(i18n("<div align='center'><b>Group:</b> %1</div>").arg(line->getLogLevel()->name));
} }
else if (parent->getGroupBy()==GROUP_BY_DAY) { else if (parent->getGroupBy()==GROUP_BY_DAY) {
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(line->getTime().date().toString())); result.append(i18n("<div align='center'><b>Group:</b> %1</div>").arg(line->getTime().date().toString()));
} }
else if (parent->getGroupBy()==GROUP_BY_HOUR) { else if (parent->getGroupBy()==GROUP_BY_HOUR) {
TQString string(i18n("%1, %2 hour").tqarg(line->getTime().date().toString(), line->getTime().time().toString("h"))); TQString string(i18n("%1, %2 hour").arg(line->getTime().date().toString(), line->getTime().time().toString("h")));
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(string)); result.append(i18n("<div align='center'><b>Group:</b> %1</div>").arg(string));
} }
else if (parent->getGroupBy()==GROUP_BY_LOG_FILE) { else if (parent->getGroupBy()==GROUP_BY_LOG_FILE) {
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(line->getOriginalFile())); result.append(i18n("<div align='center'><b>Group:</b> %1</div>").arg(line->getOriginalFile()));
} }
else { else {
TQStringList& list=line->getItemList(); TQStringList& list=line->getItemList();
@ -289,7 +289,7 @@ TQString ItemFactory::createParentFormattedText(LogLine* line) {
if (index<0 || index>=(int) list.size()) if (index<0 || index>=(int) list.size())
result.append(i18n("<div align='center'><b>Group:</b> none</div>")); result.append(i18n("<div align='center'><b>Group:</b> none</div>"));
else else
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(list[index])); result.append(i18n("<div align='center'><b>Group:</b> %1</div>").arg(list[index]));
} }
return(result); return(result);

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
//TQt includes //TQt includes
#include <tqlayout.h> #include <layout.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -47,8 +47,8 @@ KernelOptions::KernelOptions(TQWidget *parent) :
TQWidget(parent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *layout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true); layout->setAutoAdd(true);
TQString description= i18n("<qt><p>These files will be analyzed to display <b>Kernel logs</b>. This list also determines the order in which the files are read.</p></qt>"); TQString description= i18n("<qt><p>These files will be analyzed to display <b>Kernel logs</b>. This list also determines the order in which the files are read.</p></qt>");
fileList=new SpecificFileList(this, description); fileList=new SpecificFileList(this, description);

@ -96,7 +96,7 @@ KSystemLog::KSystemLog() :
//Accept Drag and Drop //Accept Drag and Drop
setAcceptDrops(true); setAcceptDrops(true);
//Initialize the tqStatus Bar //Initialize the Status Bar
setupStatusBar(); setupStatusBar();
//Initialize the find manager //Initialize the find manager
@ -266,7 +266,7 @@ void KSystemLog::setupStatusBar() {
statusBar()->insertItem("", STATUS_BAR_LINE_COUNT, 0, true); statusBar()->insertItem("", STATUS_BAR_LINE_COUNT, 0, true);
statusBar()->insertItem("", STATUS_BAR_LAST_MODIFICATION, 0, true); statusBar()->insertItem("", STATUS_BAR_LAST_MODIFICATION, 0, true);
//Displays the tqStatus Bar //Displays the Status Bar
statusBar()->show(); statusBar()->show();
} }
@ -689,7 +689,7 @@ LogManager* KSystemLog::newTab() {
tabs->setCurrentPage(tabs->count()-1); tabs->setCurrentPage(tabs->count()-1);
//Correctly initialize the tqStatus Bar //Correctly initialize the Status Bar
updateStatusBar(); updateStatusBar();
//Returns the newly created LogManager //Returns the newly created LogManager
@ -870,7 +870,7 @@ void KSystemLog::updateStatusBar() {
statusBar()->changeItem(lineCount, STATUS_BAR_LINE_COUNT); statusBar()->changeItem(lineCount, STATUS_BAR_LINE_COUNT);
TQString time=i18n("Last updated: %1.").tqarg(currentManager->getLastUpdate().toString(Qt::LocalDate)); TQString time=i18n("Last updated: %1.").arg(currentManager->getLastUpdate().toString(Qt::LocalDate));
statusBar()->changeItem(time, STATUS_BAR_LAST_MODIFICATION); statusBar()->changeItem(time, STATUS_BAR_LAST_MODIFICATION);

@ -108,16 +108,16 @@ void LoadingDialog::setLoadingLog(const TQString& text) {
//Several tabs to load //Several tabs to load
if (tabCount>1 && currentTab>=1) { if (tabCount>1 && currentTab>=1) {
if (firstLoading) if (firstLoading)
setLabel(i18n("<qt>Loading <b>%1</b> [<b>%2</b>/%3 file] (<b>%4</b>/%5)...</qt>").tqarg(text).tqarg(currentFile).tqarg(fileCount).tqarg(currentTab).tqarg(tabCount)); setLabel(i18n("<qt>Loading <b>%1</b> [<b>%2</b>/%3 file] (<b>%4</b>/%5)...</qt>").arg(text).arg(currentFile).arg(fileCount).arg(currentTab).arg(tabCount));
else else
setLabel(i18n("<qt>Reloading <b>%1</b> [<b>%2</b>/%3 file] (<b>%4</b>/%5)...</qt>").tqarg(text).tqarg(currentFile).tqarg(fileCount).tqarg(currentTab).tqarg(tabCount)); setLabel(i18n("<qt>Reloading <b>%1</b> [<b>%2</b>/%3 file] (<b>%4</b>/%5)...</qt>").arg(text).arg(currentFile).arg(fileCount).arg(currentTab).arg(tabCount));
} }
//Only one tab to load //Only one tab to load
else { else {
if (firstLoading) if (firstLoading)
setLabel(i18n("<qt>Loading <b>%1</b> [<b>%2</b>/%3 file]...</qt>").tqarg(text).tqarg(currentFile).tqarg(fileCount)); setLabel(i18n("<qt>Loading <b>%1</b> [<b>%2</b>/%3 file]...</qt>").arg(text).arg(currentFile).arg(fileCount));
else else
setLabel(i18n("<qt>Reloading <b>%1</b> [<b>%2</b>/%3 file]...</qt>").tqarg(text).tqarg(currentFile).tqarg(fileCount)); setLabel(i18n("<qt>Reloading <b>%1</b> [<b>%2</b>/%3 file]...</qt>").arg(text).arg(currentFile).arg(fileCount));
} }
} }
@ -126,16 +126,16 @@ void LoadingDialog::setLoadingLog(const TQString& text) {
//Several tabs to load //Several tabs to load
if (tabCount>1 && currentTab>=1) { if (tabCount>1 && currentTab>=1) {
if (firstLoading) if (firstLoading)
setLabel(i18n("<qt>Loading <b>%1</b> (<b>%2</b>/%3)...</qt>").tqarg(text).tqarg(currentTab).tqarg(tabCount)); setLabel(i18n("<qt>Loading <b>%1</b> (<b>%2</b>/%3)...</qt>").arg(text).arg(currentTab).arg(tabCount));
else else
setLabel(i18n("<qt>Reloading <b>%1</b> (<b>%2</b>/%3)...</qt>").tqarg(text).tqarg(currentTab).tqarg(tabCount)); setLabel(i18n("<qt>Reloading <b>%1</b> (<b>%2</b>/%3)...</qt>").arg(text).arg(currentTab).arg(tabCount));
} }
//Only one tab to load //Only one tab to load
else { else {
if (firstLoading) if (firstLoading)
setLabel(i18n("<qt>Loading <b>%1</b>...</qt>").tqarg(text)); setLabel(i18n("<qt>Loading <b>%1</b>...</qt>").arg(text));
else else
setLabel(i18n("<qt>Reloading <b>%1</b>...</qt>").tqarg(text)); setLabel(i18n("<qt>Reloading <b>%1</b>...</qt>").arg(text));
} }
} }

@ -62,7 +62,7 @@ void LogLine::setRecent(bool recent) {
this->recent=recent; this->recent=recent;
if (item!=NULL) { if (item!=NULL) {
//TODO This is certainly the main problem of the unknown crash bug ! //TODO This is certainly the main problem of the unknown crash bug !
//item->tqrepaint(); //item->repaint();
} }
} }

@ -35,7 +35,7 @@ LogLineFilter::LogLineFilter(TQWidget* parent, KListView* listView, const char*
drawFilterMessage = true; drawFilterMessage = true;
tqrepaint(); repaint();
} }
@ -61,7 +61,7 @@ void LogLineFilter::focusInEvent( TQFocusEvent *ev )
{ {
if ( drawFilterMessage == true ) { if ( drawFilterMessage == true ) {
drawFilterMessage = false; drawFilterMessage = false;
tqrepaint(); repaint();
} }
KListViewSearchLine::focusInEvent( ev ); KListViewSearchLine::focusInEvent( ev );
} }
@ -71,7 +71,7 @@ void LogLineFilter::focusOutEvent( TQFocusEvent *ev )
{ {
if ( text().isEmpty() ) { if ( text().isEmpty() ) {
drawFilterMessage = true; drawFilterMessage = true;
tqrepaint(); repaint();
} }
KListViewSearchLine::focusOutEvent( ev ); KListViewSearchLine::focusOutEvent( ev );
} }

@ -123,7 +123,7 @@ LogLine* LogLineTree::synchronizeAddedLines(View* view) {
bool LogLineTree::remove(LogLine* line) { bool LogLineTree::remove(LogLine* line) {
/** /**
* Parent log line actions : * Parent log line actions :
* - Only remove this line is it does not have any tqchildren left * - Only remove this line is it does not have any children left
*/ */
if (line->isParentLogLine()==true) { if (line->isParentLogLine()==true) {
ParentLogLine* parent=(ParentLogLine*) line; ParentLogLine* parent=(ParentLogLine*) line;
@ -145,13 +145,13 @@ bool LogLineTree::remove(LogLine* line) {
ParentLogLine* parent=child->getParent(); ParentLogLine* parent=child->getParent();
parent->removeChild(child); parent->removeChild(child);
//Remove parent if it does not have longer tqchildren //Remove parent if it does not have longer children
if (parent->hasChildren()==false) { if (parent->hasChildren()==false) {
parents.remove(parent); parents.remove(parent);
LogLineList::remove(parent); LogLineList::remove(parent);
} }
//Remove the tqchildren //Remove the children
return(LogLineList::remove(line)); return(LogLineList::remove(line));
} }

@ -25,7 +25,7 @@
#include <tqpainter.h> #include <tqpainter.h>
#include <tqpen.h> #include <tqpen.h>
#include <tqclipboard.h> #include <clipboard.h>
#include <tqcolor.h> #include <tqcolor.h>
//KDE includes //KDE includes
@ -246,7 +246,7 @@ void LogListItem::paintCell(TQPainter* p, const TQColorGroup& cg, int column, in
TQString name = text(column); TQString name = text(column);
if( fmName.width(name) + text_x + lv->itemMargin()*2 > width ) { if( fmName.width(name) + text_x + lv->itemMargin()*2 > width ) {
int ellWidth = fmName.width( "..." ); int ellWidth = fmName.width( "..." );
TQString text = TQString::tqfromLatin1(""); TQString text = TQString::fromLatin1("");
int i = 0; int i = 0;
int len = name.length(); int len = name.length();
while ( i < len && fmName.width( text + name[ i ] ) + ellWidth < width - text_x - lv->itemMargin()*2 ) { while ( i < len && fmName.width( text + name[ i ] ) + ellWidth < width - text_x - lv->itemMargin()*2 ) {
@ -347,7 +347,7 @@ TQFontMetrics fmName( font );
TQString name = text(0); TQString name = text(0);
if( fmName.width( name ) + text_x + lv->itemMargin()*2 > width ) { if( fmName.width( name ) + text_x + lv->itemMargin()*2 > width ) {
int ellWidth = fmName.width( "..." ); int ellWidth = fmName.width( "..." );
TQString text = TQString::tqfromLatin1(""); TQString text = TQString::fromLatin1("");
int i = 0; int i = 0;
int len = name.length(); int len = name.length();
while ( i < len && fmName.width( text + name[ i ] ) + ellWidth < width - text_x - lv->itemMargin()*2 ) { while ( i < len && fmName.width( text + name[ i ] ) + ellWidth < width - text_x - lv->itemMargin()*2 ) {
@ -375,7 +375,7 @@ if( fmName.width( name ) + text_x + lv->itemMargin()*2 > width ) {
// draw the number of tracks and the total length of the playlist // draw the number of tracks and the total length of the playlist
info += i18n("1 Track", "%n Tracks", m_trackCount); info += i18n("1 Track", "%n Tracks", m_trackCount);
if( m_length ) if( m_length )
info += TQString(" - [%2]").tqarg( MetaBundle::prettyTime( m_length ) ); info += TQString(" - [%2]").arg( MetaBundle::prettyTime( m_length ) );
} }
pBuf.drawText( text_x, textHeight, width, fm.lineSpacing(), AlignVCenter, info); pBuf.drawText( text_x, textHeight, width, fm.lineSpacing(), AlignVCenter, info);

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
//TQt includes //TQt includes
#include <tqclipboard.h> #include <clipboard.h>
//KDE includes //KDE includes
#include <kpopupmenu.h> #include <kpopupmenu.h>
@ -241,7 +241,7 @@ void LogManager::slotLogUpdated(int lineCount) {
//If the user is in this log manager, he does have to see that some new log lines have appeared //If the user is in this log manager, he does have to see that some new log lines have appeared
if (isCurrent()==false) { if (isCurrent()==false) {
TQString title(i18n("%1 (%2)").tqarg(logMode->name).tqarg(newLinesSinceLastSelection)); TQString title(i18n("%1 (%2)").arg(logMode->name).arg(newLinesSinceLastSelection));
//This signal is emitted only if the selected tab is not this one //This signal is emitted only if the selected tab is not this one
emit changeTitle(view, title); emit changeTitle(view, title);
@ -311,10 +311,10 @@ void LogManager::slotFileSave() {
ioDev->close(); ioDev->close();
emit changeStatusbar(i18n("1 log line saved to '%1'.", "%n log lines saved to '%1'.", nbCopied).tqarg(filename)); emit changeStatusbar(i18n("1 log line saved to '%1'.", "%n log lines saved to '%1'.", nbCopied).arg(filename));
} }
else { else {
TQString message(i18n("Unable to save file '%1': Permission Denied.").tqarg(filename)); TQString message(i18n("Unable to save file '%1': Permission Denied.").arg(filename));
KMessageBox::error(main, message, i18n("Unable to save file."), KMessageBox::Notify); KMessageBox::error(main, message, i18n("Unable to save file."), KMessageBox::Notify);
} }
@ -521,8 +521,8 @@ void LogManager::slotCopyToClipboard() {
} }
else { else {
//Copy both to clipboard and X11-selection //Copy both to clipboard and X11-selection
TQApplication::tqclipboard()->setText(text, TQClipboard::Clipboard); TQApplication::clipboard()->setText(text, TQClipboard::Clipboard);
TQApplication::tqclipboard()->setText(text, TQClipboard::Selection); TQApplication::clipboard()->setText(text, TQClipboard::Selection);
emit changeStatusbar(i18n("1 log line copied to clipboard.", "%n log lines copied to clipboard.", nbCopied)); emit changeStatusbar(i18n("1 log line copied to clipboard.", "%n log lines copied to clipboard.", nbCopied));
} }

@ -116,7 +116,7 @@
</property> </property>
<widget class="TQLayoutWidget" row="1" column="0"> <widget class="TQLayoutWidget" row="1" column="0">
<property name="name"> <property name="name">
<cstring>tqlayout9_2</cstring> <cstring>layout9_2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -151,7 +151,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>84</width> <width>84</width>
<height>24</height> <height>24</height>
@ -175,7 +175,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>tqlayout9</cstring> <cstring>layout9</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -210,7 +210,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>84</width> <width>84</width>
<height>24</height> <height>24</height>
@ -255,7 +255,7 @@
</property> </property>
<widget class="TQLayoutWidget" row="3" column="0"> <widget class="TQLayoutWidget" row="3" column="0">
<property name="name"> <property name="name">
<cstring>tqlayout11</cstring> <cstring>layout11</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -282,7 +282,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>100</width> <width>100</width>
<height>24</height> <height>24</height>
@ -333,7 +333,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>31</width> <width>31</width>
<height>41</height> <height>41</height>
@ -342,7 +342,7 @@
</spacer> </spacer>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout6</cstring> <cstring>layout6</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -374,7 +374,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>155</width> <width>155</width>
<height>26</height> <height>26</height>

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>

@ -51,7 +51,7 @@ LogViewColumns* ParentLogLine::getColumns() {
} }
void ParentLogLine::addChild(LogLine* child) { void ParentLogLine::addChild(LogLine* child) {
tqchildren.append(child); children.append(child);
} }
bool ParentLogLine::isParentLogLine() { bool ParentLogLine::isParentLogLine() {
@ -153,10 +153,10 @@ int ParentLogLine::getGroupedColumnIndex(LogViewColumns* columns, int column) {
} }
void ParentLogLine::removeChild(LogLine* child) { void ParentLogLine::removeChild(LogLine* child) {
tqchildren.remove(child); children.remove(child);
} }
bool ParentLogLine::hasChildren() { bool ParentLogLine::hasChildren() {
return(tqchildren.count()!=0); return(children.count()!=0);
} }

@ -61,7 +61,7 @@ class ParentLogLine : public LogLine {
static int getGroupedColumnIndex(LogViewColumns* columns, int column); static int getGroupedColumnIndex(LogViewColumns* columns, int column);
protected: protected:
TQPtrList<LogLine> tqchildren; TQPtrList<LogLine> children;
groupByType groupBy; groupByType groupBy;
int groupByColumn; int groupByColumn;

@ -84,18 +84,18 @@ TQString ParsingHelper::parseSize(const TQString& stringSize) {
long size=stringSize.toLong(); long size=stringSize.toLong();
if (size<1024) if (size<1024)
return(i18n("Size format", "%1 B").tqarg(size)); return(i18n("Size format", "%1 B").arg(size));
else if (size<1024*1024) { else if (size<1024*1024) {
double newSize=size / 1024.; double newSize=size / 1024.;
TQString strNewSize; TQString strNewSize;
strNewSize.sprintf("%0.2f", newSize); strNewSize.sprintf("%0.2f", newSize);
return(i18n("Size format", "%1 KB").tqarg(strNewSize)); return(i18n("Size format", "%1 KB").arg(strNewSize));
} }
else { else {
double newSize=size / (1024.*1024.); double newSize=size / (1024.*1024.);
TQString strNewSize; TQString strNewSize;
strNewSize.sprintf("%0.2f", newSize); strNewSize.sprintf("%0.2f", newSize);
return(i18n("Size format", "%1 MB").tqarg(strNewSize)); return(i18n("Size format", "%1 MB").arg(strNewSize));
} }
} }
@ -156,7 +156,7 @@ TQString ParsingHelper::parseHTTPResponse(const TQString& response) {
//Search the response string in the map //Search the response string in the map
TQMap<TQString, TQString>::Iterator it=ParsingHelper::mapHTTPResponse.find(response); TQMap<TQString, TQString>::Iterator it=ParsingHelper::mapHTTPResponse.find(response);
if (it!=ParsingHelper::mapHTTPResponse.end()) if (it!=ParsingHelper::mapHTTPResponse.end())
return(TQString("%1 %2").tqarg(response).tqarg(*it)); return(TQString("%1 %2").arg(response).arg(*it));
else else
return(response); return(response);

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
//TQt includes //TQt includes
#include <tqlayout.h> #include <layout.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -47,8 +47,8 @@ PostfixOptions::PostfixOptions(TQWidget *parent) :
TQWidget(parent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *layout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true); layout->setAutoAdd(true);
TQString description= i18n("<qt><p>These files will be analyzed to display <b>Postfix Logs</b>. This list also determine the order in which the files are read.</p></qt>"); TQString description= i18n("<qt><p>These files will be analyzed to display <b>Postfix Logs</b>. This list also determine the order in which the files are read.</p></qt>");
fileList=new SpecificFileList(this, description); fileList=new SpecificFileList(this, description);

@ -137,7 +137,7 @@ TQFile* Reader::openFile(TQString name) {
//If the file does not exist //If the file does not exist
if(! file->exists()) { if(! file->exists()) {
message=i18n("The file '%1' does not exist.").tqarg(name); message=i18n("The file '%1' does not exist.").arg(name);
KMessageBox::error(logManager->getView(), message, i18n("The File Does Not Exist"), KMessageBox::Notify); KMessageBox::error(logManager->getView(), message, i18n("The File Does Not Exist"), KMessageBox::Notify);
emit statusbarChanged(message); emit statusbarChanged(message);
return(NULL); return(NULL);
@ -146,7 +146,7 @@ TQFile* Reader::openFile(TQString name) {
//If we can open the file //If we can open the file
if( !file->open( IO_ReadOnly ) ) { if( !file->open( IO_ReadOnly ) ) {
//It could not be opened //It could not be opened
message=i18n("You do not have sufficient permissions to read '%1'.").tqarg(name); message=i18n("You do not have sufficient permissions to read '%1'.").arg(name);
KMessageBox::error(logManager->getView(), message, i18n("Insufficient Permissions"), KMessageBox::Notify); KMessageBox::error(logManager->getView(), message, i18n("Insufficient Permissions"), KMessageBox::Notify);
emit statusbarChanged(message); emit statusbarChanged(message);
return(NULL); return(NULL);

@ -335,7 +335,7 @@ LogFile* ReaderFactory::getGenericLogFile(TQString& file) {
KURL url(file); KURL url(file);
if (!url.isValid()) { if (!url.isValid()) {
kdDebug() << i18n("URL '%1' is not valid, skipping this URL.").tqarg(url.path()) << endl; kdDebug() << i18n("URL '%1' is not valid, skipping this URL.").arg(url.path()) << endl;
return(NULL); return(NULL);
} }
@ -367,7 +367,7 @@ LogFiles* ReaderFactory::getGenericLogFiles(TQStringList& stringList, TQValueLis
KURL url(*itString); KURL url(*itString);
if (!url.isValid()) { if (!url.isValid()) {
kdDebug() << i18n("URL '%1' is not valid, skipping this URL.").tqarg(url.path()) << endl; kdDebug() << i18n("URL '%1' is not valid, skipping this URL.").arg(url.path()) << endl;
continue; continue;
itString++; itString++;
itInt++; itInt++;
@ -398,7 +398,7 @@ LogFiles* ReaderFactory::getNoModeLogFiles(TQStringList& stringList) {
KURL url(*it); KURL url(*it);
if (!url.isValid()) { if (!url.isValid()) {
kdDebug() << i18n("URL '%1' is not valid, skipping this URL.").tqarg(url.path()) << endl; kdDebug() << i18n("URL '%1' is not valid, skipping this URL.").arg(url.path()) << endl;
continue; continue;
} }

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
//TQt includes //TQt includes
#include <tqlayout.h> #include <layout.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -46,8 +46,8 @@ SambaOptions::SambaOptions(TQWidget *parent) :
TQWidget(parent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *layout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true); layout->setAutoAdd(true);
TQString description= i18n("<qt><p>These files will be analyzed to display <b>Samba log</b>. This list also determines the order in which the files are read.</p></qt>"); TQString description= i18n("<qt><p>These files will be analyzed to display <b>Samba log</b>. This list also determines the order in which the files are read.</p></qt>");
fileList=new FileList(this, description); fileList=new FileList(this, description);

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
#include <tqlayout.h> #include <layout.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqtooltip.h> #include <tqtooltip.h>

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
//TQt includes //TQt includes
#include <tqlayout.h> #include <layout.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -46,15 +46,15 @@ SystemOptions::SystemOptions(TQWidget *parent) :
TQWidget(parent) TQWidget(parent)
{ {
TQVBoxLayout* tqlayout = new TQVBoxLayout(this); TQVBoxLayout* layout = new TQVBoxLayout(this);
//tqlayout->setAutoAdd(true); //layout->setAutoAdd(true);
TQString description= i18n("<qt><p>These files will be analyzed to display <b>System logs</b>. This list also determines the order in which the files are read.</p></qt>"); TQString description= i18n("<qt><p>These files will be analyzed to display <b>System logs</b>. This list also determines the order in which the files are read.</p></qt>");
fileList=new SpecificFileList(this, description); fileList=new SpecificFileList(this, description);
connect(fileList, TQT_SIGNAL(fileListChanged(int)), this, TQT_SLOT(slotFileListChanged(int))); connect(fileList, TQT_SIGNAL(fileListChanged(int)), this, TQT_SLOT(slotFileListChanged(int)));
tqlayout->addWidget(fileList); layout->addWidget(fileList);
readConfig(); readConfig();

@ -20,7 +20,7 @@
//TQt includes //TQt includes
#include <tqpainter.h> #include <tqpainter.h>
#include <tqlayout.h> #include <layout.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqstring.h> #include <tqstring.h>
@ -64,7 +64,7 @@ View::View(TQWidget *parent) :
firstLoad(true) firstLoad(true)
{ {
// setup our tqlayout manager to automatically add our widgets // setup our layout manager to automatically add our widgets
TQVBoxLayout* topLayout = new TQVBoxLayout(this); TQVBoxLayout* topLayout = new TQVBoxLayout(this);
topLayout->setAutoAdd(true); topLayout->setAutoAdd(true);
@ -72,7 +72,7 @@ View::View(TQWidget *parent) :
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,3,0) #if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
filterBar=new TQHBox(this); filterBar=new TQHBox(this);
filterBar->setSpacing(5); filterBar->setSpacing(5);
filterBar->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) ); filterBar->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) );
clearSearch=new KToolBarButton( TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase", 0, filterBar); clearSearch=new KToolBarButton( TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase", 0, filterBar);
@ -210,7 +210,7 @@ void View::setColumns(LogViewColumns* list) {
TQString group="List"; TQString group="List";
group.append(logManager->getIndex()); group.append(logManager->getIndex());
//We first restore the tqlayout from the config //We first restore the layout from the config
table->restoreLayout(configXT->config(), group); table->restoreLayout(configXT->config(), group);
//Then we delete it from config, to avoid reloading problem //Then we delete it from config, to avoid reloading problem

@ -53,7 +53,7 @@ void ViewToolTip::maybeTip(const TQPoint& p) {
TQString s=item->getToolTipText(); TQString s=item->getToolTipText();
TQRect r= view->getLogList()->tqitemRect(item); TQRect r= view->getLogList()->itemRect(item);
//kdDebug() << "Left=" << r.left() << " Right=" << r.right() << " Top=" << r.top() << " Bottom=" << r.bottom() << endl; //kdDebug() << "Left=" << r.left() << " Right=" << r.right() << " Top=" << r.top() << " Bottom=" << r.bottom() << endl;
tip(r, s); tip(r, s);

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
//TQt includes //TQt includes
#include <tqlayout.h> #include <layout.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -46,8 +46,8 @@ XorgOptions::XorgOptions(TQWidget *parent) :
TQWidget(parent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *layout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true); layout->setAutoAdd(true);
TQString description= i18n("<qt><p>These files will be analyzed to display <b>X.org log</b>. This list also determines the order in which the files are read.</p></qt>"); TQString description= i18n("<qt><p>These files will be analyzed to display <b>X.org log</b>. This list also determines the order in which the files are read.</p></qt>");
fileList=new FileList(this, description); fileList=new FileList(this, description);

@ -35,7 +35,7 @@
XorgReader::XorgReader(TQObject *parent, const char *name) : XorgReader::XorgReader(TQObject *parent, const char *name) :
DefaultReader(parent, name), DefaultReader(parent, name),
newLineTime(), newLineTime(),
newLineDate(TQDate::tqcurrentDate()), newLineDate(TQDate::currentDate()),
lineCount(1) lineCount(1)
{ {
@ -76,7 +76,7 @@ LogLine* XorgReader::parseMessage(TQString& string, LogFile* originalFile) {
} }
TQStringList list; TQStringList list;
//list.append(i18n("# %1").tqarg(lineCount)); //list.append(i18n("# %1").arg(lineCount));
list.append(logLineType->name); list.append(logLineType->name);
list.append(string); list.append(string);

Loading…
Cancel
Save