summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms/widgets/kexidblabel.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/forms/widgets/kexidblabel.h')
-rw-r--r--kexi/plugins/forms/widgets/kexidblabel.h75
1 files changed, 38 insertions, 37 deletions
diff --git a/kexi/plugins/forms/widgets/kexidblabel.h b/kexi/plugins/forms/widgets/kexidblabel.h
index ec4e626a..af396a12 100644
--- a/kexi/plugins/forms/widgets/kexidblabel.h
+++ b/kexi/plugins/forms/widgets/kexidblabel.h
@@ -21,8 +21,8 @@
#ifndef KEXIDBLABEL_H
#define KEXIDBLABEL_H
-#include <qimage.h>
-#include <qlabel.h>
+#include <tqimage.h>
+#include <tqlabel.h>
#include <kpixmap.h>
@@ -30,8 +30,8 @@
#include "../kexidbtextwidgetinterface.h"
#include <widget/utils/kexidisplayutils.h>
-class QPainter;
-class QTimer;
+class TQPainter;
+class TQTimer;
class KexiDBInternalLabel;
//! @short An extended, data-aware, read-only text label.
@@ -39,29 +39,30 @@ class KexiDBInternalLabel;
@author Christian Nitschkowski, Jaroslaw Staniek
*/
-class KEXIFORMUTILS_EXPORT KexiDBLabel : public QLabel, protected KexiDBTextWidgetInterface, public KexiFormDataItemInterface {
+class KEXIFORMUTILS_EXPORT KexiDBLabel : public TQLabel, protected KexiDBTextWidgetInterface, public KexiFormDataItemInterface {
Q_OBJECT
- Q_PROPERTY( QString dataSource READ dataSource WRITE setDataSource DESIGNABLE true )
- Q_PROPERTY( QCString dataSourceMimeType READ dataSourceMimeType WRITE setDataSourceMimeType DESIGNABLE true )
- Q_PROPERTY( bool shadowEnabled READ shadowEnabled WRITE setShadowEnabled DESIGNABLE true )
- Q_OVERRIDE( QPixmap pixmap DESIGNABLE false )
- Q_OVERRIDE( bool scaledContents DESIGNABLE false )
-// Q_OVERRIDE( QColor paletteForegroundColor READ paletteForegroundColor WRITE setPaletteForegroundColor DESIGNABLE true )
- Q_PROPERTY( QColor frameColor READ frameColor WRITE setFrameColor DESIGNABLE true )
+ TQ_OBJECT
+ TQ_PROPERTY( TQString dataSource READ dataSource WRITE setDataSource DESIGNABLE true )
+ TQ_PROPERTY( TQCString dataSourceMimeType READ dataSourceMimeType WRITE setDataSourceMimeType DESIGNABLE true )
+ TQ_PROPERTY( bool shadowEnabled READ shadowEnabled WRITE setShadowEnabled DESIGNABLE true )
+ TQ_OVERRIDE( TQPixmap pixmap DESIGNABLE false )
+ TQ_OVERRIDE( bool scaledContents DESIGNABLE false )
+// TQ_OVERRIDE( TQColor paletteForegroundColor READ paletteForegroundColor WRITE setPaletteForegroundColor DESIGNABLE true )
+ TQ_PROPERTY( TQColor frameColor READ frameColor WRITE setFrameColor DESIGNABLE true )
public:
- KexiDBLabel( QWidget *parent, const char *name = 0, WFlags f = 0 );
- KexiDBLabel( const QString& text, QWidget *parent, const char *name = 0, WFlags f = 0 );
+ KexiDBLabel( TQWidget *tqparent, const char *name = 0, WFlags f = 0 );
+ KexiDBLabel( const TQString& text, TQWidget *tqparent, const char *name = 0, WFlags f = 0 );
virtual ~KexiDBLabel();
- inline QString dataSource() const { return KexiFormDataItemInterface::dataSource(); }
- inline QCString dataSourceMimeType() const { return KexiFormDataItemInterface::dataSourceMimeType(); }
+ inline TQString dataSource() const { return KexiFormDataItemInterface::dataSource(); }
+ inline TQCString dataSourceMimeType() const { return KexiFormDataItemInterface::dataSourceMimeType(); }
- virtual QVariant value();
+ virtual TQVariant value();
bool shadowEnabled() const;
- virtual void setInvalidState( const QString& displayText );
+ virtual void setInvalidState( const TQString& displayText );
virtual bool valueIsNull();
@@ -70,7 +71,7 @@ class KEXIFORMUTILS_EXPORT KexiDBLabel : public QLabel, protected KexiDBTextWidg
//! always true
virtual bool isReadOnly() const;
- virtual QWidget* widget();
+ virtual TQWidget* widget();
//! always false
virtual bool cursorAtStart();
@@ -81,29 +82,29 @@ class KEXIFORMUTILS_EXPORT KexiDBLabel : public QLabel, protected KexiDBTextWidg
virtual void clear();
//! used to catch setIndent(), etc.
- virtual bool setProperty ( const char * name, const QVariant & value );
+ virtual bool setProperty ( const char * name, const TQVariant & value );
- virtual const QColor& frameColor() const;
+ virtual const TQColor& frameColor() const;
-// const QColor & paletteForegroundColor() const;
+// const TQColor & paletteForegroundColor() const;
public slots:
//! Sets the datasource to \a ds
- inline void setDataSource( const QString &ds ) { KexiFormDataItemInterface::setDataSource( ds ); }
+ inline void setDataSource( const TQString &ds ) { KexiFormDataItemInterface::setDataSource( ds ); }
- inline void setDataSourceMimeType(const QCString &ds) { KexiFormDataItemInterface::setDataSourceMimeType(ds); }
+ inline void setDataSourceMimeType(const TQCString &ds) { KexiFormDataItemInterface::setDataSourceMimeType(ds); }
- virtual void setText( const QString& text );
+ virtual void setText( const TQString& text );
/*! Enable/Disable the shadow effect.
- KexiDBLabel acts just like a normal QLabel when shadow is disabled. */
+ KexiDBLabel acts just like a normal TQLabel when shadow is disabled. */
void setShadowEnabled( bool state );
- virtual void setPalette( const QPalette &pal );
+ virtual void setPalette( const TQPalette &pal );
- virtual void setFrameColor(const QColor& color);
+ virtual void setFrameColor(const TQColor& color);
-// void setPaletteForegroundColor( const QColor& color );
+// void setPaletteForegroundColor( const TQColor& color );
protected slots:
//! empty
@@ -113,23 +114,23 @@ class KEXIFORMUTILS_EXPORT KexiDBLabel : public QLabel, protected KexiDBTextWidg
protected:
void init();
virtual void setColumnInfo(KexiDB::QueryColumnInfo* cinfo);
- virtual void paintEvent( QPaintEvent* );
- virtual void resizeEvent( QResizeEvent* e );
+ virtual void paintEvent( TQPaintEvent* );
+ virtual void resizeEvent( TQResizeEvent* e );
//! Sets value \a value for a widget.
- virtual void setValueInternal( const QVariant& add, bool removeOld );
+ virtual void setValueInternal( const TQVariant& add, bool removeOld );
- virtual void fontChange( const QFont& font );
- virtual void styleChange( QStyle& style );
+ virtual void fontChange( const TQFont& font );
+ virtual void styleChange( TQStyle& style );
virtual void enabledChange( bool enabled );
- virtual void paletteChange( const QPalette& oldPal );
+ virtual void paletteChange( const TQPalette& oldPal );
virtual void frameChanged();
- virtual void showEvent( QShowEvent* e );
+ virtual void showEvent( TQShowEvent* e );
//! Reimplemented to paint using real frame color instead of froeground.
//! Also allows to paint more types of frame.
- virtual void drawFrame( QPainter * );
+ virtual void drawFrame( TQPainter * );
void updatePixmapLater();