summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoCommentDia.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kotext/KoCommentDia.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kotext/KoCommentDia.cpp')
-rw-r--r--lib/kotext/KoCommentDia.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/kotext/KoCommentDia.cpp b/lib/kotext/KoCommentDia.cpp
index 7e0570c0..1e264012 100644
--- a/lib/kotext/KoCommentDia.cpp
+++ b/lib/kotext/KoCommentDia.cpp
@@ -18,35 +18,35 @@
*/
#include <klocale.h>
-#include <qvbox.h>
-#include <qmultilineedit.h>
+#include <tqvbox.h>
+#include <tqmultilineedit.h>
#include "KoCommentDia.h"
-#include <qlayout.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
#include <kglobal.h>
-#include <qdatetime.h>
-#include <qlabel.h>
+#include <tqdatetime.h>
+#include <tqlabel.h>
#include <kdebug.h>
-KoCommentDia::KoCommentDia( QWidget *parent, const QString &_note, const QString & _authorName, const QString &_createNote, const char *name )
- : KDialogBase( parent, name , true, "", Ok|Cancel, Ok, true )
+KoCommentDia::KoCommentDia( TQWidget *tqparent, const TQString &_note, const TQString & _authorName, const TQString &_createNote, const char *name )
+ : KDialogBase( tqparent, name , true, "", Ok|Cancel, Ok, true )
{
setCaption( i18n("Edit Comment") );
authorName = _authorName;
- QVBox *page = makeVBoxMainWidget();
+ TQVBox *page = makeVBoxMainWidget();
kdDebug()<<"_createNote :"<<_createNote<<endl;
if ( !_createNote.isEmpty() )
- new QLabel( _createNote, page );
+ new TQLabel( _createNote, page );
- m_multiLine = new QMultiLineEdit( page );
+ m_multiLine = new TQMultiLineEdit( page );
m_multiLine->setText( _note );
m_multiLine->setFocus();
- pbAddAuthorName = new QPushButton(i18n("Add Author Name"),page);
+ pbAddAuthorName = new TQPushButton(i18n("Add Author Name"),page);
if ( authorName.isEmpty() )
pbAddAuthorName->setEnabled( false );
else
- connect (pbAddAuthorName, SIGNAL(clicked ()), this , SLOT(slotAddAuthorName()));
- connect ( m_multiLine , SIGNAL( textChanged()), this, SLOT( slotTextChanged( )));
+ connect (pbAddAuthorName, TQT_SIGNAL(clicked ()), this , TQT_SLOT(slotAddAuthorName()));
+ connect ( m_multiLine , TQT_SIGNAL( textChanged()), this, TQT_SLOT( slotTextChanged( )));
slotTextChanged( );
resize( 300,100 );
@@ -57,16 +57,16 @@ void KoCommentDia::slotTextChanged( )
enableButtonOK( !m_multiLine->text().isEmpty() );
}
-QString KoCommentDia::commentText()
+TQString KoCommentDia::commentText()
{
return m_multiLine->text();
}
void KoCommentDia::slotAddAuthorName()
{
- QString date = KGlobal::locale()->formatDate( QDate::currentDate() );
- QString time = KGlobal::locale()->formatTime( QTime::currentTime() );
- QString result = QString("--------%1 ,%2, %3------\n").arg(authorName).arg(date).arg(time);
+ TQString date = KGlobal::locale()->formatDate( TQDate::tqcurrentDate() );
+ TQString time = KGlobal::locale()->formatTime( TQTime::currentTime() );
+ TQString result = TQString("--------%1 ,%2, %3------\n").tqarg(authorName).tqarg(date).tqarg(time);
m_multiLine->insertLine( result, m_multiLine->numLines() );
}