From a1bd60b34891ccc77056c190d7871bc4b14fe654 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 21:31:21 +0000 Subject: TQt4 port kdetoys This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1238103 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kweather/reportview.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'kweather/reportview.cpp') diff --git a/kweather/reportview.cpp b/kweather/reportview.cpp index 5cae65e..bba90cf 100644 --- a/kweather/reportview.cpp +++ b/kweather/reportview.cpp @@ -31,7 +31,7 @@ #include "weatherservice_stub.h" reportView::reportView(const TQString &reportLocation) - : KDialogBase( (TQWidget *)0, "report", false, TQString::null, Close ), + : KDialogBase( (TQWidget *)0, "report", false, TQString(), Close ), m_locationCode(reportLocation) { TQVBox *vbox = makeVBoxMainWidget(); @@ -55,7 +55,7 @@ reportView::reportView(const TQString &reportLocation) reportView::~reportView(){ delete m_weatherService; // we do not have to delete m_reportView because this class is - // the parent of the TQVBox, and that is the parent of the KHTMLPart. + // the tqparent of the TQVBox, and that is the tqparent of the KHTMLPart. KConfig config( "weather_panelappletrc" ); config.setGroup( "General Options" ); @@ -72,7 +72,7 @@ void reportView::render(){ TQString textColor = KGlobalSettings::textColor().name(); TQString baseColor = KGlobalSettings::baseColor().name(); - TQColorGroup cg = palette().active(); + TQColorGroup cg = tqpalette().active(); TQString bgColor = cg.background().name(); TQString hlColor = cg.highlight().name(); TQString hlTextColor = cg.highlightedText().name(); @@ -93,7 +93,7 @@ void reportView::render(){ TQStringList cover = m_weatherService->cover(m_locationCode ); TQStringList weather = m_weatherService->weather(m_locationCode ); - setCaption(i18n("Weather Report - %1").arg( locationName ) ); + setCaption(i18n("Weather Report - %1").tqarg( locationName ) ); TQString weatherText = "