summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabel/contextview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/kbabel/contextview.cpp')
-rw-r--r--kbabel/kbabel/contextview.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kbabel/kbabel/contextview.cpp b/kbabel/kbabel/contextview.cpp
index e56e15dc..264d4e84 100644
--- a/kbabel/kbabel/contextview.cpp
+++ b/kbabel/kbabel/contextview.cpp
@@ -35,9 +35,9 @@
#include "contextview.h"
-#include <qlayout.h>
-#include <qtextview.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqtextview.h>
+#include <tqwhatsthis.h>
#include <kcursor.h>
#include <klocale.h>
@@ -47,19 +47,19 @@
using namespace KBabel;
-ContextView::ContextView(KBCatalog* catalog,QWidget *parent, Project::Ptr project)
+ContextView::ContextView(KBCatalog* catalog,TQWidget *parent, Project::Ptr project)
: KBCatalogView(catalog,parent,project)
{
- QVBoxLayout* layout = new QVBoxLayout( this );
- layout->setResizeMode( QLayout::Minimum );
+ TQVBoxLayout* layout = new TQVBoxLayout( this );
+ layout->setResizeMode( TQLayout::Minimum );
- _textview = new QTextView (this, "context textview");
+ _textview = new TQTextView (this, "context textview");
KCursor::setAutoHideCursor(_textview->viewport(),true);
_textview->setReadOnly(true);
layout->addWidget (_textview);
- QWhatsThis::add(this,
+ TQWhatsThis::add(this,
i18n("<qt><p><b>PO Context</b></p>"
"<p>This window shows the context of the current message "
"in the PO file. Normally it shows four messages in front "
@@ -67,7 +67,7 @@ ContextView::ContextView(KBCatalog* catalog,QWidget *parent, Project::Ptr projec
"<p>You can hide the tools window by deactivating "
"<b>Options->Show Tools</b>.</p></qt></qt>"));
- connect(_catalog, SIGNAL(signalFileOpened(bool)), this, SLOT(setDisabled(bool)));
+ connect(_catalog, TQT_SIGNAL(signalFileOpened(bool)), this, TQT_SLOT(setDisabled(bool)));
}
void ContextView::updateView()
@@ -76,7 +76,7 @@ void ContextView::updateView()
if(total==0)
return;
- QString text;
+ TQString text;
uint startIndex;
uint context = 4;
if(_currentIndex < context)
@@ -100,24 +100,24 @@ void ContextView::updateView()
continue;
}
- QString entry;
- QString temp;
+ TQString entry;
+ TQString temp;
temp = _catalog->comment(i);
if(!temp.isEmpty())
{
- temp = QStyleSheet::convertFromPlainText(temp);
- temp.replace(QRegExp("^<p>"),"");
- temp.replace(QRegExp("</p>$"),"");
+ temp = TQStyleSheet::convertFromPlainText(temp);
+ temp.replace(TQRegExp("^<p>"),"");
+ temp.replace(TQRegExp("</p>$"),"");
entry += "<i>"+temp+"</i><br/>";
}
// FIXME: should care about plural forms
- temp = QStyleSheet::convertFromPlainText(_catalog->msgid(i).first());
- temp.replace(QRegExp("^<p>"),"");
- temp.replace(QRegExp("</p>$"),"");
+ temp = TQStyleSheet::convertFromPlainText(_catalog->msgid(i).first());
+ temp.replace(TQRegExp("^<p>"),"");
+ temp.replace(TQRegExp("</p>$"),"");
entry += temp + "<br/>---<br/>";
- QStringList tempList = _catalog->msgstr(i);
+ TQStringList tempList = _catalog->msgstr(i);
if(tempList.isEmpty())
{
@@ -135,14 +135,14 @@ void ContextView::updateView()
{
uint counter = 1;
temp = "";
- for( QStringList::Iterator i=tempList.begin() ; i != tempList.end() ; ++i)
+ for( TQStringList::Iterator i=tempList.begin() ; i != tempList.end() ; ++i)
{
temp += i18n("Plural %1: %2\n").arg(counter++).arg(*i);
}
}
- temp = QStyleSheet::convertFromPlainText(temp);
- temp.replace(QRegExp("^<p>"),"");
- temp.replace(QRegExp("</p>$"),"");
+ temp = TQStyleSheet::convertFromPlainText(temp);
+ temp.replace(TQRegExp("^<p>"),"");
+ temp.replace(TQRegExp("</p>$"),"");
entry += temp+"<br/>";
}