diff options
Diffstat (limited to 'karm/karm_part.cpp')
-rw-r--r-- | karm/karm_part.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/karm/karm_part.cpp b/karm/karm_part.cpp index 85259fe80..d8982e2eb 100644 --- a/karm/karm_part.cpp +++ b/karm/karm_part.cpp @@ -22,8 +22,8 @@ #include "mainwindow.h" karmPart::karmPart( TQWidget *tqparentWidget, const char *widgetName, - TQObject *parent, const char *name ) - : DCOPObject ( "KarmDCOPIface" ), KParts::ReadWritePart(parent, name), + TQObject *tqparent, const char *name ) + : DCOPObject ( "KarmDCOPIface" ), KParts::ReadWritePart(tqparent, name), _accel ( new KAccel( tqparentWidget ) ), _watcher ( new KAccelMenuWatch( _accel, tqparentWidget ) ) { @@ -312,7 +312,7 @@ void karmPart::setModified(bool modified) else save->setEnabled(false); - // in any event, we want our parent to do it's thing + // in any event, we want our tqparent to do it's thing ReadWritePart::setModified(modified); } @@ -333,7 +333,7 @@ bool karmPart::saveFile() if (isReadWrite() == false) return false; - // m_file is always local, so we use QFile + // m_file is always local, so we use TQFile TQFile file(m_file); if (file.open(IO_WriteOnly) == false) return false; @@ -388,11 +388,11 @@ karmPartFactory::~karmPartFactory() } KParts::Part* karmPartFactory::createPartObject( TQWidget *tqparentWidget, const char *widgetName, - TQObject *parent, const char *name, + TQObject *tqparent, const char *name, const char *classname, const TQStringList &args ) { // Create an instance of our Part - karmPart* obj = new karmPart( tqparentWidget, widgetName, parent, name ); + karmPart* obj = new karmPart( tqparentWidget, widgetName, tqparent, name ); // See if we are to be read-write or not if (TQCString(classname) == "KParts::ReadOnlyPart") @@ -509,11 +509,11 @@ TQString karmPart::setPerCentComplete( const TQString& taskName, int perCent ) if ((_taskView->item_at_index(i)->name()==taskName)) { index=i; - if (err==TQString::null) err="task name is abigious"; - if (err=="no such task") err=TQString::null; + if (err==TQString()) err="task name is abigious"; + if (err=="no such task") err=TQString(); } } - if (err==TQString::null) + if (err==TQString()) { _taskView->item_at_index(index)->setPercentComplete( perCent, _taskView->storage() ); } @@ -544,10 +544,10 @@ int karmPart::bookTime // Parse datetime if ( !rval ) { - startDate = TQDate::fromString( datetime, Qt::ISODate ); + startDate = TQDate::fromString( datetime, TQt::ISODate ); if ( datetime.length() > 10 ) // "YYYY-MM-DD".length() = 10 { - startTime = TQTime::fromString( datetime, Qt::ISODate ); + startTime = TQTime::fromString( datetime, TQt::ISODate ); } else startTime = TQTime( 12, 0 ); if ( startDate.isValid() && startTime.isValid() ) |