diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:33:51 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-03 15:53:28 +0200 |
commit | 4b54ad17739d1075235f2960ecde230a58b5621c (patch) | |
tree | 041d34c2e70d106209f97f8607698ccfe907c9b4 /knewsticker/newsscroller.cpp | |
parent | 6f21bc7511005a69a8ef14c2ad4e74857baf59f3 (diff) | |
download | tdenetwork-4b54ad17739d1075235f2960ecde230a58b5621c.tar.gz tdenetwork-4b54ad17739d1075235f2960ecde230a58b5621c.zip |
Rename old tq methods that no longer need a unique name
(cherry picked from commit 089118c18533dfa3e6ce5065dbebdd4db94051f1)
Diffstat (limited to 'knewsticker/newsscroller.cpp')
-rw-r--r-- | knewsticker/newsscroller.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/knewsticker/newsscroller.cpp b/knewsticker/newsscroller.cpp index e92529be..6b1be85f 100644 --- a/knewsticker/newsscroller.cpp +++ b/knewsticker/newsscroller.cpp @@ -150,9 +150,9 @@ NewsScroller::NewsScroller(TQWidget *parent, ConfigAccess *cfg, const char *name reset(); } -TQSize NewsScroller::tqsizeHint() const +TQSize NewsScroller::sizeHint() const { - return TQSize(fontMetrics().width(TQString::tqfromLatin1("X")) * 20, fontMetrics().height() * 2); + return TQSize(fontMetrics().width(TQString::fromLatin1("X")) * 20, fontMetrics().height() * 2); } TQSizePolicy NewsScroller::sizePolicy() const @@ -178,14 +178,14 @@ void NewsScroller::dropEvent(TQDropEvent* event) // <HACK> // This is just for http://www.webreference.com/services/news/ newSourceUrl = newSourceUrl.replace(TQRegExp( - TQString::tqfromLatin1("^view-source:http%3A//")), - TQString::tqfromLatin1("http://")); + TQString::fromLatin1("^view-source:http%3A//")), + TQString::fromLatin1("http://")); // </HACK> newSourceUrl = newSourceUrl.stripWhiteSpace(); if (!isHeadline(newSourceUrl) && KMessageBox::questionYesNo(this, i18n("<p>Do you really want to add '%1' to" " the list of news sources?</p>") .tqarg(newSourceUrl), TQString(), i18n("Add"), KStdGuiItem::cancel()) == KMessageBox::Yes) { - KConfig cfg(TQString::tqfromLatin1("knewsticker_panelappletrc"), false, false); + KConfig cfg(TQString::fromLatin1("knewsticker_panelappletrc"), false, false); ConfigAccess configFrontend(&cfg); TQStringList newsSources = configFrontend.newsSources(); @@ -440,7 +440,7 @@ void NewsScroller::reset(bool bSeparatorOnly) if (m_cfg->scrollingSpeed()) m_scrollTimer->start(speedAsInterval(m_cfg->scrollingSpeed())); - TQString sep = m_headlines.isEmpty() ? i18n(" +++ No News Available +++") : TQString::tqfromLatin1(" +++ "); + TQString sep = m_headlines.isEmpty() ? i18n(" +++ No News Available +++") : TQString::fromLatin1(" +++ "); int w = fontMetrics().width(sep); int h = fontMetrics().height(); |