Drop TQT_TQ*_OBJECT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/218/head
Michele Calgaro 1 year ago
parent 29b84bd0b1
commit c0b74ba868
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -75,8 +75,8 @@ bool TemplateInterface::expandMacros( TQMap<TQString, TQString> &map, TQWidget *
TDEABC::StdAddressBook *addrBook = 0; TDEABC::StdAddressBook *addrBook = 0;
TDEABC::Addressee userAddress; TDEABC::Addressee userAddress;
TQDateTime datetime = TQDateTime::currentDateTime(); TQDateTime datetime = TQDateTime::currentDateTime();
TQDate date = TQT_TQDATE_OBJECT(datetime.date()); TQDate date = datetime.date();
TQTime time = TQT_TQTIME_OBJECT(datetime.time()); TQTime time = datetime.time();
TQMap<TQString,TQString>::Iterator it; TQMap<TQString,TQString>::Iterator it;
for ( it = map.begin(); it != map.end(); ++it ) for ( it = map.begin(); it != map.end(); ++it )

@ -4964,7 +4964,7 @@ bool KateDocument::createDigest( TQCString &result )
if ( f.open( IO_ReadOnly) ) if ( f.open( IO_ReadOnly) )
{ {
KMD5 md5; KMD5 md5;
ret = md5.update( TQT_TQIODEVICE_OBJECT(f) ); ret = md5.update( f );
md5.hexDigest( result ); md5.hexDigest( result );
f.close(); f.close();
ret = true; ret = true;

@ -192,9 +192,9 @@ bool KatePrinter::print (KateDocument *doc)
tags["d"] = TDEGlobal::locale()->formatDateTime(dt, true, false); tags["d"] = TDEGlobal::locale()->formatDateTime(dt, true, false);
tags["D"] = TDEGlobal::locale()->formatDateTime(dt, false, false); tags["D"] = TDEGlobal::locale()->formatDateTime(dt, false, false);
tags["h"] = TDEGlobal::locale()->formatTime(TQT_TQTIME_OBJECT(dt.time()), false); tags["h"] = TDEGlobal::locale()->formatTime(dt.time(), false);
tags["y"] = TDEGlobal::locale()->formatDate(TQT_TQDATE_OBJECT(dt.date()), true); tags["y"] = TDEGlobal::locale()->formatDate(dt.date(), true);
tags["Y"] = TDEGlobal::locale()->formatDate(TQT_TQDATE_OBJECT(dt.date()), false); tags["Y"] = TDEGlobal::locale()->formatDate(dt.date(), false);
tags["f"] = doc->url().fileName(); tags["f"] = doc->url().fileName();
tags["U"] = doc->url().prettyURL(); tags["U"] = doc->url().prettyURL();
if ( selectionOnly ) if ( selectionOnly )

@ -152,7 +152,7 @@ bool LDIFConverter::addresseeToLDIF( const Addressee &addr, TQString &str )
ldif_out( t, "homeurl", addr.url().prettyURL() ); ldif_out( t, "homeurl", addr.url().prettyURL() );
ldif_out( t, "description", addr.note() ); ldif_out( t, "description", addr.note() );
if (addr.revision().isValid()) if (addr.revision().isValid())
ldif_out(t, "modifytimestamp", dateToVCardString( TQT_TQDATETIME_OBJECT(addr.revision())) ); ldif_out(t, "modifytimestamp", dateToVCardString( addr.revision()) );
t << "objectclass: top\n"; t << "objectclass: top\n";
t << "objectclass: person\n"; t << "objectclass: person\n";

@ -362,7 +362,7 @@ bool Field::setValue( TDEABC::Addressee &a, const TQString &value )
return true; return true;
} }
case FieldImpl::Birthday: case FieldImpl::Birthday:
a.setBirthday( TQT_TQDATE_OBJECT(TQDate::fromString( value, Qt::ISODate )) ); a.setBirthday( TQDate::fromString( value, Qt::ISODate ) );
return true; return true;
case FieldImpl::CustomField: case FieldImpl::CustomField:
a.insertCustom( mImpl->app(), mImpl->key(), value ); a.insertCustom( mImpl->app(), mImpl->key(), value );
@ -378,7 +378,7 @@ TQString Field::sortKey( const TDEABC::Addressee &a )
--CASEVALUE-- --CASEVALUE--
case FieldImpl::Birthday: case FieldImpl::Birthday:
if ( a.birthday().isValid() ) { if ( a.birthday().isValid() ) {
TQDate date = TQT_TQDATE_OBJECT(a.birthday().date()); TQDate date = a.birthday().date();
TQString key; TQString key;
key.sprintf( "%02d-%02d", date.month(), date.day() ); key.sprintf( "%02d-%02d", date.month(), date.day() );
return key; return key;

@ -331,8 +331,8 @@ void VCardFormatImpl::saveAddressee( const Addressee &addressee, VCARD::VCard *v
addTextValue( v, EntityCategories, addressee.categories().join(",") ); addTextValue( v, EntityCategories, addressee.categories().join(",") );
addDateValue( v, EntityBirthday, TQT_TQDATE_OBJECT(addressee.birthday().date()) ); addDateValue( v, EntityBirthday, addressee.birthday().date() );
addDateTimeValue( v, EntityRevision, TQT_TQDATETIME_OBJECT(addressee.revision()) ); addDateTimeValue( v, EntityRevision, addressee.revision() );
addGeoValue( v, addressee.geo() ); addGeoValue( v, addressee.geo() );
addUTCValue( v, addressee.timeZone() ); addUTCValue( v, addressee.timeZone() );

@ -139,7 +139,7 @@ TQString VCardTool::createVCards( Addressee::List list, VCard::Version version )
card.addLine( createAgent( version, (*addrIt).agent() ) ); card.addLine( createAgent( version, (*addrIt).agent() ) );
// BDAY // BDAY
card.addLine( VCardLine( "BDAY", createDateTime( TQT_TQDATETIME_OBJECT((*addrIt).birthday()) ) ) ); card.addLine( VCardLine( "BDAY", createDateTime( (*addrIt).birthday()) ) ) );
// CATEGORIES // CATEGORIES
if ( version == VCard::v3_0 ) { if ( version == VCard::v3_0 ) {
@ -262,7 +262,7 @@ TQString VCardTool::createVCards( Addressee::List list, VCard::Version version )
card.addLine( VCardLine( "PRODID", TQString((*addrIt).productId()) ) ); card.addLine( VCardLine( "PRODID", TQString((*addrIt).productId()) ) );
// REV // REV
card.addLine( VCardLine( "REV", createDateTime( TQT_TQDATETIME_OBJECT((*addrIt).revision()) ) ) ); card.addLine( VCardLine( "REV", createDateTime( (*addrIt).revision()) ) ) );
// ROLE // ROLE
VCardLine roleLine( "ROLE", TQString((*addrIt).role()) ); VCardLine roleLine( "ROLE", TQString((*addrIt).role()) );

@ -58,7 +58,7 @@ int KCalendarSystemGregorian::weeksInYear(int year) const
// If the last day of the year is in the first week, we have to check the // If the last day of the year is in the first week, we have to check the
// week before // week before
if ( temp.weekNumber() == 1 ) if ( temp.weekNumber() == 1 )
temp = TQT_TQDATE_OBJECT(temp.addDays(-7)); temp = temp.addDays(-7);
return temp.weekNumber(); return temp.weekNumber();
} }
@ -221,17 +221,17 @@ bool KCalendarSystemGregorian::setYMD(TQDate & date, int y, int m, int d) const
TQDate KCalendarSystemGregorian::addYears(const TQDate & date, int nyears) const TQDate KCalendarSystemGregorian::addYears(const TQDate & date, int nyears) const
{ {
return TQT_TQDATE_OBJECT(date.addYears(nyears)); return date.addYears(nyears);
} }
TQDate KCalendarSystemGregorian::addMonths(const TQDate & date, int nmonths) const TQDate KCalendarSystemGregorian::addMonths(const TQDate & date, int nmonths) const
{ {
return TQT_TQDATE_OBJECT(date.addMonths(nmonths)); return date.addMonths(nmonths);
} }
TQDate KCalendarSystemGregorian::addDays(const TQDate & date, int ndays) const TQDate KCalendarSystemGregorian::addDays(const TQDate & date, int ndays) const
{ {
return TQT_TQDATE_OBJECT(date.addDays(ndays)); return date.addDays(ndays);
} }
TQString KCalendarSystemGregorian::weekDayName(int col, bool shortName) const TQString KCalendarSystemGregorian::weekDayName(int col, bool shortName) const

@ -306,7 +306,7 @@ int KCalendarSystemHebrew::weeksInYear(int year) const
int nWeekNumber = weekNumber(temp); int nWeekNumber = weekNumber(temp);
if(nWeekNumber == 1) // last week belongs to next year if(nWeekNumber == 1) // last week belongs to next year
{ {
temp = TQT_TQDATE_OBJECT(temp.addDays(-7)); temp = temp.addDays(-7);
nWeekNumber = weekNumber(temp); nWeekNumber = weekNumber(temp);
} }
@ -574,7 +574,7 @@ int KCalendarSystemHebrew::weekDayOfPray() const
// Ok // Ok
TQDate KCalendarSystemHebrew::addDays( const TQDate & date, int ndays ) const TQDate KCalendarSystemHebrew::addDays( const TQDate & date, int ndays ) const
{ {
return TQT_TQDATE_OBJECT(date.addDays( ndays )); return date.addDays( ndays );
} }
// Ok // Ok

@ -539,7 +539,7 @@ int KCalendarSystemHijri::weekDayOfPray() const
TQDate KCalendarSystemHijri::addDays( const TQDate & date, int ndays ) const TQDate KCalendarSystemHijri::addDays( const TQDate & date, int ndays ) const
{ {
return TQT_TQDATE_OBJECT(date.addDays( ndays )); return date.addDays( ndays );
} }
TQDate KCalendarSystemHijri::addMonths( const TQDate & date, int nmonths ) const TQDate KCalendarSystemHijri::addMonths( const TQDate & date, int nmonths ) const

@ -304,7 +304,7 @@ TQDate KCalendarSystemJalali::addMonths( const TQDate & date, int nmonths ) cons
TQDate KCalendarSystemJalali::addDays( const TQDate & date, int ndays ) const TQDate KCalendarSystemJalali::addDays( const TQDate & date, int ndays ) const
{ {
return TQT_TQDATE_OBJECT(date.addDays( ndays )); return date.addDays( ndays );
} }
int KCalendarSystemJalali::monthsInYear( const TQDate & date ) const int KCalendarSystemJalali::monthsInYear( const TQDate & date ) const

@ -507,7 +507,7 @@ const KTimezone *KTimezones::local()
// Compute the MD5 sum of /etc/localtime. // Compute the MD5 sum of /etc/localtime.
KMD5 context(""); KMD5 context("");
context.reset(); context.reset();
context.update(TQT_TQIODEVICE_OBJECT(f)); context.update(f);
TQIODevice::Offset referenceSize = f.size(); TQIODevice::Offset referenceSize = f.size();
TQString referenceMd5Sum = context.hexDigest(); TQString referenceMd5Sum = context.hexDigest();
f.close(); f.close();
@ -526,7 +526,7 @@ const KTimezone *KTimezones::local()
{ {
// Only do the heavy lifting for file sizes which match. // Only do the heavy lifting for file sizes which match.
context.reset(); context.reset();
context.update(TQT_TQIODEVICE_OBJECT(f)); context.update(f);
candidateMd5Sum = context.hexDigest(); candidateMd5Sum = context.hexDigest();
} }
f.close(); f.close();

@ -1389,7 +1389,7 @@ void TDEApplication::propagateSessionManager()
bool check = smEnv.isEmpty(); bool check = smEnv.isEmpty();
if ( !check && smModificationTime ) { if ( !check && smModificationTime ) {
TQFileInfo info( fName ); TQFileInfo info( fName );
TQTime current = TQT_TQTIME_OBJECT(info.lastModified().time()); TQTime current = info.lastModified().time();
check = current > *smModificationTime; check = current > *smModificationTime;
} }
if ( check ) { if ( check ) {
@ -1398,7 +1398,7 @@ void TDEApplication::propagateSessionManager()
if ( !f.open( IO_ReadOnly ) ) if ( !f.open( IO_ReadOnly ) )
return; return;
TQFileInfo info ( f ); TQFileInfo info ( f );
smModificationTime = new TQTime( TQT_TQTIME_OBJECT(info.lastModified().time()) ); smModificationTime = new TQTime( info.lastModified().time() );
TQTextStream t(&f); TQTextStream t(&f);
t.setEncoding( TQTextStream::Latin1 ); t.setEncoding( TQTextStream::Latin1 );
TQString s = t.readLine(); TQString s = t.readLine();

@ -435,7 +435,7 @@ TQVariant TDEConfigBase::readPropertyEntry( const char *pKey,
case TQVariant::DateTime: case TQVariant::DateTime:
return TQVariant( readDateTimeEntry( pKey, &tmp.asDateTime() ) ); return TQVariant( readDateTimeEntry( pKey, &tmp.asDateTime() ) );
case TQVariant::Date: case TQVariant::Date:
return TQVariant(TQT_TQDATE_OBJECT(readDateTimeEntry( pKey, &tmp.asDateTime() ).date())); return TQVariant(readDateTimeEntry( pKey, &tmp.asDateTime() ).date());
case TQVariant::Pixmap: case TQVariant::Pixmap:
case TQVariant::Image: case TQVariant::Image:
@ -1757,8 +1757,8 @@ void TDEConfigBase::writeEntry( const char *pKey, const TQDateTime& rDateTime,
TQStrList list; TQStrList list;
TQCString tempstr; TQCString tempstr;
TQTime time = TQT_TQTIME_OBJECT(rDateTime.time()); TQTime time = rDateTime.time();
TQDate date = TQT_TQDATE_OBJECT(rDateTime.date()); TQDate date = rDateTime.date();
list.insert( 0, tempstr.setNum( date.year() ) ); list.insert( 0, tempstr.setNum( date.year() ) );
list.insert( 1, tempstr.setNum( date.month() ) ); list.insert( 1, tempstr.setNum( date.month() ) );

@ -1969,8 +1969,8 @@ TQString TDELocale::formatDateTime(const TQDateTime &pDateTime,
bool includeSeconds) const bool includeSeconds) const
{ {
return translate("concatenation of dates and time", "%1 %2") return translate("concatenation of dates and time", "%1 %2")
.arg( formatDate( TQT_TQDATE_OBJECT(pDateTime.date()), shortFormat ) ) .arg( formatDate( pDateTime.date(), shortFormat ) )
.arg( formatTime( TQT_TQTIME_OBJECT(pDateTime.time()), includeSeconds ) ); .arg( formatTime( pDateTime.time(), includeSeconds ) );
} }
TQString i18n(const char* text) TQString i18n(const char* text)

@ -2304,16 +2304,16 @@ void WindowQObject::timerEvent(TQTimerEvent *)
DateTimeMS DateTimeMS::addMSecs(int s) const DateTimeMS DateTimeMS::addMSecs(int s) const
{ {
DateTimeMS c = *this; DateTimeMS c = *this;
c.mTime = TQT_TQTIME_OBJECT(mTime.addMSecs(s)); c.mTime = mTime.addMSecs(s);
if (s > 0) if (s > 0)
{ {
if (c.mTime < mTime) if (c.mTime < mTime)
c.mDate = TQT_TQDATE_OBJECT(mDate.addDays(1)); c.mDate = mDate.addDays(1);
} }
else else
{ {
if (c.mTime > mTime) if (c.mTime > mTime)
c.mDate = TQT_TQDATE_OBJECT(mDate.addDays(-1)); c.mDate = mDate.addDays(-1);
} }
return c; return c;
} }

@ -334,7 +334,7 @@ void InlineTextBox::paintShadow(TQPainter *pt, const Font *f, int _tx, int _ty,
m_reversed ? TQPainter::RTL : TQPainter::LTR); m_reversed ? TQPainter::RTL : TQPainter::LTR);
p.end(); p.end();
TQImage img = TQT_TQIMAGE_OBJECT(pixmap.convertToImage()).convertDepth(32); TQImage img = pixmap.convertToImage().convertDepth(32);
int md = thickness*thickness; // max-dist^2 int md = thickness*thickness; // max-dist^2

@ -286,7 +286,7 @@ KSSLCNode *node;
if ( !node->permanent ) { if ( !node->permanent ) {
node->expires = TQDateTime::currentDateTime(); node->expires = TQDateTime::currentDateTime();
// FIXME: make this configurable // FIXME: make this configurable
node->expires = TQT_TQDATETIME_OBJECT(node->expires.addSecs(5)); node->expires = node->expires.addSecs(5);
} else { } else {
node->expires = node->cert->getQDTNotAfter(); // set to certs expiry date node->expires = node->cert->getQDTNotAfter(); // set to certs expiry date
} }
@ -309,7 +309,7 @@ KSSLCNode *node;
if (!permanent) { if (!permanent) {
n->expires = TQDateTime::currentDateTime(); n->expires = TQDateTime::currentDateTime();
n->expires = TQT_TQDATETIME_OBJECT(n->expires.addSecs(5)); n->expires = n->expires.addSecs(5);
} else { } else {
if ( !n->expires.isValid() ) if ( !n->expires.isValid() )
n->expires = n->cert->getQDTNotAfter(); // set to certs expiry date n->expires = n->cert->getQDTNotAfter(); // set to certs expiry date

@ -569,7 +569,7 @@ void FileProtocol::put( const KURL& url, int _mode, bool _overwrite, bool _resum
// set modification time // set modification time
const TQString mtimeStr = metaData( "modified" ); const TQString mtimeStr = metaData( "modified" );
if ( !mtimeStr.isEmpty() ) { if ( !mtimeStr.isEmpty() ) {
TQDateTime dt = TQT_TQDATETIME_OBJECT(TQDateTime::fromString( mtimeStr, Qt::ISODate )); TQDateTime dt = TQDateTime::fromString( mtimeStr, Qt::ISODate );
if ( dt.isValid() ) { if ( dt.isValid() ) {
KDE_struct_stat dest_statbuf; KDE_struct_stat dest_statbuf;
if (KDE_stat( _dest_orig.data(), &dest_statbuf ) == 0) { if (KDE_stat( _dest_orig.data(), &dest_statbuf ) == 0) {

@ -439,7 +439,7 @@ int DownloadDialog::installStatus(Entry *entry)
if(datestring.isNull()) installed = 0; if(datestring.isNull()) installed = 0;
else else
{ {
date = TQT_TQDATE_OBJECT(TQDate::fromString(datestring, Qt::ISODate)); date = TQDate::fromString(datestring, Qt::ISODate);
if(!date.isValid()) installed = 0; if(!date.isValid()) installed = 0;
else if(date < entry->releaseDate()) installed = -1; else if(date < entry->releaseDate()) installed = -1;
else installed = 1; else installed = 1;

@ -332,7 +332,7 @@ void Entry::parseDomElement( const TQDomElement &element )
if ( e.tagName() == "version" ) setVersion( e.text().stripWhiteSpace() ); if ( e.tagName() == "version" ) setVersion( e.text().stripWhiteSpace() );
// if ( e.tagName() == "release" ) setRelease( e.text().toInt() ); // if ( e.tagName() == "release" ) setRelease( e.text().toInt() );
if ( e.tagName() == "created" ) { if ( e.tagName() == "created" ) {
TQDate date = TQT_TQDATE_OBJECT(TQDate::fromString( e.text().stripWhiteSpace(), Qt::ISODate )); TQDate date = TQDate::fromString( e.text().stripWhiteSpace(), Qt::ISODate );
setReleaseDate( date ); setReleaseDate( date );
} }
if ( e.tagName() == "smallpreviewpic1" ) { if ( e.tagName() == "smallpreviewpic1" ) {

@ -226,7 +226,7 @@ void Security::slotCheckValidity()
if (file.open(IO_ReadOnly)) if (file.open(IO_ReadOnly))
{ {
context.reset(); context.reset();
context.update(TQT_TQIODEVICE_OBJECT(file)); context.update(file);
md5sum = context.hexDigest(); md5sum = context.hexDigest();
file.close(); file.close();
} }
@ -298,7 +298,7 @@ void Security::slotSignFile()
if (file.open(IO_ReadOnly)) if (file.open(IO_ReadOnly))
{ {
context.reset(); context.reset();
context.update(TQT_TQIODEVICE_OBJECT(file)); context.update(file);
md5sum = context.hexDigest(); md5sum = context.hexDigest();
file.close(); file.close();
} }

@ -220,8 +220,8 @@ void KPSchedulePage::setOptions(const TQMap<TQString,TQString>& opts)
else if (t == "third-shift") item = 7; else if (t == "third-shift") item = 7;
else else
{ {
TQTime qt = TQT_TQTIME_OBJECT(TQTime::fromString(t)); TQTime qt = TQTime::fromString(t);
m_tedit->setTime(TQT_TQTIME_OBJECT(qt.addSecs(-3600 * m_gmtdiff))); m_tedit->setTime(qt.addSecs(-3600 * m_gmtdiff));
item = 8; item = 8;
} }

@ -827,7 +827,7 @@ void PlastikStyle::renderGradient(TQPainter *painter,
int r_w = result->rect().width(); int r_w = result->rect().width();
int r_h = result->rect().height(); int r_h = result->rect().height();
int r_x, r_y, r_x2, r_y2; int r_x, r_y, r_x2, r_y2;
TQT_TQRECT_OBJECT(result->rect()).coords(&r_x, &r_y, &r_x2, &r_y2); result->rect().coords(&r_x, &r_y, &r_x2, &r_y2);
int rDiff, gDiff, bDiff; int rDiff, gDiff, bDiff;
int rc, gc, bc; int rc, gc, bc;

@ -92,7 +92,7 @@ void KDatePicker::fillWeeksCombo(const TQDate &date)
// make sure that the week of the lastDay is always inserted: in Chinese calendar // make sure that the week of the lastDay is always inserted: in Chinese calendar
// system, this is not always the case // system, this is not always the case
if(day < lastDay && day.daysTo(lastDay) < 7 && calendar->weekNumber(day) != calendar->weekNumber(lastDay)) if(day < lastDay && day.daysTo(lastDay) < 7 && calendar->weekNumber(day) != calendar->weekNumber(lastDay))
day = TQT_TQDATE_OBJECT(lastDay.addDays(-7)); day = lastDay.addDays(-7);
} }
} }
@ -371,7 +371,7 @@ KDatePicker::selectMonthClicked()
int day = calendar->day(date); int day = calendar->day(date);
// ----- construct a valid date in this month: // ----- construct a valid date in this month:
calendar->setYMD(date, calendar->year(date), month, 1); calendar->setYMD(date, calendar->year(date), month, 1);
date = TQT_TQDATE_OBJECT(date.addDays(TQMIN(day, calendar->daysInMonth(date)) - 1)); date = date.addDays(TQMIN(day, calendar->daysInMonth(date)) - 1);
// ----- set this month // ----- set this month
setDate(date); setDate(date);
} }

@ -351,22 +351,22 @@ void KDateTable::previousMonth()
void KDateTable::beginningOfMonth() void KDateTable::beginningOfMonth()
{ {
setDate(TQT_TQDATE_OBJECT(date.addDays(1 - date.day()))); setDate(date.addDays(1 - date.day()));
} }
void KDateTable::endOfMonth() void KDateTable::endOfMonth()
{ {
setDate(TQT_TQDATE_OBJECT(date.addDays(date.daysInMonth() - date.day()))); setDate(date.addDays(date.daysInMonth() - date.day()));
} }
void KDateTable::beginningOfWeek() void KDateTable::beginningOfWeek()
{ {
setDate(TQT_TQDATE_OBJECT(date.addDays(1 - date.dayOfWeek()))); setDate(date.addDays(1 - date.dayOfWeek()));
} }
void KDateTable::endOfWeek() void KDateTable::endOfWeek()
{ {
setDate(TQT_TQDATE_OBJECT(date.addDays(7 - date.dayOfWeek()))); setDate(date.addDays(7 - date.dayOfWeek()));
} }
void void
@ -374,22 +374,22 @@ KDateTable::keyPressEvent( TQKeyEvent *e )
{ {
switch( e->key() ) { switch( e->key() ) {
case Key_Up: case Key_Up:
setDate(TQT_TQDATE_OBJECT(date.addDays(-7))); setDate(date.addDays(-7));
break; break;
case Key_Down: case Key_Down:
setDate(TQT_TQDATE_OBJECT(date.addDays(7))); setDate(date.addDays(7));
break; break;
case Key_Left: case Key_Left:
setDate(TQT_TQDATE_OBJECT(date.addDays(-1))); setDate(date.addDays(-1));
break; break;
case Key_Right: case Key_Right:
setDate(TQT_TQDATE_OBJECT(date.addDays(1))); setDate(date.addDays(1));
break; break;
case Key_Minus: case Key_Minus:
setDate(TQT_TQDATE_OBJECT(date.addDays(-1))); setDate(date.addDays(-1));
break; break;
case Key_Plus: case Key_Plus:
setDate(TQT_TQDATE_OBJECT(date.addDays(1))); setDate(date.addDays(1));
break; break;
case Key_N: case Key_N:
setDate(TQDate::currentDate()); setDate(TQDate::currentDate());
@ -447,7 +447,7 @@ KDateTable::setFontSize(int size)
void void
KDateTable::wheelEvent ( TQWheelEvent * e ) KDateTable::wheelEvent ( TQWheelEvent * e )
{ {
setDate(TQT_TQDATE_OBJECT(date.addMonths( -(int)(e->delta()/120)) )); setDate(date.addMonths( -(int)(e->delta()/120)) );
e->accept(); e->accept();
} }

@ -52,8 +52,8 @@ void KDateTimeWidget::init()
void KDateTimeWidget::setDateTime(const TQDateTime & datetime) void KDateTimeWidget::setDateTime(const TQDateTime & datetime)
{ {
d->dateWidget->setDate(TQT_TQDATE_OBJECT(datetime.date())); d->dateWidget->setDate(datetime.date());
d->timeWidget->setTime(TQT_TQTIME_OBJECT(datetime.time())); d->timeWidget->setTime(datetime.time());
} }
TQDateTime KDateTimeWidget::dateTime() const TQDateTime KDateTimeWidget::dateTime() const

Loading…
Cancel
Save