summaryrefslogtreecommitdiffstats
path: root/karbon/widgets/vgradienttabwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/widgets/vgradienttabwidget.h')
-rw-r--r--karbon/widgets/vgradienttabwidget.h51
1 files changed, 26 insertions, 25 deletions
diff --git a/karbon/widgets/vgradienttabwidget.h b/karbon/widgets/vgradienttabwidget.h
index 2c60cee3..ba5f771f 100644
--- a/karbon/widgets/vgradienttabwidget.h
+++ b/karbon/widgets/vgradienttabwidget.h
@@ -21,9 +21,9 @@
#ifndef _VGRADIENTTABWIDGET_H_
#define _VGRADIENTTABWIDGET_H_
-#include <qwidget.h>
-#include <qtabwidget.h>
-#include <qlistbox.h>
+#include <tqwidget.h>
+#include <tqtabwidget.h>
+#include <tqlistbox.h>
#include <koffice_export.h>
#include "vgradient.h"
@@ -31,52 +31,53 @@ class KComboBox;
class VGradientWidget;
class KListBox;
class KIntNumInput;
-class QPushButton;
-class QGroupBox;
+class TQPushButton;
+class TQGroupBox;
class KarbonResourceServer;
-class VGradientListItem : public QListBoxItem
+class VGradientListItem : public TQListBoxItem
{
public:
- VGradientListItem( const VGradient& gradient, QString filename );
+ VGradientListItem( const VGradient& gradient, TQString filename );
VGradientListItem( const VGradientListItem& );
~VGradientListItem();
- QPixmap& pixmap() { return m_pixmap; }
+ TQPixmap& pixmap() { return m_pixmap; }
const VGradient* gradient() const { return m_gradient; }
- QString filename() { return m_filename; }
+ TQString filename() { return m_filename; }
bool canDelete() { return m_delete; }
- virtual int height( const QListBox* ) const { return 16; }
- virtual int width( const QListBox* lb ) const;
+ virtual int height( const TQListBox* ) const { return 16; }
+ virtual int width( const TQListBox* lb ) const;
protected:
- virtual void paint( QPainter* p );
+ virtual void paint( TQPainter* p );
private:
VGradient *m_gradient;
- QPixmap m_pixmap;
- QString m_filename;
+ TQPixmap m_pixmap;
+ TQString m_filename;
bool m_delete;
}; // VGradientListItem
-class VGradientPreview : public QWidget
+class VGradientPreview : public TQWidget
{
public:
- VGradientPreview( VGradient& gradient, double& opacity, QWidget* parent = 0L, const char* name = 0L );
+ VGradientPreview( VGradient& gradient, double& opacity, TQWidget* tqparent = 0L, const char* name = 0L );
~VGradientPreview();
- virtual void paintEvent( QPaintEvent* );
+ virtual void paintEvent( TQPaintEvent* );
protected:
VGradient* m_gradient;
double* m_opacity;
}; // VGradientPreview
-class KARBONBASE_EXPORT VGradientTabWidget : public QTabWidget
+class KARBONBASE_EXPORT VGradientTabWidget : public TQTabWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
enum VGradientTarget {
@@ -84,7 +85,7 @@ class KARBONBASE_EXPORT VGradientTabWidget : public QTabWidget
FILL
};
- VGradientTabWidget( VGradient& gradient, KarbonResourceServer* server, QWidget* parent = 0L, const char* name = 0L );
+ VGradientTabWidget( VGradient& gradient, KarbonResourceServer* server, TQWidget* tqparent = 0L, const char* name = 0L );
~VGradientTabWidget();
const VGradient& gradient();
@@ -99,8 +100,8 @@ class KARBONBASE_EXPORT VGradientTabWidget : public QTabWidget
public slots:
void combosChange( int );
void addGradientToPredefs();
- void changeToPredef( QListBoxItem* );
- void predefSelected( QListBoxItem* );
+ void changeToPredef( TQListBoxItem* );
+ void predefSelected( TQListBoxItem* );
void deletePredef();
void opacityChanged( int );
@@ -110,16 +111,16 @@ class KARBONBASE_EXPORT VGradientTabWidget : public QTabWidget
void setupConnections();
private:
- QGroupBox *m_editGroup;
+ TQGroupBox *m_editGroup;
VGradientWidget *m_gradientWidget;
KComboBox *m_gradientTarget;
KComboBox *m_gradientRepeat;
KComboBox *m_gradientType;
VGradientPreview *m_gradientPreview;
KListBox *m_predefGradientsView;
- QPushButton *m_predefDelete;
- QPushButton *m_predefImport;
- QPushButton *m_addToPredefs;
+ TQPushButton *m_predefDelete;
+ TQPushButton *m_predefImport;
+ TQPushButton *m_addToPredefs;
KIntNumInput *m_opacity;
VGradient m_gradient;