summaryrefslogtreecommitdiffstats
path: root/ksystemlog/src/logLine.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 08:42:58 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 08:42:58 +0000
commit9902f14bc9162d7b286b3f99b27989237db9f264 (patch)
treeb95be3be1992566418b2c2e2ed16bdb29453a8d4 /ksystemlog/src/logLine.cpp
parent437249c71459e9ea15be70788687cb8695e249c2 (diff)
downloadksystemlog-9902f14bc9162d7b286b3f99b27989237db9f264.tar.gz
ksystemlog-9902f14bc9162d7b286b3f99b27989237db9f264.zip
TQt4 port ksystemlog
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksystemlog@1239000 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksystemlog/src/logLine.cpp')
-rw-r--r--ksystemlog/src/logLine.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/ksystemlog/src/logLine.cpp b/ksystemlog/src/logLine.cpp
index effefc5..faaf79d 100644
--- a/ksystemlog/src/logLine.cpp
+++ b/ksystemlog/src/logLine.cpp
@@ -27,7 +27,7 @@
#include "logLine.h"
-LogLine::LogLine(QDate& date, QTime& time, QStringList& list, QString& file, LogLevel* level, int type) :
+LogLine::LogLine(TQDate& date, TQTime& time, TQStringList& list, TQString& file, LogLevel* level, int type) :
time(date, time),
itemList(list),
originalFile(file),
@@ -62,7 +62,7 @@ void LogLine::setRecent(bool recent) {
this->recent=recent;
if (item!=NULL) {
//TODO This is certainly the main problem of the unknown crash bug !
- //item->repaint();
+ //item->tqrepaint();
}
}
@@ -74,7 +74,7 @@ LogListItem* LogLine::getLogListItem() {
return(item);
}
-LogListItem* LogLine::insertItem(QListView* view) {
+LogListItem* LogLine::insertItem(TQListView* view) {
if (item==NULL) {
item=ItemFactory::createLogListItem(view, this);
}
@@ -103,7 +103,7 @@ bool LogLine::equals(LogLine& other) {
return(true);
}
-void LogLine::removeItem(QListView* view) {
+void LogLine::removeItem(TQListView* view) {
if (item==NULL)
return;
@@ -119,15 +119,15 @@ void LogLine::setLogLevel(LogLevel* level) {
logLevel=level;
}
-QDateTime& LogLine::getTime() {
+TQDateTime& LogLine::getTime() {
return(time);
}
-QStringList& LogLine::getItemList() {
+TQStringList& LogLine::getItemList() {
return(itemList);
}
-QString& LogLine::getOriginalFile() {
+TQString& LogLine::getOriginalFile() {
return(originalFile);
}
@@ -139,11 +139,11 @@ bool LogLine::isNewerThan(LogLine& other) {
return(time>=other.getTime());
}
-bool LogLine::isOlderThan(QDateTime& other) {
+bool LogLine::isOlderThan(TQDateTime& other) {
return(time<=other);
}
-bool LogLine::isNewerThan(QDateTime& other) {
+bool LogLine::isNewerThan(TQDateTime& other) {
return(time>=other);
}
@@ -160,7 +160,7 @@ bool LogLine::operator>(LogLine& other) {
return(isNewerThan(other));
}
-void LogLine::ensureItemVisible(QListView* view) {
+void LogLine::ensureItemVisible(TQListView* view) {
if (item!=NULL)
view->ensureItemVisible(item);
}