summaryrefslogtreecommitdiffstats
path: root/cervisia/loglist.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /cervisia/loglist.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cervisia/loglist.cpp')
-rw-r--r--cervisia/loglist.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/cervisia/loglist.cpp b/cervisia/loglist.cpp
index 833a2429..5b7bec74 100644
--- a/cervisia/loglist.cpp
+++ b/cervisia/loglist.cpp
@@ -69,7 +69,7 @@ LogListViewItem::LogListViewItem(TQListView* list, const Cervisia::LogInfo& logI
setText(Tags, logInfo.tagsToString(Cervisia::TagInfo::Tag,
Cervisia::LogInfo::NoTagType,
- TQString::fromLatin1(", ")));
+ TQString::tqfromLatin1(", ")));
}
@@ -78,7 +78,7 @@ TQString LogListViewItem::truncateLine(const TQString &s)
int pos;
TQString res = s.simplifyWhiteSpace();
- if ( (pos = res.find('\n')) != -1 )
+ if ( (pos = res.tqfind('\n')) != -1 )
res = res.left(pos) + "...";
return res;
@@ -106,8 +106,8 @@ int LogListViewItem::compare(TQListViewItem* i, int col, bool ascending) const
}
-LogListView::LogListView(KConfig& cfg, TQWidget *parent, const char *name)
- : KListView(parent, name)
+LogListView::LogListView(KConfig& cfg, TQWidget *tqparent, const char *name)
+ : KListView(tqparent, name)
, partConfig(cfg)
{
setAllColumnsShowFocus(true);
@@ -131,13 +131,13 @@ LogListView::LogListView(KConfig& cfg, TQWidget *parent, const char *name)
for (int i = 0; i < columns(); ++i)
setColumnWidthMode(i, Manual);
- restoreLayout(&partConfig, TQString::fromLatin1("LogList view"));
+ restoreLayout(&partConfig, TQString::tqfromLatin1("LogList view"));
}
LogListView::~LogListView()
{
- saveLayout(&partConfig, TQString::fromLatin1("LogList view"));
+ saveLayout(&partConfig, TQString::tqfromLatin1("LogList view"));
}
@@ -169,7 +169,7 @@ void LogListView::contentsMousePressEvent(TQMouseEvent *e)
// Retrieve revision
const TQString revision = selItem->text(LogListViewItem::Revision);
- if ( e->button() == LeftButton )
+ if ( e->button() == Qt::LeftButton )
{
// If the control key was pressed, then we change revision B not A
if( e->state() & ControlButton )
@@ -177,7 +177,7 @@ void LogListView::contentsMousePressEvent(TQMouseEvent *e)
else
emit revisionClicked(revision, false);
}
- else if ( e->button() == MidButton )
+ else if ( e->button() == Qt::MidButton )
emit revisionClicked(revision, true);
}
@@ -220,7 +220,7 @@ void LogListView::slotQueryToolTip(const TQPoint& viewportPos,
{
if (const LogListViewItem* item = static_cast<LogListViewItem*>(itemAt(viewportPos)))
{
- viewportRect = itemRect(item);
+ viewportRect = tqitemRect(item);
text = item->m_logInfo.createToolTipText();
}
}