summaryrefslogtreecommitdiffstats
path: root/src/kchmviewwindowmgr.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 19:00:37 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 19:00:37 +0000
commit25794f504692e5a36c490438814e9dfda8aaa2dd (patch)
tree8061e6d27b5bc9042afdff177872779c4e8c9015 /src/kchmviewwindowmgr.h
parent35ff2a942f63b5201c04f41c3097e61cdd7817e9 (diff)
downloadkchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.tar.gz
kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.zip
TQt4 port kchmviewer
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kchmviewer@1234150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kchmviewwindowmgr.h')
-rw-r--r--src/kchmviewwindowmgr.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/kchmviewwindowmgr.h b/src/kchmviewwindowmgr.h
index 2b07544..d3a4931 100644
--- a/src/kchmviewwindowmgr.h
+++ b/src/kchmviewwindowmgr.h
@@ -26,13 +26,14 @@
#include "forwarddeclarations.h"
#include "kchmsettings.h"
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
-class KCHMViewWindowMgr : public QTabWidget
+class KCHMViewWindowMgr : public TQTabWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KCHMViewWindowMgr( QWidget *parent = 0 );
+ KCHMViewWindowMgr( TQWidget *tqparent = 0 );
~KCHMViewWindowMgr( );
// Returns a handle to a currently viewed window.
@@ -45,10 +46,10 @@ class KCHMViewWindowMgr : public QTabWidget
// Sets the tab name and updates Windows menu
void setTabName( KCHMViewWindow* window );
- void invalidate();
+ void tqinvalidate();
// Creates a Window menu
- void createMenu( KCHMMainWindow * parent );
+ void createMenu( KCHMMainWindow * tqparent );
// Saves and restores current settings between sessions
void restoreSettings( const KCHMSettings::viewindow_saved_settings_t& settings );
@@ -58,7 +59,7 @@ class KCHMViewWindowMgr : public QTabWidget
void closeCurrentWindow();
protected slots:
- void onTabChanged( QWidget * newtab );
+ void onTabChanged( TQWidget * newtab );
void onCloseWindow( int id );
void onActiveWindow( int id );
void updateCloseButtons();
@@ -66,7 +67,7 @@ class KCHMViewWindowMgr : public QTabWidget
private:
typedef struct
{
- QWidget * widget;
+ TQWidget * widget;
KCHMViewWindow * window;
int menuitem;
} tab_window_t;
@@ -74,16 +75,16 @@ class KCHMViewWindowMgr : public QTabWidget
void closeWindow( const tab_window_t& tab );
void deleteAllWindows();
void updateTabAccel();
- QKeySequence key(int);
+ TQKeySequence key(int);
- QMap<QWidget*,tab_window_t> m_Windows;
- typedef QMap<QWidget*,tab_window_t>::iterator WindowsIterator;
+ TQMap<TQWidget*,tab_window_t> m_Windows;
+ typedef TQMap<TQWidget*,tab_window_t>::iterator WindowsIterator;
- QValueList<int> m_idSlot;
- typedef QValueList<int>::iterator IdIterator;
+ TQValueList<int> m_idSlot;
+ typedef TQValueList<int>::iterator IdIterator;
- QPushButton * m_closeButton;
- KQPopupMenu * m_MenuWindow;
+ TQPushButton * m_closeButton;
+ KTQPopupMenu * m_MenuWindow;
int m_menuIdClose;
};