diff options
Diffstat (limited to 'lib/kotext/KoVariable.cpp')
| -rw-r--r-- | lib/kotext/KoVariable.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kotext/KoVariable.cpp b/lib/kotext/KoVariable.cpp index fa1b03feb..4b744faf7 100644 --- a/lib/kotext/KoVariable.cpp +++ b/lib/kotext/KoVariable.cpp @@ -1211,7 +1211,7 @@ void KoDateVariable::resize()  void KoDateVariable::recalc()  {      if ( m_subtype == VST_DATE_CURRENT ) -        m_varValue = TQDateTime(TQDateTime::tqcurrentDateTime().addDays(m_correctDate)); +        m_varValue = TQDateTime(TQDateTime::currentDateTime().addDays(m_correctDate));      else if ( m_subtype == VST_DATE_LAST_PRINTING )          m_varValue = m_varColl->variableSetting()->lastPrintingDate();      else if ( m_subtype == VST_DATE_CREATE_FILE ) @@ -1222,7 +1222,7 @@ void KoDateVariable::recalc()      {          // Only if never set before (i.e. upon insertion)          if ( m_varValue.isNull() ) -            m_varValue = TQDateTime(TQDateTime::tqcurrentDateTime().addDays(m_correctDate)); +            m_varValue = TQDateTime(TQDateTime::currentDateTime().addDays(m_correctDate));      }      resize();  } @@ -2505,7 +2505,7 @@ void KoLinkVariable::drawCustomItem( TQPainter* p, int x, int y, int wpix, int h  /******************************************************************/  KoNoteVariable::KoNoteVariable( KoTextDocument *textdoc, const TQString & _note,KoVariableFormat *varFormat,KoVariableCollection *_varColl )      : KoVariable( textdoc, varFormat,_varColl ) -    , m_createdNoteDate( TQDate::tqcurrentDate() ) +    , m_createdNoteDate( TQDate::currentDate() )  {      m_varValue = TQVariant( _note );  }  | 
