diff options
Diffstat (limited to 'bibletime/frontend/mainindex/cmainindex.h')
-rw-r--r-- | bibletime/frontend/mainindex/cmainindex.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/bibletime/frontend/mainindex/cmainindex.h b/bibletime/frontend/mainindex/cmainindex.h index be9f9f4..56cd569 100644 --- a/bibletime/frontend/mainindex/cmainindex.h +++ b/bibletime/frontend/mainindex/cmainindex.h @@ -21,9 +21,9 @@ #include "util/cpointers.h" //Qt includes -#include <qwidget.h> -#include <qtimer.h> -#include <qtooltip.h> +#include <tqwidget.h> +#include <tqtimer.h> +#include <tqtooltip.h> //KDE includes #include <kaction.h> @@ -37,28 +37,28 @@ class CSearchDialog; class CMainIndex : public KListView { Q_OBJECT - class ToolTip : public QToolTip { + class ToolTip : public TQToolTip { public: ToolTip(CMainIndex* parent); virtual ~ToolTip() {} /** * Displays a tooltip for position p using the getToolTip() function of CGroupManagerItem */ - virtual void maybeTip( const QPoint &pos); + virtual void maybeTip( const TQPoint &pos); private: CMainIndex* m_mainIndex; }; public: - CMainIndex(QWidget *parent); + CMainIndex(TQWidget *parent); virtual ~CMainIndex(); void initTree(); /** * Opens the searchdialog using the given modules using the given search text. */ - void emitModulesChosen( ListCSwordModuleInfo modules, QString key ); + void emitModulesChosen( ListCSwordModuleInfo modules, TQString key ); /** * Saves the bookmarks to disk */ @@ -78,19 +78,19 @@ protected: // Protected methods /** * Reimplementation. Adds the given group to the tree. */ - virtual void addGroup( const CItemBase::Type type, const QString language); + virtual void addGroup( const CItemBase::Type type, const TQString language); /** - * Initialize the SIGNAL<->SLOT connections + * Initialize the SIGNAL<->TQT_SLOT connections */ void initConnections(); /** * Reimplementation. Returns the drag object for the current selection. */ - virtual QDragObject* dragObject(); + virtual TQDragObject* dragObject(); /** * Reimplementation from KListView. Returns true if the drag is acceptable for the listview. */ - virtual bool acceptDrag( QDropEvent* event ) const; + virtual bool acceptDrag( TQDropEvent* event ) const; /** * Returns the correct KAction object for the given type of action. */ @@ -102,12 +102,12 @@ protected: // Protected methods /** * Reimplementation to support the items dragEnter and dragLeave functions. */ - virtual void contentsDragMoveEvent( QDragMoveEvent* event ); + virtual void contentsDragMoveEvent( TQDragMoveEvent* event ); /** * Reimplementation. */ - virtual void contentsDragLeaveEvent( QDragLeaveEvent* e ); - QRect drawItemHighlighter(QPainter* painter, QListViewItem * item ); + virtual void contentsDragLeaveEvent( TQDragLeaveEvent* e ); + TQRect drawItemHighlighter(TQPainter* painter, TQListViewItem * item ); /** Read settings like open groups or scrollbar position and restore them */ void readSettings(); @@ -122,12 +122,12 @@ protected slots: // Protected slots /** * Is called when an item was clicked/double clicked. */ - void slotExecuted( QListViewItem* ); - void dropped( QDropEvent*, QListViewItem*, QListViewItem*); + void slotExecuted( TQListViewItem* ); + void dropped( TQDropEvent*, TQListViewItem*, TQListViewItem*); /** * Shows the context menu at the given position. */ - void contextMenu(KListView*, QListViewItem*, const QPoint&); + void contextMenu(KListView*, TQListViewItem*, const TQPoint&); /** * Adds a new subfolder to the current item. */ @@ -168,7 +168,7 @@ protected slots: // Protected slots /** * Is called when items should be moved. */ - void moved( QPtrList<QListViewItem>& items, QPtrList<QListViewItem>& afterFirst, QPtrList<QListViewItem>& afterNow); + void moved( TQPtrList<TQListViewItem>& items, TQPtrList<TQListViewItem>& afterFirst, TQPtrList<TQListViewItem>& afterNow); /** * Opens a plain text editor window to edit the modules content. */ @@ -182,8 +182,8 @@ private: CSearchDialog* m_searchDialog; ToolTip* m_toolTip; bool m_itemsMovable; - QListViewItem* m_autoOpenFolder; - QTimer m_autoOpenTimer; + TQListViewItem* m_autoOpenFolder; + TQTimer m_autoOpenTimer; /** * Initializes the view. @@ -221,11 +221,11 @@ signals: /** * Is emitted when a module should be opened, */ - void createReadDisplayWindow( ListCSwordModuleInfo, const QString& ); + void createReadDisplayWindow( ListCSwordModuleInfo, const TQString& ); /** * Is emitted when a write window should be created. */ - void createWriteDisplayWindow( CSwordModuleInfo*, const QString&, const CDisplayWindow::WriteWindowType& ); + void createWriteDisplayWindow( CSwordModuleInfo*, const TQString&, const CDisplayWindow::WriteWindowType& ); void signalSwordSetupChanged(); }; |