diff options
Diffstat (limited to 'kexi/plugins/reports/reportwidgets.h')
-rw-r--r-- | kexi/plugins/reports/reportwidgets.h | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/kexi/plugins/reports/reportwidgets.h b/kexi/plugins/reports/reportwidgets.h index f8140b0c..9e587556 100644 --- a/kexi/plugins/reports/reportwidgets.h +++ b/kexi/plugins/reports/reportwidgets.h @@ -20,8 +20,8 @@ #ifndef KEXIREPORTWIDGETS_H #define KEXIREPORTWIDGETS_H -#include <qlabel.h> -#include <qscrollview.h> +#include <tqlabel.h> +#include <tqscrollview.h> namespace KFormDesigner { class Form; @@ -31,63 +31,67 @@ namespace KFormDesigner { using KFormDesigner::Form; //! A form embedded as a widget inside other form -class KexiSubReport : public QScrollView +class KexiSubReport : public TQScrollView { Q_OBJECT - Q_PROPERTY(QString reportName READ reportName WRITE setReportName DESIGNABLE true); + TQ_OBJECT + TQ_PROPERTY(TQString reportName READ reportName WRITE setReportName DESIGNABLE true); public: - KexiSubReport(QWidget *parent, const char *name); + KexiSubReport(TQWidget *tqparent, const char *name); ~KexiSubReport() {} //! \return the name of the subreport inside the db - QString reportName() const { return m_reportName; } - void setReportName(const QString &name); + TQString reportName() const { return m_reportName; } + void setReportName(const TQString &name); private: // KFormDesigner::FormManager *m_manager; Form *m_form; - QWidget *m_widget; - QString m_reportName; + TQWidget *m_widget; + TQString m_reportName; }; //! A simple label inside a report -class Label : public QLabel +class Label : public TQLabel { Q_OBJECT + TQ_OBJECT public: - Label(const QString &text, QWidget *parent, const char *name); + Label(const TQString &text, TQWidget *tqparent, const char *name); ~Label() {} }; //! A simple picture label inside a report -class PicLabel : public QLabel +class PicLabel : public TQLabel { Q_OBJECT + TQ_OBJECT public: - PicLabel(const QPixmap &pix, QWidget *parent, const char *name); + PicLabel(const TQPixmap &pix, TQWidget *tqparent, const char *name); ~PicLabel() {} - virtual bool setProperty(const char *name, const QVariant &value); + virtual bool setProperty(const char *name, const TQVariant &value); }; //! A line -class ReportLine : public QWidget +class ReportLine : public TQWidget { Q_OBJECT - Q_PROPERTY(ReportLineStyle lineStyle READ lineStyle WRITE setLineStyle) - Q_PROPERTY(int lineWidth READ lineWidth WRITE setLineWidth) - Q_PROPERTY(QColor color READ color WRITE setColor) - Q_PROPERTY(CapStyle capStyle READ capStyle WRITE setCapStyle) + TQ_OBJECT + TQ_PROPERTY(ReportLineStyle lineStyle READ lineStyle WRITE setLineStyle) + TQ_PROPERTY(int lineWidth READ lineWidth WRITE setLineWidth) + TQ_PROPERTY(TQColor color READ color WRITE setColor) + TQ_PROPERTY(CapStyle capStyle READ capStyle WRITE setCapStyle) public: - enum ReportLineStyle { NoLine = Qt::NoPen, Solid = Qt::SolidLine, Dash = Qt::DashLine, Dot = Qt::DotLine, - DashDot = Qt::DashDotLine, DashDotDot = Qt::DashDotDotLine }; - enum CapStyle { Flat = Qt::FlatCap, Square = Qt::SquareCap, Round = Qt::RoundCap }; + enum ReportLineStyle { NoLine = TQt::NoPen, Solid = TQt::SolidLine, Dash = TQt::DashLine, Dot = TQt::DotLine, + DashDot = TQt::DashDotLine, DashDotDot = TQt::DashDotDotLine }; + enum CapStyle { Flat = TQt::FlatCap, Square = TQt::SquareCap, Round = TQt::RoundCap }; - ReportLine(QWidget *parent, const char *name); + ReportLine(TQWidget *tqparent, const char *name); ~ReportLine(){;} ReportLineStyle lineStyle() const; @@ -96,20 +100,20 @@ class ReportLine : public QWidget int lineWidth() const; void setLineWidth(int width); - QColor color() const; - void setColor(const QColor &color); + TQColor color() const; + void setColor(const TQColor &color); CapStyle capStyle() const; void setCapStyle(CapStyle capStyle); protected: - virtual void paintEvent (QPaintEvent *ev); + virtual void paintEvent (TQPaintEvent *ev); private: ReportLineStyle m_lineStyle; int m_lineWidth; CapStyle m_capStyle; - QColor m_color; + TQColor m_color; }; |