summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoParagDia_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/KoParagDia_p.h')
-rw-r--r--lib/kotext/KoParagDia_p.h66
1 files changed, 35 insertions, 31 deletions
diff --git a/lib/kotext/KoParagDia_p.h b/lib/kotext/KoParagDia_p.h
index 8d1839eb..18b75a94 100644
--- a/lib/kotext/KoParagDia_p.h
+++ b/lib/kotext/KoParagDia_p.h
@@ -23,28 +23,29 @@
// This file hides those definitions from "users" of koParagDia.h
// to reduce compile-time dependencies.
-#include <qgroupbox.h>
+#include <tqgroupbox.h>
#include <KoParagCounter.h>
-#include <qspinbox.h>
-class QWidget;
-class QPainter;
+#include <tqspinbox.h>
+class TQWidget;
+class TQPainter;
/******************************************************************/
/* Class: KoSpinBox */
/******************************************************************/
-class KoSpinBox : public QSpinBox
+class KoSpinBox : public TQSpinBox
{
Q_OBJECT
+ TQ_OBJECT
public:
enum counterType{ NONE,NUM,ALPHAB_L,ALPHAB_U,ROM_NUM_L,ROM_NUM_U};
KoSpinBox( int minValue, int maxValue, int step = 1,
- QWidget * parent = 0, const char * name = 0 );
- KoSpinBox( QWidget * parent = 0, const char * name = 0 );
+ TQWidget * tqparent = 0, const char * name = 0 );
+ KoSpinBox( TQWidget * tqparent = 0, const char * name = 0 );
virtual ~KoSpinBox();
- virtual QString mapValueToText( int value );
+ virtual TQString mapValueToText( int value );
virtual int mapTextToValue( bool * ok );
void setCounterType(counterType _type);
private:
@@ -55,29 +56,30 @@ public:
/******************************************************************/
/* class KPagePreview */
/******************************************************************/
-class KPagePreview : public QGroupBox
+class KPagePreview : public TQGroupBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- KPagePreview( QWidget*, const char* = 0L );
+ KPagePreview( TQWidget*, const char* = 0L );
~KPagePreview() {}
void setLeft( double _left )
- { left = _left; repaint( false ); }
+ { left = _left; tqrepaint( false ); }
void setRight( double _right )
- { right = _right; repaint( false ); }
+ { right = _right; tqrepaint( false ); }
void setFirst( double _first )
- { first = _first; repaint( false ); }
+ { first = _first; tqrepaint( false ); }
void setSpacing( double _spacing )
- { spacing = _spacing; repaint( false ); }
+ { spacing = _spacing; tqrepaint( false ); }
void setBefore( double _before )
- { before = _before; repaint( false ); }
+ { before = _before; tqrepaint( false ); }
void setAfter( double _after )
- { after = _after; repaint( false ); }
+ { after = _after; tqrepaint( false ); }
protected:
- void drawContents( QPainter* );
+ void drawContents( TQPainter* );
int convert(double input);
double left, right, first, spacing, before, after;
@@ -88,19 +90,20 @@ protected:
/* class KPagePreview2 */
/******************************************************************/
-class KPagePreview2 : public QGroupBox
+class KPagePreview2 : public TQGroupBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- KPagePreview2( QWidget*, const char* = 0L );
+ KPagePreview2( TQWidget*, const char* = 0L );
~KPagePreview2() {}
void setAlign( int _align )
- { align = _align; repaint( false ); }
+ { align = _align; tqrepaint( false ); }
protected:
- void drawContents( QPainter* );
+ void drawContents( TQPainter* );
int align;
@@ -110,37 +113,38 @@ protected:
/* class KoBorderPreview */
/******************************************************************/
-class KoBorderPreview : public QFrame/*QGroupBox*/
+class KoBorderPreview : public TQFrame/*TQGroupBox*/
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoBorderPreview( QWidget*, const char* = 0L );
+ KoBorderPreview( TQWidget*, const char* = 0L );
~KoBorderPreview() {}
KoBorder leftBorder()const { return m_leftBorder; }
void setLeftBorder( const KoBorder& _leftBorder )
- { m_leftBorder = _leftBorder; repaint( true ); }
+ { m_leftBorder = _leftBorder; tqrepaint( true ); }
KoBorder rightBorder() const { return m_rightBorder; }
void setRightBorder( const KoBorder& _rightBorder )
- { m_rightBorder = _rightBorder; repaint( true ); }
+ { m_rightBorder = _rightBorder; tqrepaint( true ); }
KoBorder topBorder()const { return m_topBorder; }
void setTopBorder( const KoBorder& _topBorder )
- { m_topBorder = _topBorder; repaint( true ); }
+ { m_topBorder = _topBorder; tqrepaint( true ); }
KoBorder bottomBorder()const { return m_bottomBorder; }
void setBottomBorder( const KoBorder& _bottomBorder )
- { m_bottomBorder = _bottomBorder; repaint( true ); }
+ { m_bottomBorder = _bottomBorder; tqrepaint( true ); }
void setBorder( KoBorder::BorderType which, const KoBorder& border);
protected:
- virtual void mousePressEvent( QMouseEvent* _ev );
- void drawContents( QPainter* );
- QPen setBorderPen( KoBorder _brd );
+ virtual void mousePressEvent( TQMouseEvent* _ev );
+ void drawContents( TQPainter* );
+ TQPen setBorderPen( KoBorder _brd );
KoBorder m_leftBorder, m_rightBorder, m_topBorder, m_bottomBorder;
signals:
- void choosearea(QMouseEvent * _ev);
+ void choosearea(TQMouseEvent * _ev);
};