summaryrefslogtreecommitdiffstats
path: root/kjots/kjotsedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kjots/kjotsedit.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjots/kjotsedit.cpp')
-rw-r--r--kjots/kjotsedit.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kjots/kjotsedit.cpp b/kjots/kjotsedit.cpp
index 0a61c62..2e4c09d 100644
--- a/kjots/kjotsedit.cpp
+++ b/kjots/kjotsedit.cpp
@@ -20,9 +20,9 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
-#include <qcursor.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqcursor.h>
#include <kpopupmenu.h>
#include <keditcl.h>
@@ -36,16 +36,16 @@
//----------------------------------------------------------------------
// MYMULTIEDIT
//----------------------------------------------------------------------
-KJotsEdit::KJotsEdit (QWidget* parent, const char* name)
+KJotsEdit::KJotsEdit (TQWidget* parent, const char* name)
: KEdit(parent, name),
m_entry(0)
{
// no rich text until printing and other such issues are worked out
setTextFormat(Qt::PlainText);
- setWordWrap(QTextEdit::WidgetWidth);
+ setWordWrap(TQTextEdit::WidgetWidth);
setLinkUnderline(true);
web_menu = new KPopupMenu(this);;
- web_menu->insertItem(i18n("Open URL"), this, SLOT(openUrl()) );
+ web_menu->insertItem(i18n("Open URL"), this, TQT_SLOT(openUrl()) );
}
KJotsEdit::~KJotsEdit()
@@ -53,7 +53,7 @@ KJotsEdit::~KJotsEdit()
}
-void KJotsEdit::mousePressEvent( QMouseEvent *e )
+void KJotsEdit::mousePressEvent( TQMouseEvent *e )
{
if(e->button() == RightButton &&
hasSelectedText())
@@ -62,7 +62,7 @@ void KJotsEdit::mousePressEvent( QMouseEvent *e )
if(url.isValid())
{
- web_menu->popup(QCursor::pos());
+ web_menu->popup(TQCursor::pos());
return;
}
}
@@ -82,7 +82,7 @@ void KJotsEdit::openUrl()
}
}
-void KJotsEdit::print(QString title)
+void KJotsEdit::print(TQString title)
{
KPrinter printer;
printer.setDocName(title);
@@ -91,19 +91,19 @@ void KJotsEdit::print(QString title)
if (printer.setup(this))
{
- QFont printFont = font();
- QPainter painter( &printer );
- QPaintDeviceMetrics metrics( &printer );
+ TQFont printFont = font();
+ TQPainter painter( &printer );
+ TQPaintDeviceMetrics metrics( &printer );
int y = 0;
int maxWidth = metrics.width();
int maxHeight = metrics.height();
- QString currentParagraph;
+ TQString currentParagraph;
for (int paragraphCount = 0; paragraphCount < paragraphs(); ++paragraphCount )
{
currentParagraph = text(paragraphCount);
- QRect r = painter.boundingRect(0, y, maxWidth, maxHeight,
- QPainter::ExpandTabs | QPainter::WordBreak,
+ TQRect r = painter.boundingRect(0, y, maxWidth, maxHeight,
+ TQPainter::ExpandTabs | TQPainter::WordBreak,
currentParagraph);
if ((y + r.height()) > maxHeight)
@@ -113,7 +113,7 @@ void KJotsEdit::print(QString title)
}
painter.drawText(0, y, maxWidth, maxHeight - y,
- QPainter::ExpandTabs | QPainter::WordBreak,
+ TQPainter::ExpandTabs | TQPainter::WordBreak,
currentParagraph);
y += r.height();
}