summaryrefslogtreecommitdiffstats
path: root/kwin/kcmkwin/kwindecoration/preview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kwin/kcmkwin/kwindecoration/preview.h
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwin/kcmkwin/kwindecoration/preview.h')
-rw-r--r--kwin/kcmkwin/kwindecoration/preview.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/kwin/kcmkwin/kwindecoration/preview.h b/kwin/kcmkwin/kwindecoration/preview.h
index 1c1943486..a7f50d682 100644
--- a/kwin/kcmkwin/kwindecoration/preview.h
+++ b/kwin/kcmkwin/kwindecoration/preview.h
@@ -20,7 +20,7 @@
#ifndef KWINDECORATION_PREVIEW_H
#define KWINDECORATION_PREVIEW_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kdecoration_p.h>
#include <kdecoration_plugins_p.h>
@@ -39,25 +39,25 @@ class KDecorationPreview
// and an inactive window.
enum Windows { Inactive = 0, Active, NumWindows };
- KDecorationPreview( QWidget* parent = NULL, const char* name = NULL );
+ KDecorationPreview( TQWidget* parent = NULL, const char* name = NULL );
virtual ~KDecorationPreview();
bool recreateDecoration( KDecorationPlugins* plugin );
void enablePreview();
void disablePreview();
- void setPreviewMask( const QRegion&, int, bool );
- QRegion unobscuredRegion( bool, const QRegion& ) const;
- QRect windowGeometry( bool ) const;
+ void setPreviewMask( const TQRegion&, int, bool );
+ TQRegion unobscuredRegion( bool, const TQRegion& ) const;
+ TQRect windowGeometry( bool ) const;
void setTempBorderSize(KDecorationPlugins* plugin, KDecorationDefines::BorderSize size);
- void setTempButtons(KDecorationPlugins* plugin, bool customEnabled, const QString &left, const QString &right);
+ void setTempButtons(KDecorationPlugins* plugin, bool customEnabled, const TQString &left, const TQString &right);
protected:
- virtual void resizeEvent( QResizeEvent* );
+ virtual void resizeEvent( TQResizeEvent* );
private:
void positionPreviews();
KDecorationPreviewOptions* options;
KDecorationPreviewBridge* bridge[NumWindows];
KDecoration* deco[NumWindows];
- QLabel* no_preview;
- QRegion mask;
+ TQLabel* no_preview;
+ TQRegion mask;
};
class KDecorationPreviewBridge
@@ -81,18 +81,18 @@ class KDecorationPreviewBridge
virtual bool isMovable() const;
virtual bool isResizable() const;
virtual NET::WindowType windowType( unsigned long supported_types ) const;
- virtual QIconSet icon() const;
- virtual QString caption() const;
- virtual void processMousePressEvent( QMouseEvent* );
- virtual void showWindowMenu( const QRect &);
- virtual void showWindowMenu( QPoint );
+ virtual TQIconSet icon() const;
+ virtual TQString caption() const;
+ virtual void processMousePressEvent( TQMouseEvent* );
+ virtual void showWindowMenu( const TQRect &);
+ virtual void showWindowMenu( TQPoint );
virtual void performWindowOperation( WindowOperation );
- virtual void setMask( const QRegion&, int );
+ virtual void setMask( const TQRegion&, int );
virtual bool isPreview() const;
- virtual QRect geometry() const;
- virtual QRect iconGeometry() const;
- virtual QRegion unobscuredRegion( const QRegion& r ) const;
- virtual QWidget* workspaceWidget() const;
+ virtual TQRect geometry() const;
+ virtual TQRect iconGeometry() const;
+ virtual TQRegion unobscuredRegion( const TQRegion& r ) const;
+ virtual TQWidget* workspaceWidget() const;
virtual WId windowId() const;
virtual void closeWindow();
virtual void maximize( MaximizeMode mode );
@@ -105,7 +105,7 @@ class KDecorationPreviewBridge
virtual void setKeepAbove( bool );
virtual void setKeepBelow( bool );
virtual int currentDesktop() const;
- virtual QWidget* initialParentWidget() const;
+ virtual TQWidget* initialParentWidget() const;
virtual Qt::WFlags initialWFlags() const;
virtual void helperShowHide( bool show );
virtual void grabXServer( bool grab );
@@ -124,14 +124,14 @@ class KDecorationPreviewOptions
void setCustomBorderSize(BorderSize size);
void setCustomTitleButtonsEnabled(bool enabled);
- void setCustomTitleButtons(const QString &left, const QString &right);
+ void setCustomTitleButtons(const TQString &left, const TQString &right);
private:
BorderSize customBorderSize;
bool customButtonsChanged;
bool customButtons;
- QString customTitleButtonsLeft;
- QString customTitleButtonsRight;
+ TQString customTitleButtonsLeft;
+ TQString customTitleButtonsRight;
};
class KDecorationPreviewPlugins