From 8155225c9be993acc0512956416d195edfef4eb9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 19 Jan 2011 01:42:14 +0000 Subject: Enable compilation with TQt for Qt4 3.4.0 TP2 This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kicker/applets/clock/analog.ui | 36 ++++----- kicker/applets/clock/clock.cpp | 136 +++++++++++++++++----------------- kicker/applets/clock/clock.h | 2 +- kicker/applets/clock/clockapplet.kcfg | 24 +++--- kicker/applets/clock/datepicker.cpp | 4 +- kicker/applets/clock/datepicker.h | 2 +- kicker/applets/clock/digital.ui | 32 ++++---- kicker/applets/clock/fuzzy.ui | 36 ++++----- kicker/applets/clock/settings.ui | 58 +++++++-------- kicker/applets/clock/zone.cpp | 6 +- 10 files changed, 168 insertions(+), 168 deletions(-) (limited to 'kicker/applets/clock') diff --git a/kicker/applets/clock/analog.ui b/kicker/applets/clock/analog.ui index 4a20312ec..ea0135ceb 100644 --- a/kicker/applets/clock/analog.ui +++ b/kicker/applets/clock/analog.ui @@ -1,6 +1,6 @@ AnalogWidget - + AnalogWidget @@ -19,7 +19,7 @@ 0 - + ButtonGroup2_3_2 @@ -30,7 +30,7 @@ unnamed - + kcfg_AnalogShowDate @@ -38,7 +38,7 @@ Dat&e - + kcfg_AnalogShowSeconds @@ -49,7 +49,7 @@ true - + kcfg_AnalogShowDayOfWeek @@ -57,7 +57,7 @@ Da&y of week - + kcfg_AnalogShowFrame @@ -75,7 +75,7 @@ Expanding - + 40 20 @@ -84,7 +84,7 @@ - + groupBox1 @@ -95,7 +95,7 @@ unnamed - + layout9 @@ -125,7 +125,7 @@ - + foregroundAnalogLabel @@ -149,14 +149,14 @@ Expanding - + 16 20 - + backgroundAnalogLabel @@ -181,7 +181,7 @@ - + shadowAnalogLabel @@ -197,7 +197,7 @@ - + TextLabel1_3 @@ -208,7 +208,7 @@ kcfg_AnalogAntialias - + None @@ -241,14 +241,14 @@ Expanding - + 310 20 - + kcfg_AnalogLCDStyle @@ -269,7 +269,7 @@ Expanding - + 20 50 diff --git a/kicker/applets/clock/clock.cpp b/kicker/applets/clock/clock.cpp index 26f1ae4c0..072bd6161 100644 --- a/kicker/applets/clock/clock.cpp +++ b/kicker/applets/clock/clock.cpp @@ -95,46 +95,46 @@ KConfigDialogSingle::KConfigDialogSingle(Zone *zone, TQWidget *parent, setIcon(SmallIcon("date")); settings = new SettingsWidgetImp(prefs, zone, 0, "General"); - connect(settings->kcfg_Type, TQT_SIGNAL(activated(int)), TQT_SLOT(selectPage(int))); + connect(TQT_TQOBJECT(settings->kcfg_Type), TQT_SIGNAL(activated(int)), TQT_SLOT(selectPage(int))); - settings->kcfg_PlainBackgroundColor->setDefaultColor(KApplication::palette().active().background()); - settings->kcfg_DateBackgroundColor->setDefaultColor(KApplication::palette().active().background()); + settings->kcfg_PlainBackgroundColor->setDefaultColor(KApplication::tqpalette().active().background()); + settings->kcfg_DateBackgroundColor->setDefaultColor(KApplication::tqpalette().active().background()); // Digital digitalPage = new DigitalWidget(0, "DigitalClock"); settings->widgetStack->addWidget(digitalPage, 1); - digitalPage->kcfg_DigitalBackgroundColor->setDefaultColor(KApplication::palette().active().background()); + digitalPage->kcfg_DigitalBackgroundColor->setDefaultColor(KApplication::tqpalette().active().background()); // Analog analogPage = new AnalogWidget(0, "AnalogClock"); settings->widgetStack->addWidget(analogPage, 2); - analogPage->kcfg_AnalogBackgroundColor->setDefaultColor(KApplication::palette().active().background()); + analogPage->kcfg_AnalogBackgroundColor->setDefaultColor(KApplication::tqpalette().active().background()); // Fuzzy fuzzyPage = new FuzzyWidget(0, "FuzzyClock"); settings->widgetStack->addWidget(fuzzyPage, 3); - fuzzyPage->kcfg_FuzzyBackgroundColor->setDefaultColor(KApplication::palette().active().background()); + fuzzyPage->kcfg_FuzzyBackgroundColor->setDefaultColor(KApplication::tqpalette().active().background()); - connect(settings->kcfg_PlainShowDate, TQT_SIGNAL(toggled(bool)), + connect(TQT_TQOBJECT(settings->kcfg_PlainShowDate), TQT_SIGNAL(toggled(bool)), TQT_SLOT(dateToggled())); - connect(settings->kcfg_PlainShowDayOfWeek, TQT_SIGNAL(toggled(bool)), + connect(TQT_TQOBJECT(settings->kcfg_PlainShowDayOfWeek), TQT_SIGNAL(toggled(bool)), TQT_SLOT(dateToggled())); - connect(digitalPage->kcfg_DigitalShowDate, TQT_SIGNAL(toggled(bool)), + connect(TQT_TQOBJECT(digitalPage->kcfg_DigitalShowDate), TQT_SIGNAL(toggled(bool)), TQT_SLOT(dateToggled())); - connect(digitalPage->kcfg_DigitalShowDayOfWeek, TQT_SIGNAL(toggled(bool)), + connect(TQT_TQOBJECT(digitalPage->kcfg_DigitalShowDayOfWeek), TQT_SIGNAL(toggled(bool)), TQT_SLOT(dateToggled())); - connect(digitalPage->kcfg_DigitalShowDate, TQT_SIGNAL(toggled(bool)), + connect(TQT_TQOBJECT(digitalPage->kcfg_DigitalShowDate), TQT_SIGNAL(toggled(bool)), TQT_SLOT(dateToggled())); - connect(analogPage->kcfg_AnalogShowDate, TQT_SIGNAL(toggled(bool)), + connect(TQT_TQOBJECT(analogPage->kcfg_AnalogShowDate), TQT_SIGNAL(toggled(bool)), TQT_SLOT(dateToggled())); - connect(analogPage->kcfg_AnalogShowDayOfWeek, TQT_SIGNAL(toggled(bool)), + connect(TQT_TQOBJECT(analogPage->kcfg_AnalogShowDayOfWeek), TQT_SIGNAL(toggled(bool)), TQT_SLOT(dateToggled())); - connect(fuzzyPage->kcfg_FuzzyShowDate, TQT_SIGNAL(toggled(bool)), + connect(TQT_TQOBJECT(fuzzyPage->kcfg_FuzzyShowDate), TQT_SIGNAL(toggled(bool)), TQT_SLOT(dateToggled())); - connect(fuzzyPage->kcfg_FuzzyShowDayOfWeek, TQT_SIGNAL(toggled(bool)), + connect(TQT_TQOBJECT(fuzzyPage->kcfg_FuzzyShowDayOfWeek), TQT_SIGNAL(toggled(bool)), TQT_SLOT(dateToggled())); - addPage(settings, i18n("General"), TQString::fromLatin1("package_settings")); + addPage(settings, i18n("General"), TQString::tqfromLatin1("package_settings")); } void KConfigDialogSingle::updateSettings() @@ -253,7 +253,7 @@ void PlainClock::updateClock() void PlainClock::loadSettings() { setFrameStyle(_prefs->plainShowFrame() ? Panel | Sunken : NoFrame); - setAlignment(AlignVCenter | AlignHCenter | SingleLine); + tqsetAlignment(AlignVCenter | AlignHCenter | SingleLine); setFont(_prefs->plainFont()); } @@ -397,7 +397,7 @@ void DigitalClock::paintEvent(TQPaintEvent*) p.drawTiledPixmap(0, 0, width(), height(), lcdPattern); } else if (_prefs->digitalBackgroundColor() != - KApplication::palette().active().background()) + KApplication::tqpalette().active().background()) { p.fillRect(0, 0, width(), height(), _prefs->digitalBackgroundColor()); } @@ -564,7 +564,7 @@ void AnalogClock::paintEvent( TQPaintEvent * ) paint.drawTiledPixmap(0, 0, spWidth, spHeight, lcdPattern); } - else if (_prefs->analogBackgroundColor() != KApplication::palette().active().background()) + else if (_prefs->analogBackgroundColor() != KApplication::tqpalette().active().background()) { _spPx->fill(_prefs->analogBackgroundColor()); } @@ -817,9 +817,9 @@ void FuzzyClock::drawContents(TQPainter *p) } newTimeStr = normalFuzzy[sector]; - int phStart = newTimeStr.find("%"); + int phStart = newTimeStr.tqfind("%"); if (phStart >= 0) { // protect yourself from translations - int phLength = newTimeStr.find(" ", phStart) - phStart; + int phLength = newTimeStr.tqfind(" ", phStart) - phStart; // larrosa: we want the exact length, in case the translation needs it, // in other case, we would cut off the end of the translation. @@ -832,13 +832,13 @@ void FuzzyClock::drawContents(TQPainter *p) realHour = 12 - ((_time.hour() + deltaHour) % 12 + 1); if (realHour==0) { newTimeStr = normalFuzzyOne[sector]; - phStart = newTimeStr.find("%"); + phStart = newTimeStr.tqfind("%"); // larrosa: Note that length is the same, // so we only have to update phStart } if (phStart >= 0) - newTimeStr.replace(phStart, phLength, hourNames[realHour]); - newTimeStr.replace(0, 1, TQString(newTimeStr.at(0).upper())); + newTimeStr.tqreplace(phStart, phLength, hourNames[realHour]); + newTimeStr.tqreplace(0, 1, TQString(newTimeStr.tqat(0).upper())); } } else if (_prefs->fuzzyness() == 3) { newTimeStr = dayTime[_time.hour() / 3]; @@ -865,7 +865,7 @@ void FuzzyClock::drawContents(TQPainter *p) TQRect tr; - if (_applet->getOrientation() == Vertical) + if (_applet->getOrientation() == Qt::Vertical) { p->rotate(90); tr = TQRect(4, -2, height() - 8, -(width()) + 2); @@ -919,12 +919,12 @@ ClockApplet::ClockApplet(const TQString& configFile, Type t, int actions, setBackgroundOrigin(AncestorOrigin); _dayOfWeek = new TQLabel(this); - _dayOfWeek->setAlignment(AlignVCenter | AlignHCenter | WordBreak); + _dayOfWeek->tqsetAlignment(AlignVCenter | AlignHCenter | WordBreak); _dayOfWeek->setBackgroundOrigin(AncestorOrigin); _dayOfWeek->installEventFilter(this); // catch mouse clicks _date = new TQLabel(this); - _date->setAlignment(AlignVCenter | AlignHCenter | WordBreak); + _date->tqsetAlignment(AlignVCenter | AlignHCenter | WordBreak); _date->setBackgroundOrigin(AncestorOrigin); _date->installEventFilter(this); // catch mouse clicks @@ -991,18 +991,18 @@ int ClockApplet::widthForHeight(int h) const bool mustShowDate = showDate || (zone->zoneIndex() != 0); if (mustShowDate) { - _date->setAlignment(AlignVCenter | AlignHCenter); + _date->tqsetAlignment(AlignVCenter | AlignHCenter); if (!dateToSide) { - shareDateHeight = _date->sizeHint().height(); + shareDateHeight = _date->tqsizeHint().height(); } } if (showDayOfWeek) { - _dayOfWeek->setAlignment(AlignVCenter | AlignHCenter); + _dayOfWeek->tqsetAlignment(AlignVCenter | AlignHCenter); if (!dateToSide) { - shareDayOfWeekHeight = _dayOfWeek->sizeHint().height(); + shareDayOfWeekHeight = _dayOfWeek->tqsizeHint().height(); } } @@ -1018,8 +1018,8 @@ int ClockApplet::widthForHeight(int h) const } else { - int dateWidth = mustShowDate ? _date->sizeHint().width() + 4 : 0; - int dayOfWeekWidth = showDayOfWeek ? _dayOfWeek->sizeHint().width() + 4 : 0; + int dateWidth = mustShowDate ? _date->tqsizeHint().width() + 4 : 0; + int dayOfWeekWidth = showDayOfWeek ? _dayOfWeek->tqsizeHint().width() + 4 : 0; if (dateToSide) { @@ -1075,13 +1075,13 @@ int ClockApplet::widthForHeight(int h) const _clock->widget()->move(0, 0); if (showDayOfWeek) { - _dayOfWeek->setFixedSize(w, _dayOfWeek->sizeHint().height()); + _dayOfWeek->setFixedSize(w, _dayOfWeek->tqsizeHint().height()); _dayOfWeek->move(0, _clock->widget()->height()); } if (mustShowDate) { - _date->setFixedSize(w, _date->sizeHint().height()); + _date->setFixedSize(w, _date->tqsizeHint().height()); _date->move(0, _clock->widget()->height() + shareDayOfWeekHeight); } } @@ -1105,16 +1105,16 @@ int ClockApplet::heightForWidth(int w) const // add 4 pixels in height for each of date+dayOfWeek, if visible if (showDayOfWeek) { - if (_dayOfWeek->minimumSizeHint().width() > w) + if (_dayOfWeek->tqminimumSizeHint().width() > w) { - _dayOfWeek->setAlignment(AlignVCenter | WordBreak); + _dayOfWeek->tqsetAlignment(AlignVCenter | WordBreak); } else { - _dayOfWeek->setAlignment(AlignVCenter | AlignHCenter | WordBreak); + _dayOfWeek->tqsetAlignment(AlignVCenter | AlignHCenter | WordBreak); } - _dayOfWeek->setFixedSize(w, _dayOfWeek->minimumSizeHint().height()); + _dayOfWeek->setFixedSize(w, _dayOfWeek->tqminimumSizeHint().height()); _dayOfWeek->move(0, clockHeight); clockHeight += _dayOfWeek->height(); @@ -1127,24 +1127,24 @@ int ClockApplet::heightForWidth(int w) const // display on panel that is too narrow and then they made it wider const_cast(this)->updateDateLabel(false); - if (_date->minimumSizeHint().width() > w) + if (_date->tqminimumSizeHint().width() > w) { TQString dateStr = _date->text(); // if we're too wide to fit, replace the first non-digit from the end with a space - int p = dateStr.findRev(TQRegExp("[^0-9]")); + int p = dateStr.tqfindRev(TQRegExp("[^0-9]")); if (p > 0) { _date->setText(dateStr.insert(p, '\n')); } } - if (_date->minimumSizeHint().width() > w) + if (_date->tqminimumSizeHint().width() > w) { - _date->setAlignment(AlignVCenter | WordBreak); + _date->tqsetAlignment(AlignVCenter | WordBreak); } else { - _date->setAlignment(AlignVCenter | AlignHCenter | WordBreak); + _date->tqsetAlignment(AlignVCenter | AlignHCenter | WordBreak); } _date->setFixedSize(w, _date->heightForWidth(w)); _date->move(0, clockHeight); @@ -1180,7 +1180,7 @@ void ClockApplet::preferences(bool timezone) void ClockApplet::updateFollowBackground() { - TQColor globalBgroundColor = KApplication::palette().active().background(); + TQColor globalBgroundColor = KApplication::tqpalette().active().background(); TQColor bgColor; switch (_prefs->type()) @@ -1283,7 +1283,7 @@ void ClockApplet::reconfigure() _clock->widget()->installEventFilter(this); // catch mouse clicks _clock->widget()->show(); - _clock->forceUpdate(); /* force repaint */ + _clock->forceUpdate(); /* force tqrepaint */ if (showDayOfWeek) { @@ -1317,7 +1317,7 @@ void ClockApplet::setTimerTo60() void ClockApplet::setBackground() { - TQColor globalBgroundColor = KApplication::palette().active().background(); + TQColor globalBgroundColor = KApplication::tqpalette().active().background(); TQColor fgColor, bgColor; if (!_clock) @@ -1382,7 +1382,7 @@ void ClockApplet::globalPaletteChange() if (!m_dateFollowBackgroundSetting && !m_followBackgroundSetting) return; - TQColor globalBgroundColor = KApplication::palette().active().background(); + TQColor globalBgroundColor = KApplication::tqpalette().active().background(); if (m_dateFollowBackgroundSetting) _prefs->setDateBackgroundColor(globalBgroundColor); @@ -1552,15 +1552,15 @@ void ClockApplet::aboutToShowContextMenu() menu->insertTitle( SmallIcon( "clock" ), i18n( "Clock" ) ); KLocale *loc = KGlobal::locale(); - TQDateTime dt = TQDateTime::currentDateTime(); - dt = dt.addSecs(TZoffset); + TQDateTime dt = TQDateTime::tqcurrentDateTime(); + dt = TQT_TQDATETIME_OBJECT(dt.addSecs(TZoffset)); KPopupMenu *copyMenu = new KPopupMenu( menu ); copyMenu->insertItem(loc->formatDateTime(dt), 201); - copyMenu->insertItem(loc->formatDate(dt.date()), 202); - copyMenu->insertItem(loc->formatDate(dt.date(), true), 203); - copyMenu->insertItem(loc->formatTime(dt.time()), 204); - copyMenu->insertItem(loc->formatTime(dt.time(), true), 205); + copyMenu->insertItem(loc->formatDate(TQT_TQDATE_OBJECT(dt.date())), 202); + copyMenu->insertItem(loc->formatDate(TQT_TQDATE_OBJECT(dt.date()), true), 203); + copyMenu->insertItem(loc->formatTime(TQT_TQTIME_OBJECT(dt.time())), 204); + copyMenu->insertItem(loc->formatTime(TQT_TQTIME_OBJECT(dt.time()), true), 205); copyMenu->insertItem(dt.date().toString(), 206); copyMenu->insertItem(dt.time().toString(), 207); copyMenu->insertItem(dt.toString(), 208); @@ -1579,7 +1579,7 @@ void ClockApplet::aboutToShowContextMenu() } else { - zoneMenu->insertItem(i18n(zone->zone(i).utf8()).replace("_", " "), 500 + i); + zoneMenu->insertItem(i18n(zone->zone(i).utf8()).tqreplace("_", " "), 500 + i); } } zoneMenu->setItemChecked(500 + zone->zoneIndex(),true); @@ -1621,12 +1621,12 @@ void ClockApplet::slotCopyMenuActivated( int id ) TQTime ClockApplet::clockGetTime() { - return TQTime::currentTime().addSecs(TZoffset); + return TQT_TQTIME_OBJECT(TQTime::currentTime().addSecs(TZoffset)); } TQDate ClockApplet::clockGetDate() { - return TQDateTime::currentDateTime().addSecs(TZoffset).date(); + return TQT_TQDATE_OBJECT(TQDateTime::tqcurrentDateTime().addSecs(TZoffset).date()); } void ClockApplet::showZone(int z) @@ -1634,7 +1634,7 @@ void ClockApplet::showZone(int z) zone->setZone(z); TZoffset = zone->calc_TZ_offset( zone->zone() ); updateDateLabel(); - _clock->forceUpdate(); /* force repaint */ + _clock->forceUpdate(); /* force tqrepaint */ } void ClockApplet::nextZone() @@ -1653,13 +1653,13 @@ void ClockApplet::mousePressEvent(TQMouseEvent *ev) { switch (ev->button()) { - case TQMouseEvent::LeftButton: + case Qt::LeftButton: toggleCalendar(); break; - case TQMouseEvent::RightButton: + case Qt::RightButton: openContextMenu(); break; - case TQMouseEvent::MidButton: + case Qt::MidButton: nextZone(); TQToolTip::remove(_clock->widget()); break; @@ -1686,10 +1686,10 @@ void ClockApplet::wheelEvent(TQWheelEvent* e) // catch the mouse clicks of our child widgets bool ClockApplet::eventFilter( TQObject *o, TQEvent *e ) { - if (( o == _clock->widget() || o == _date || o == _dayOfWeek) && + if (( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(_clock->widget()) || TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(_date) || TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(_dayOfWeek)) && e->type() == TQEvent::MouseButtonPress ) { - mousePressEvent(static_cast(e) ); + mousePressEvent(TQT_TQMOUSEEVENT(e) ); return true; } @@ -1710,7 +1710,7 @@ void ClockApplet::updateDateLabel(bool reLayout) if (zone->zoneIndex() != 0) { TQString zone_s = i18n(zone->zone().utf8()); - _date->setText(zone_s.mid(zone_s.find('/') + 1).replace("_", " ")); + _date->setText(zone_s.mid(zone_s.tqfind('/') + 1).tqreplace("_", " ")); _date->setShown(true); } else @@ -1748,7 +1748,7 @@ void ClockApplet::updateKickerTip(KickerTip::Data& data) if (!activeZone.isEmpty()) { activeZone = i18n(activeZone.utf8()); - data.subtext.append("
").append(activeZone.mid(activeZone.find('/') + 1).replace("_", " ")); + data.subtext.append("
").append(activeZone.mid(activeZone.tqfind('/') + 1).tqreplace("_", " ")); } } else @@ -1771,7 +1771,7 @@ void ClockApplet::updateKickerTip(KickerTip::Data& data) if (activeIndex == i) { - data.message = m_zone.mid(m_zone.find('/') + 1).replace("_", " "); + data.message = m_zone.mid(m_zone.tqfind('/') + 1).tqreplace("_", " "); data.message += " " + _time + "
" + _date; } else @@ -1782,7 +1782,7 @@ void ClockApplet::updateKickerTip(KickerTip::Data& data) } else { - data.subtext += "" + m_zone.mid(m_zone.find('/') + 1).replace("_", " ") + ""; + data.subtext += "" + m_zone.mid(m_zone.tqfind('/') + 1).tqreplace("_", " ") + ""; } data.subtext += " " + _time + ", " + _date + "
"; } @@ -1851,7 +1851,7 @@ 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(TQDateTime::currentDateTime().addSecs(m_clock->TZoffset)); + tipText = KGlobal::locale()->formatDateTime(TQT_TQDATETIME_OBJECT(TQDateTime::tqcurrentDateTime().addSecs(m_clock->TZoffset))); } else { diff --git a/kicker/applets/clock/clock.h b/kicker/applets/clock/clock.h index 144fb50c6..498ce4b9d 100644 --- a/kicker/applets/clock/clock.h +++ b/kicker/applets/clock/clock.h @@ -246,7 +246,7 @@ class FuzzyClock : public TQFrame, public ClockWidget bool alreadyDrawing; }; -class ClockAppletToolTip : public QToolTip +class ClockAppletToolTip : public TQToolTip { public: ClockAppletToolTip( ClockApplet* clock ); diff --git a/kicker/applets/clock/clockapplet.kcfg b/kicker/applets/clock/clockapplet.kcfg index fb38d6583..ed375d03a 100644 --- a/kicker/applets/clock/clockapplet.kcfg +++ b/kicker/applets/clock/clockapplet.kcfg @@ -20,11 +20,11 @@ - KApplication::palette().active().text() + KApplication::tqpalette().active().text() - KApplication::palette().active().background() + KApplication::tqpalette().active().background() @@ -63,11 +63,11 @@ defFont.setBold(true); - KApplication::palette().active().text() + KApplication::tqpalette().active().text() - KApplication::palette().active().background() + KApplication::tqpalette().active().background() @@ -89,15 +89,15 @@ defFont.setBold(true); - KApplication::palette().active().text() + KApplication::tqpalette().active().text() - KApplication::palette().active().background() + KApplication::tqpalette().active().background() - KApplication::palette().active().mid() + KApplication::tqpalette().active().mid() @@ -127,15 +127,15 @@ defFont.setBold(true); - KApplication::palette().active().text() + KApplication::tqpalette().active().text() - KApplication::palette().active().background() + KApplication::tqpalette().active().background() - KApplication::palette().active().mid() + KApplication::tqpalette().active().mid() @@ -168,11 +168,11 @@ defFont=KGlobalSettings::generalFont(); - KApplication::palette().active().text() + KApplication::tqpalette().active().text() - KApplication::palette().active().background() + KApplication::tqpalette().active().background() diff --git a/kicker/applets/clock/datepicker.cpp b/kicker/applets/clock/datepicker.cpp index 3864db556..3f5d5b4ed 100644 --- a/kicker/applets/clock/datepicker.cpp +++ b/kicker/applets/clock/datepicker.cpp @@ -33,9 +33,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. DatePicker::DatePicker(TQWidget *parent, const TQDate& date, Prefs* _prefs) : TQVBox( parent, 0, _prefs->calendarFullWindow() - ? (WType_TopLevel | WDestructiveClose | + ? (WFlags)(WType_TopLevel | WDestructiveClose | WStyle_StaysOnTop) - : (WStyle_Customize | WStyle_NoBorder | + : (WFlags)(WStyle_Customize | WStyle_NoBorder | WType_TopLevel | WDestructiveClose | WStyle_StaysOnTop) ), prefs(_prefs) diff --git a/kicker/applets/clock/datepicker.h b/kicker/applets/clock/datepicker.h index f2e8a3397..60ca765f7 100644 --- a/kicker/applets/clock/datepicker.h +++ b/kicker/applets/clock/datepicker.h @@ -30,7 +30,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. class KDatePicker; class Prefs; -class DatePicker : public QVBox +class DatePicker : public TQVBox { public: DatePicker(TQWidget*, const TQDate&, Prefs* _prefs); diff --git a/kicker/applets/clock/digital.ui b/kicker/applets/clock/digital.ui index 256bca99b..ab90a6438 100644 --- a/kicker/applets/clock/digital.ui +++ b/kicker/applets/clock/digital.ui @@ -1,6 +1,6 @@ DigitalWidget - + DigitalWidget @@ -19,7 +19,7 @@ 0 - + ButtonGroup2_3 @@ -30,7 +30,7 @@ unnamed - + kcfg_DigitalShowDate @@ -41,7 +41,7 @@ true
- + kcfg_DigitalShowSeconds @@ -49,7 +49,7 @@ Seco&nds
- + kcfg_DigitalShowDayOfWeek @@ -57,7 +57,7 @@ Da&y of week - + kcfg_DigitalBlink @@ -65,7 +65,7 @@ Blin&king dots - + kcfg_DigitalShowFrame @@ -83,7 +83,7 @@ Expanding - + 20 20 @@ -92,7 +92,7 @@ - + groupBox1 @@ -103,7 +103,7 @@ unnamed - + kcfg_DigitalLCDStyle @@ -114,7 +114,7 @@ false - + layout14 @@ -122,7 +122,7 @@ unnamed - + Foreground_ColorL @@ -147,7 +147,7 @@ - + backgroundDigitalLabel @@ -193,14 +193,14 @@ Expanding - + 110 20 - + Shadow_ColorL @@ -226,7 +226,7 @@ Expanding - + 20 20 diff --git a/kicker/applets/clock/fuzzy.ui b/kicker/applets/clock/fuzzy.ui index 04e910340..ebe6af9fc 100644 --- a/kicker/applets/clock/fuzzy.ui +++ b/kicker/applets/clock/fuzzy.ui @@ -1,6 +1,6 @@ FuzzyWidget - + FuzzyWidget @@ -19,7 +19,7 @@ 0 - + GroupBox1 @@ -42,7 +42,7 @@ 6 - + kcfg_FuzzyShowDate @@ -53,7 +53,7 @@ true - + kcfg_FuzzyShowDayOfWeek @@ -61,7 +61,7 @@ Da&y of week - + kcfg_FuzzyShowFrame @@ -79,7 +79,7 @@ Expanding - + 40 20 @@ -88,7 +88,7 @@ - + groupBox2 @@ -109,14 +109,14 @@ Expanding - + 20 30 - + textLabel1 @@ -124,7 +124,7 @@ Font: - + layout11 @@ -132,7 +132,7 @@ unnamed - + TextLabel1_2_3_4_3 @@ -153,14 +153,14 @@ Expanding - + 51 20 - + TextLabel1_4_3_2 @@ -189,7 +189,7 @@ - + Layout7_3 @@ -197,7 +197,7 @@ unnamed - + TextLabel4_3 @@ -205,7 +205,7 @@ Low - + kcfg_Fuzzyness @@ -231,7 +231,7 @@ 1 - + TextLabel5_3 @@ -241,7 +241,7 @@ - + TextLabel3_3 diff --git a/kicker/applets/clock/settings.ui b/kicker/applets/clock/settings.ui index 215aa5433..53e9c80cd 100644 --- a/kicker/applets/clock/settings.ui +++ b/kicker/applets/clock/settings.ui @@ -1,6 +1,6 @@ SettingsWidget - + SettingsWidget @@ -19,11 +19,11 @@ 0 - + tabs - + tab @@ -34,7 +34,7 @@ unnamed - + layout14 @@ -42,7 +42,7 @@ unnamed - + TextLabel1 @@ -59,7 +59,7 @@ clockCombo - + Plain Clock @@ -102,7 +102,7 @@ Expanding - + 20 20 @@ -111,14 +111,14 @@ - + widgetStack 0 - + page @@ -132,7 +132,7 @@ 0 - + ButtonGroup2_3_2_2 @@ -143,7 +143,7 @@ unnamed - + kcfg_PlainShowDate @@ -154,7 +154,7 @@ true - + kcfg_PlainShowSeconds @@ -162,7 +162,7 @@ &Seconds - + kcfg_PlainShowDayOfWeek @@ -170,7 +170,7 @@ Da&y of week - + kcfg_PlainShowFrame @@ -188,7 +188,7 @@ Expanding - + 20 20 @@ -197,7 +197,7 @@ - + groupBox2 @@ -208,7 +208,7 @@ unnamed - + TextLabel1_3_3_2 @@ -224,7 +224,7 @@ Font: - + TextLabel1_2_3_4_3_2 @@ -260,7 +260,7 @@ - + TextLabel1_4_3_2_2 @@ -284,7 +284,7 @@ Expanding - + 230 20 @@ -306,7 +306,7 @@ Expanding - + 20 20 @@ -318,7 +318,7 @@ - + dateBox @@ -337,7 +337,7 @@ - + textLabel1_3 @@ -353,7 +353,7 @@ - + textLabel2 @@ -371,14 +371,14 @@ Expanding - + 343 20 - + layout2 @@ -386,7 +386,7 @@ unnamed - + textLabel4 @@ -421,7 +421,7 @@ Expanding - + 20 100 @@ -430,7 +430,7 @@ - + tab diff --git a/kicker/applets/clock/zone.cpp b/kicker/applets/clock/zone.cpp index 320d84b4c..48cce1ccb 100644 --- a/kicker/applets/clock/zone.cpp +++ b/kicker/applets/clock/zone.cpp @@ -105,7 +105,7 @@ void Zone::readZoneList(KListView *listView ) if (!comment.isEmpty()) comment = i18n(comment.utf8()); - const TQStringList KontCity = TQStringList::split("/", i18n(tzName.utf8()).replace("_", " ")); + const TQStringList KontCity = TQStringList::split("/", i18n(tzName.utf8()).tqreplace("_", " ")); TQListViewItem* Kontinent = KontinentMap[KontCity[0]]; if (!Kontinent) { KontinentMap[KontCity[0]] = new TQListViewItem(listView, KontCity[0]); @@ -117,7 +117,7 @@ void Zone::readZoneList(KListView *listView ) li->setText(1, comment); li->setText(2, tzName); /* store complete path in ListView */ - if (_remotezonelist.findIndex(tzName) != -1) + if (_remotezonelist.tqfindIndex(tzName) != -1) li->setOn(true); // locate the flag from /l10n/%1/flag.png @@ -151,7 +151,7 @@ void Zone::getSelectedZonelist(KListView *listView) root = root->nextSibling(); continue; } - root = root->parent(); + root = root->tqparent(); if (root) root = root->nextSibling(); } -- cgit v1.2.3