[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: make_it_even_cooler_branch: kdebase/konqueror/keditbookmarks
From: Alexander Kellett <lypanov () kde ! org>
Date: 2003-01-06 16:31:08
[Download RAW message or body]
CVS commit by lypanov:
cleanups part 5
M +15 -12 testlink.cpp 1.1.2.44
--- kdebase/konqueror/keditbookmarks/testlink.cpp #1.1.2.43:1.1.2.44
@@ -166,13 +166,17 @@ static QString mkTimeStr(int b) {
}
-static QString oldblah1(QString url) {
- return TLP->m_oldModify.contains(url) ? TLP->m_oldModify[url] : QString::null;
+static QString getMod(QString url) {
+ return TestLinksParent::self()->m_modify.contains(url)
+ ? TestLinksParent::self()->m_modify[url]
+ : QString::null;
}
-static QString blah1(QString url) {
- return TLP->m_modify.contains(url) ? TLP->m_modify[url] : QString::null;
+static QString getOldMod(QString url) {
+ return TestLinksParent::self()->m_oldModify.contains(url)
+ ? TestLinksParent::self()->m_oldModify[url]
+ : QString::null;
}
-static void setblah1(QString url, QString val) {
+static void setMod1(QString url, QString val) {
TLP->m_modify[url] = val;
}
@@ -187,5 +191,5 @@ void KEBListViewItem::modUpdate() {
// get new mod date if there is one
- QString newModStr = blah1(url);
+ QString newModStr = getMod(url);
if (!newModStr.isNull()) {
newMod = newModStr.toInt(&newModValid);
@@ -194,5 +198,5 @@ void KEBListViewItem::modUpdate() {
QString oldModStr;
- if (oldblah1(url).isNull()) {
+ if (getOldMod(url).isNull()) {
// first time
oldModStr = nsGet();
@@ -205,5 +209,5 @@ void KEBListViewItem::modUpdate() {
// may be reading a second bookmark with same url
QString oom = nsGet();
- oldModStr = oldblah1(url);
+ oldModStr = getOldMod(url);
if (oom.toInt() > oldModStr.toInt()) {
TLP->m_oldModify[url] = oom;
@@ -248,10 +252,9 @@ void KEBListViewItem::setTmpStatus(QStri
m_paintstyle = 2;
setText(COL_STAT,status);
- // TLP
- oldStatus = blah1(url);
+ oldStatus = getMod(url);
if (oldStatus.isNull()) {
oldStatus = "";
}
- TLP->m_modify[url] = status;
+ setMod1(url, status);
}
@@ -314,5 +317,5 @@ void KEBListViewItem::nsPut(QString nm)
KEBTopLevel::self()->setModifiedFlag(true);
setText(COL_STAT, nm);
- setblah1(m_bookmark.url().url(), nm);
+ setMod1(m_bookmark.url().url(), nm);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic