From 382d988082af6cb74c128b7011c2c0c8c9c00cfc Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 19 Oct 2009 17:01:34 +0200 Subject: check title length fix --- src/homepage.cpp | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'src/homepage.cpp') diff --git a/src/homepage.cpp b/src/homepage.cpp index 7d93216c..1328fc8d 100644 --- a/src/homepage.cpp +++ b/src/homepage.cpp @@ -115,15 +115,9 @@ QString HomePage::fillFavorites() QString speed; for(int i=0; i<8; ++i) { - QString text = names.at(i); - if(text.length() > 23) - { - text.truncate(20); - text += "..."; - } speed += "
"; speed += ""; - speed += ""; + speed += ""; speed += ""; speed += ""; speed += ""; @@ -146,7 +140,7 @@ QString HomePage::lastVisitedSites() last += ""; last += ""; last += "
"; - last += "" + it.url + "
"; + last += "" + it.title + ""; } return last; @@ -282,16 +276,9 @@ QString HomePage::fillClosedTabs() Q_FOREACH( const HistoryItem &item, links) { - QString text = item.title; - if(text.length() > 20) - { - text.truncate(17); - text += "..."; - } - closed += "
"; closed += ""; - closed += ""; + closed += ""; closed += ""; closed += "
"; } -- cgit v1.2.1