summaryrefslogtreecommitdiffstats
path: root/lib/koproperty/widget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/koproperty/widget.h
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/koproperty/widget.h')
-rw-r--r--lib/koproperty/widget.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/koproperty/widget.h b/lib/koproperty/widget.h
index a758589e..9646ecc9 100644
--- a/lib/koproperty/widget.h
+++ b/lib/koproperty/widget.h
@@ -21,7 +21,7 @@
#ifndef KPROPERTY_PROPERTYWIDGET_H
#define KPROPERTY_PROPERTYWIDGET_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "koproperty_global.h"
namespace KoProperty {
@@ -33,20 +33,21 @@ class Property;
\author Cedric Pasteur <cedric.pasteur@free.fr>
\author Alexander Dymo <cloudtemple@mskat.net>
*/
-class KOPROPERTY_EXPORT Widget : public QWidget
+class KOPROPERTY_EXPORT Widget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- Widget(Property *property, QWidget *parent, const char *name="property_editor");
+ Widget(Property *property, TQWidget *tqparent, const char *name="property_editor");
virtual ~Widget();
/*! \return the value currently entered in the item editor widget.*/
- virtual QVariant value() const = 0;
+ virtual TQVariant value() const = 0;
/*! Sets the value shown in the item editor widget. Set emitChange to false
if you don't want to emit propertyChanged signal.*/
- virtual void setValue(const QVariant &value, bool emitChange=true) = 0;
+ virtual void setValue(const TQVariant &value, bool emitChange=true) = 0;
/*! \return edited property. */
virtual Property* property() const;
@@ -55,13 +56,13 @@ class KOPROPERTY_EXPORT Widget : public QWidget
virtual void setProperty(Property *property);
/*! Function to draw a property viewer when the item editor isn't shown.*/
- virtual void drawViewer(QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value);
+ virtual void drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value);
/*! Reverts the property value to previous setting.*/
virtual void undo();
/*! Sets the widget that will receive focus when the Widget is selected. */
- void setFocusWidget(QWidget*focusProxy);
+ void setFocusWidget(TQWidget*focusProxy);
//! \sa d->leaveTheSpaceForRevertButton description
bool leavesTheSpaceForRevertButton() const;
@@ -92,12 +93,12 @@ class KOPROPERTY_EXPORT Widget : public QWidget
void rejectInput(Widget *widget);
protected:
- void setEditor(QWidget* editor);
+ void setEditor(TQWidget* editor);
/*! Filters some event for main widget, eg Enter or Esc key presses. */
- virtual bool eventFilter(QObject* watched, QEvent* e);
+ virtual bool eventFilter(TQObject* watched, TQEvent* e);
- virtual void resizeEvent(QResizeEvent *e);
+ virtual void resizeEvent(TQResizeEvent *e);
void setLeavesTheSpaceForRevertButton(bool set);
void setHasBorders(bool set);