From 1fffbdafa12271a1a635caf46777fb8acfb6f31b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 10:00:36 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076. --- klinkstatus/src/ui/resultview.cpp | 42 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'klinkstatus/src/ui/resultview.cpp') diff --git a/klinkstatus/src/ui/resultview.cpp b/klinkstatus/src/ui/resultview.cpp index fdf65099..507d06e3 100644 --- a/klinkstatus/src/ui/resultview.cpp +++ b/klinkstatus/src/ui/resultview.cpp @@ -69,31 +69,31 @@ void ResultView::setColumns(TQStringList const& columns) number_of_columns_ = columns.size(); } -bool ResultView::displayableWithStatus(LinkStatus const* ls, Status const& status) +bool ResultView::displayableWithtqStatus(LinktqStatus const* ls, tqStatus const& status) { if(status == ResultView::good) { return - ls->status() == LinkStatus::SUCCESSFULL || - ls->status() == LinkStatus::HTTP_REDIRECTION; + ls->status() == LinktqStatus::SUCCESSFULL || + ls->status() == LinktqStatus::HTTP_REDIRECTION; } else if(status == ResultView::bad) { return - ls->status() == LinkStatus::BROKEN || - ls->status() == LinkStatus::HTTP_CLIENT_ERROR || - ls->status() == LinkStatus::HTTP_SERVER_ERROR; + ls->status() == LinktqStatus::BROKEN || + ls->status() == LinktqStatus::HTTP_CLIENT_ERROR || + ls->status() == LinktqStatus::HTTP_SERVER_ERROR; } else if(status == ResultView::malformed) { - return ls->status() == LinkStatus::MALFORMED; + return ls->status() == LinktqStatus::MALFORMED; } else if(status == ResultView::undetermined) { return - ls->status() == LinkStatus::UNDETERMINED || - ls->status() == LinkStatus::TIMEOUT || - ls->status() == LinkStatus::NOT_SUPPORTED; + ls->status() == LinktqStatus::UNDETERMINED || + ls->status() == LinktqStatus::TIMEOUT || + ls->status() == LinktqStatus::NOT_SUPPORTED; } else return true; @@ -102,8 +102,8 @@ bool ResultView::displayableWithStatus(LinkStatus const* ls, Status const& statu // ******************************* ResultViewItem ***************************** -ResultViewItem::ResultViewItem(LinkStatus const* linkstatus, int column_index) - : ls_((LinkStatus*)linkstatus), column_index_(column_index) +ResultViewItem::ResultViewItem(LinktqStatus const* linkstatus, int column_index) + : ls_((LinktqStatus*)linkstatus), column_index_(column_index) { Q_ASSERT(ls_); Q_ASSERT(column_index_ > 0); @@ -123,7 +123,7 @@ int ResultViewItem::columnIndex() const return column_index_; } -LinkStatus const* ResultViewItem::linkStatus() const +LinktqStatus const* ResultViewItem::linktqStatus() const { Q_ASSERT(ls_); return ls_; @@ -131,30 +131,30 @@ LinkStatus const* ResultViewItem::linkStatus() const TQColor const& ResultViewItem::textStatusColor() const { - if(linkStatus()->errorOccurred()) + if(linktqStatus()->errorOccurred()) { - //kdDebug(23100) << "ERROR: " << linkStatus()->error() << ": " << linkStatus()->absoluteUrl().prettyURL() << endl; - if(linkStatus()->error() == i18n( "Javascript not supported" )) + //kdDebug(23100) << "ERROR: " << linkStatus()->error() << ": " << linktqStatus()->absoluteUrl().prettyURL() << endl; + if(linktqStatus()->error() == i18n( "Javascript not supported" )) return TQt::lightGray; else return TQt::red; } - else if(linkStatus()->absoluteUrl().hasRef()) + else if(linktqStatus()->absoluteUrl().hasRef()) return TQt::blue; - else if(!linkStatus()->absoluteUrl().protocol().startsWith("http")) + else if(!linktqStatus()->absoluteUrl().protocol().startsWith("http")) return TQt::darkGreen; else { - TQString status_code(TQString::number(linkStatus()->httpHeader().statusCode())); + TQString status_code(TQString::number(linktqStatus()->httpHeader().statusCode())); if(status_code[0] == '0') { kdWarning(23100) << "status code == 0: " << endl; - kdWarning(23100) << linkStatus()->toString() << endl; - kdWarning(23100) << linkStatus()->httpHeader().toString() << endl; + kdWarning(23100) << linktqStatus()->toString() << endl; + kdWarning(23100) << linktqStatus()->httpHeader().toString() << endl; } //Q_ASSERT(status_code[0] != '0'); -- cgit v1.2.1