diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/core/kexisharedactionhost.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-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 'kexi/core/kexisharedactionhost.h')
-rw-r--r-- | kexi/core/kexisharedactionhost.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kexi/core/kexisharedactionhost.h b/kexi/core/kexisharedactionhost.h index abb960bf..035ce352 100644 --- a/kexi/core/kexisharedactionhost.h +++ b/kexi/core/kexisharedactionhost.h @@ -20,10 +20,10 @@ #ifndef KEXISHAREDACTIONHOST_H #define KEXISHAREDACTIONHOST_H -#include <qguardedptr.h> -#include <qasciidict.h> -#include <qobject.h> -#include <qpair.h> +#include <tqguardedptr.h> +#include <tqasciidict.h> +#include <tqobject.h> +#include <tqpair.h> #include <kstdaction.h> #include <kaction.h> @@ -67,15 +67,15 @@ class KEXICORE_EXPORT KexiSharedActionHost return o->inherits("KexiDialogBase") || o->inherits("KexiViewBase"); \endcode */ - virtual bool acceptsSharedActions(QObject *o); + virtual bool acceptsSharedActions(TQObject *o); - /*! \return window widget that is currently focused (using QWidget::focusWidget()) + /*! \return window widget that is currently focused (using TQWidget::tqfocusWidget()) and matches acceptsSharedActions(). If focused widget does not match, - it's parent, grandparent, and so on is checked. If all this fails, + it's tqparent, grandtqparent, and so on is checked. If all this fails, or no widget has focus, NULL is returned. Also works if currently focused window is detached (as in KMDI). */ - QWidget* focusWindow(); + TQWidget* focusWindow(); /*! Sets this host as default shared actions host. */ void setAsDefaultHost(); @@ -100,13 +100,13 @@ class KEXICORE_EXPORT KexiSharedActionHost Otherwise the action is disabled. If \a o is not KexiDialogBase or its child, - actions are only invalidated if these come from mainwindow's KActionCollection + actions are only tqinvalidated if these come from mainwindow's KActionCollection (thus part-actions are untouched when the focus is e.g. in the Property Editor. Call this method when it is known that some actions need invalidation (e.g. when new window is activated). See how it is used in KexiMainWindowImpl. */ - virtual void invalidateSharedActions(QObject *o); + virtual void tqinvalidateSharedActions(TQObject *o); void setActionAvailable(const char *action_name, bool avail); @@ -115,7 +115,7 @@ class KEXICORE_EXPORT KexiSharedActionHost /*! Updates availability of action \a action_name for object \a obj. Object is mainly the window. */ - void updateActionAvailable(const char *action_name, bool avail, QObject *obj); + void updateActionAvailable(const char *action_name, bool avail, TQObject *obj); /*! \return main window for which this host is defined. */ KMainWindow* mainWindow() const; @@ -126,7 +126,7 @@ class KEXICORE_EXPORT KexiSharedActionHost Pass desired KAction subclass with \a subclassName (e.g. "KToggleAction") to have that subclass allocated instead just KAction (what is the default). Created action's data is owned by the main window. */ - KAction* createSharedAction(const QString &text, const QString &pix_name, + KAction* createSharedAction(const TQString &text, const TQString &pix_name, const KShortcut &cut, const char *name, KActionCollection* col = 0, const char *subclassName = 0); @@ -143,11 +143,11 @@ class KEXICORE_EXPORT KexiSharedActionHost /*! \return action proxy for object \a o, or NULL if this object has no plugged shared actions. */ - KexiActionProxy* actionProxyFor(QObject *o) const; + KexiActionProxy* actionProxyFor(TQObject *o) const; /*! Like actionProxyFor(), but takes the proxy from the host completely. This is called by KExiActionProxy on its destruction. */ - KexiActionProxy* takeActionProxyFor(QObject *o); + KexiActionProxy* takeActionProxyFor(TQObject *o); private: /*! Helper function for createSharedAction(). */ |