summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabel/commentview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/kbabel/commentview.cpp')
-rw-r--r--kbabel/kbabel/commentview.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kbabel/kbabel/commentview.cpp b/kbabel/kbabel/commentview.cpp
index bf2301de..57d838b9 100644
--- a/kbabel/kbabel/commentview.cpp
+++ b/kbabel/kbabel/commentview.cpp
@@ -35,11 +35,11 @@
#include "commentview.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qwhatsthis.h>
-#include <qdragobject.h>
-#include <qtextview.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqwhatsthis.h>
+#include <tqdragobject.h>
+#include <tqtextview.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -62,12 +62,12 @@
using namespace KBabel;
-CommentView::CommentView(KBCatalog* catalog,QWidget *parent, Project::Ptr project)
+CommentView::CommentView(KBCatalog* catalog,TQWidget *parent, Project::Ptr project)
: KBCatalogView(catalog,parent, project)
{
setAcceptDrops(true);
- QVBoxLayout* layout=new QVBoxLayout(this);
+ TQVBoxLayout* layout=new TQVBoxLayout(this);
commentEdit = new MsgMultiLineEdit(0, 0, this);
commentEdit->setMinimumHeight(50);
@@ -75,16 +75,16 @@ CommentView::CommentView(KBCatalog* catalog,QWidget *parent, Project::Ptr projec
commentEdit->setHighlightSyntax(false);
KCursor::setAutoHideCursor(commentEdit,true);
- QLabel* label=new QLabel(commentEdit,i18n("&Comment:"),this);
+ TQLabel* label=new TQLabel(commentEdit,i18n("&Comment:"),this);
- QHBoxLayout* hb=new QHBoxLayout(layout);
+ TQHBoxLayout* hb=new TQHBoxLayout(layout);
hb->addSpacing(KDialog::marginHint());
hb->addWidget(label);
layout->addWidget(commentEdit);
layout->setStretchFactor(commentEdit,1);
- QWhatsThis::add(this,
+ TQWhatsThis::add(this,
i18n("<qt><p><b>Comment Editor</b></p>\n\
This edit window shows you the comments of the currently displayed message.<p>\n\
<p>The comments normally contain information about where the message is found in the source\n\
@@ -94,12 +94,12 @@ Hints from other translators are also sometimes contained in comments.</p>\n\
<b>Options->Show Comments</b>.</p></qt>"));
commentEdit->setReadOnly(true);
- connect(commentEdit,SIGNAL(signalUndoCmd(KBabel::EditCommand*)),this,SLOT(forwardCommentEditCmd(KBabel::EditCommand*)));
+ connect(commentEdit,TQT_SIGNAL(signalUndoCmd(KBabel::EditCommand*)),this,TQT_SLOT(forwardCommentEditCmd(KBabel::EditCommand*)));
- connect(commentEdit,SIGNAL(cursorPositionChanged(int,int))
- , this, SIGNAL(signalCursorPosChanged(int,int)));
+ connect(commentEdit,TQT_SIGNAL(cursorPositionChanged(int,int))
+ , this, TQT_SIGNAL(signalCursorPosChanged(int,int)));
- connect(_catalog, SIGNAL(signalFileOpened(bool)), this, SLOT(setDisabled(bool)));
+ connect(_catalog, TQT_SIGNAL(signalFileOpened(bool)), this, TQT_SLOT(setDisabled(bool)));
}
void CommentView::update(EditCommand* cmd, bool undo)
@@ -178,7 +178,7 @@ void CommentView::readFileSettings()
setReadOnly( _catalog->isReadOnly() );
}
-const QString CommentView::selectText(int from, int to)
+const TQString CommentView::selectText(int from, int to)
{
int line, col, endline, endcol;
@@ -203,12 +203,12 @@ int CommentView::currentIndex ()
return commentEdit->currentIndex ();
}
-const QString CommentView::selectedText ()
+const TQString CommentView::selectedText ()
{
return commentEdit->selectedText ();
}
-void CommentView::installEventFilter( const QObject * filterObj )
+void CommentView::installEventFilter( const TQObject * filterObj )
{
commentEdit->installEventFilter( filterObj );
}