summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/Kolinestyleaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficeui/Kolinestyleaction.cpp')
-rw-r--r--lib/kofficeui/Kolinestyleaction.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/kofficeui/Kolinestyleaction.cpp b/lib/kofficeui/Kolinestyleaction.cpp
index da3415c7..0ef47518 100644
--- a/lib/kofficeui/Kolinestyleaction.cpp
+++ b/lib/kofficeui/Kolinestyleaction.cpp
@@ -19,9 +19,9 @@
#include "Kolinestyleaction.h"
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qbitmap.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqbitmap.h>
#include <kpopupmenu.h>
#include <kdebug.h>
@@ -32,7 +32,7 @@ class KoLineStyleAction::KoLineStyleActionPrivate
public:
KoLineStyleActionPrivate()
{
- m_currentStyle = Qt::SolidLine;
+ m_currentStyle = TQt::SolidLine;
}
~KoLineStyleActionPrivate()
@@ -42,16 +42,16 @@ class KoLineStyleAction::KoLineStyleActionPrivate
int m_currentStyle;
};
-KoLineStyleAction::KoLineStyleAction(const QString &text, const QString& icon,
- QObject* parent, const char* name) : KoSelectAction(text, icon, parent, name)
+KoLineStyleAction::KoLineStyleAction(const TQString &text, const TQString& icon,
+ TQObject* tqparent, const char* name) : KoSelectAction(text, icon, tqparent, name)
{
d = new KoLineStyleActionPrivate;
createMenu();
}
-KoLineStyleAction::KoLineStyleAction(const QString &text, const QString& icon, const QObject* receiver,
- const char* slot, QObject* parent, const char* name) : KoSelectAction(text, icon, receiver, slot, parent, name)
+KoLineStyleAction::KoLineStyleAction(const TQString &text, const TQString& icon, const TQObject* receiver,
+ const char* slot, TQObject* tqparent, const char* name) : KoSelectAction(text, icon, receiver, slot, tqparent, name)
{
d = new KoLineStyleActionPrivate;
@@ -66,11 +66,11 @@ KoLineStyleAction::~KoLineStyleAction()
void KoLineStyleAction::createMenu()
{
KPopupMenu* popup = popupMenu();
- QBitmap mask;
- QPixmap pix(70, 21);
- QPainter p(&pix, popup);
+ TQBitmap tqmask;
+ TQPixmap pix(70, 21);
+ TQPainter p(&pix, popup);
int cindex = 0;
- QPen pen;
+ TQPen pen;
pen.setWidth(2);
popup->insertItem(i18n("None"),cindex++);
@@ -79,8 +79,8 @@ void KoLineStyleAction::createMenu()
pen.setStyle(static_cast<Qt::PenStyle>(i));
p.setPen(pen);
p.drawLine(0, 10, pix.width(), 10);
- mask = pix;
- pix.setMask(mask);
+ tqmask = pix;
+ pix.setMask(tqmask);
popup->insertItem(pix,cindex++);
}
}