diff options
author | Timothy Pearson <[email protected]> | 2013-01-24 13:43:14 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-24 13:43:14 -0600 |
commit | 79b21d47bce1ee428affc97534cd8b257232a871 (patch) | |
tree | 0df1fa0109d9f2bcef932eda8b5c25b2e06669ed /kicker/applets/clock | |
parent | 9a898d493f493adbc404f7223043c85f3817472b (diff) | |
download | tdebase-79b21d47bce1ee428affc97534cd8b257232a871.tar.gz tdebase-79b21d47bce1ee428affc97534cd8b257232a871.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kicker/applets/clock')
-rw-r--r-- | kicker/applets/clock/clock.cpp | 38 | ||||
-rw-r--r-- | kicker/applets/clock/clockapplet.kcfg | 6 | ||||
-rw-r--r-- | kicker/applets/clock/init.cpp | 4 |
3 files changed, 24 insertions, 24 deletions
diff --git a/kicker/applets/clock/clock.cpp b/kicker/applets/clock/clock.cpp index ced1fb363..b29d52f19 100644 --- a/kicker/applets/clock/clock.cpp +++ b/kicker/applets/clock/clock.cpp @@ -218,7 +218,7 @@ PlainClock::PlainClock(ClockApplet *applet, Prefs *prefs, TQWidget *parent, cons int PlainClock::preferedWidthForHeight(int ) const { - TQString maxLengthTime = KGlobal::locale()->formatTime( TQTime( 23, 59 ), _prefs->plainShowSeconds()); + TQString maxLengthTime = TDEGlobal::locale()->formatTime( TQTime( 23, 59 ), _prefs->plainShowSeconds()); return fontMetrics().width( maxLengthTime ) + 8; } @@ -231,7 +231,7 @@ int PlainClock::preferedHeightForWidth(int /*w*/) const void PlainClock::updateClock() { - TQString newStr = KGlobal::locale()->formatTime(_applet->clockGetTime(), _prefs->plainShowSeconds()); + TQString newStr = TDEGlobal::locale()->formatTime(_applet->clockGetTime(), _prefs->plainShowSeconds()); if (_force || newStr != _timeStr) { _timeStr = newStr; @@ -334,7 +334,7 @@ void DigitalClock::updateClock() if (_prefs->digitalShowSeconds()) format += sep + "%02d"; - if (KGlobal::locale()->use12Clock()) { + if (TDEGlobal::locale()->use12Clock()) { if (h > 12) h -= 12; else if( h == 0) @@ -940,8 +940,8 @@ ClockApplet::~ClockApplet() { delete m_shadowEngine; //reverse for the moment - KGlobal::locale()->removeCatalogue("clockapplet"); - KGlobal::locale()->removeCatalogue("timezones"); // For time zone translations + TDEGlobal::locale()->removeCatalogue("clockapplet"); + TDEGlobal::locale()->removeCatalogue("timezones"); // For time zone translations if (_calendar) { @@ -1019,7 +1019,7 @@ int ClockApplet::widthForHeight(int h) const { // if the date format STARTS with a year, assume it's in descending // order and should therefore PRECEED the date. - TQString dateFormat = KGlobal::locale()->dateFormatShort(); + TQString dateFormat = TDEGlobal::locale()->dateFormatShort(); dateFirst = dateFormat.at(1) == 'y' || dateFormat.at(1) == 'Y'; } @@ -1508,7 +1508,7 @@ void ClockApplet::contextMenuActivated(int result) return; }; - KProcess proc; + TDEProcess proc; switch (result) { case 102: @@ -1519,13 +1519,13 @@ void ClockApplet::contextMenuActivated(int result) proc << "--nonewdcop"; proc << TQString("%1 tde-clock.desktop --lang %2") .arg(locate("exe", "kcmshell")) - .arg(KGlobal::locale()->language()); - proc.start(KProcess::DontCare); + .arg(TDEGlobal::locale()->language()); + proc.start(TDEProcess::DontCare); break; case 104: proc << locate("exe", "kcmshell"); proc << "tde-language.desktop"; - proc.start(KProcess::DontCare); + proc.start(TDEProcess::DontCare); break; case 110: preferences(true); @@ -1540,7 +1540,7 @@ void ClockApplet::aboutToShowContextMenu() menu->clear(); menu->insertTitle( SmallIcon( "clock" ), i18n( "Clock" ) ); - KLocale *loc = KGlobal::locale(); + KLocale *loc = TDEGlobal::locale(); TQDateTime dt = TQDateTime::currentDateTime(); dt = TQT_TQDATETIME_OBJECT(dt.addSecs(TZoffset)); @@ -1694,7 +1694,7 @@ void ClockApplet::positionChange(Position p) void ClockApplet::updateDateLabel(bool reLayout) { _lastDate = clockGetDate(); - _dayOfWeek->setText(KGlobal::locale()->calendar()->weekDayName(_lastDate)); + _dayOfWeek->setText(TDEGlobal::locale()->calendar()->weekDayName(_lastDate)); if (zone->zoneIndex() != 0) { @@ -1704,7 +1704,7 @@ void ClockApplet::updateDateLabel(bool reLayout) } else { - TQString dateStr = KGlobal::locale()->formatDate(_lastDate, true); + TQString dateStr = TDEGlobal::locale()->formatDate(_lastDate, true); _date->setText(dateStr); _date->setShown(showDate); } @@ -1728,9 +1728,9 @@ void ClockApplet::updateKickerTip(KickerTip::Data& data) TQString activeZone = zone->zone(); if (zoneCount == 0) { - TQString _time = KGlobal::locale()->formatTime(clockGetTime(), + TQString _time = TDEGlobal::locale()->formatTime(clockGetTime(), _prefs->plainShowSeconds()); - TQString _date = KGlobal::locale()->formatDate(clockGetDate(), false); + TQString _date = TDEGlobal::locale()->formatDate(clockGetDate(), false); data.message = _time; data.subtext = _date; @@ -1754,9 +1754,9 @@ void ClockApplet::updateKickerTip(KickerTip::Data& data) m_zone = i18n(m_zone.utf8()); // ensure it gets translated } - TQString _time = KGlobal::locale()->formatTime(clockGetTime(), + TQString _time = TDEGlobal::locale()->formatTime(clockGetTime(), _prefs->plainShowSeconds()); - TQString _date = KGlobal::locale()->formatDate(clockGetDate(), false); + TQString _date = TDEGlobal::locale()->formatDate(clockGetDate(), false); if (activeIndex == i) { @@ -1840,11 +1840,11 @@ void ClockAppletToolTip::maybeTip( const TQPoint & /*point*/ ) (m_clock->type() == Prefs::EnumType::Analog) ) { // show full time (incl. hour) as tooltip for Fuzzy clock - tipText = KGlobal::locale()->formatDateTime(TQT_TQDATETIME_OBJECT(TQDateTime::currentDateTime().addSecs(m_clock->TZoffset))); + tipText = TDEGlobal::locale()->formatDateTime(TQT_TQDATETIME_OBJECT(TQDateTime::currentDateTime().addSecs(m_clock->TZoffset))); } else { - tipText = KGlobal::locale()->formatDate(m_clock->clockGetDate()); + tipText = TDEGlobal::locale()->formatDate(m_clock->clockGetDate()); } if (m_clock->timezones() && m_clock->timezones()->zoneIndex() > 0) diff --git a/kicker/applets/clock/clockapplet.kcfg b/kicker/applets/clock/clockapplet.kcfg index e5b461e1c..91c043336 100644 --- a/kicker/applets/clock/clockapplet.kcfg +++ b/kicker/applets/clock/clockapplet.kcfg @@ -29,7 +29,7 @@ <entry name="DateFont" type="Font" key="Font"> <label>Font for the clock.</label> <code> -TQFont defFont=KGlobalSettings::generalFont(); +TQFont defFont=TDEGlobalSettings::generalFont(); defFont.setPointSize(8); </code> <default code="true">defFont</default> @@ -55,7 +55,7 @@ defFont.setPointSize(8); <entry name="PlainFont" type="Font" key="Font"> <label>Font for the clock.</label> <code> -defFont=KGlobalSettings::generalFont(); +defFont=TDEGlobalSettings::generalFont(); defFont.setPointSize(8); defFont.setBold(true); </code> @@ -162,7 +162,7 @@ defFont.setBold(true); <entry name="FuzzyFont" type="Font" key="Font"> <label>Font for the clock.</label> <code> -defFont=KGlobalSettings::generalFont(); +defFont=TDEGlobalSettings::generalFont(); </code> <default code="true">defFont</default> </entry> diff --git a/kicker/applets/clock/init.cpp b/kicker/applets/clock/init.cpp index a21a62757..9b89da87d 100644 --- a/kicker/applets/clock/init.cpp +++ b/kicker/applets/clock/init.cpp @@ -70,8 +70,8 @@ extern "C" { KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile) { - KGlobal::locale()->insertCatalogue("clockapplet"); - KGlobal::locale()->insertCatalogue("timezones"); // For time zone translations + TDEGlobal::locale()->insertCatalogue("clockapplet"); + TDEGlobal::locale()->insertCatalogue("timezones"); // For time zone translations return new ClockApplet(configFile, KPanelApplet::Normal, KPanelApplet::Preferences, parent, "clockapplet"); } |