From 5f5e7c5455d52826b0bd50f64fcffb7695ce970d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= <slavek.banko@axis.cz>
Date: Sat, 29 Jun 2013 12:56:53 +0200
Subject: Initial TQt conversion

---
 src/documentlistview.h | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

(limited to 'src/documentlistview.h')

diff --git a/src/documentlistview.h b/src/documentlistview.h
index da2c6c5..aedb0b2 100644
--- a/src/documentlistview.h
+++ b/src/documentlistview.h
@@ -27,7 +27,7 @@
 #include <settings.h>
 #include <file.h>
 
-class QString;
+class TQString;
 class KURL;
 class KActionMenu;
 class KPopupMenu;
@@ -41,7 +41,7 @@ namespace KBibTeX
     {
         Q_OBJECT
     public:
-        DocumentListView( KBibTeX::DocumentWidget *docWidget, bool isReadOnly, QWidget *parent = 0, const char *name = 0 );
+        DocumentListView( KBibTeX::DocumentWidget *docWidget, bool isReadOnly, TQWidget *parent = 0, const char *name = 0 );
         ~DocumentListView();
 
         void setFactory( KXMLGUIFactory *factory, KXMLGUIClient *client );
@@ -52,7 +52,7 @@ namespace KBibTeX
         KBibTeX::DocumentListViewItem *insertItem( BibTeX::Element *item, KBibTeX::DocumentListViewItem *after );
 
         void deleteSelected();
-        const QValueList<BibTeX::Element*> selectedItems();
+        const TQValueList<BibTeX::Element*> selectedItems();
 //         void sendSelectedToLyx();
 
         void updateVisiblity();
@@ -70,9 +70,9 @@ namespace KBibTeX
         void copyReferences();
         void cut();
         bool paste();
-        bool paste( const QString& text, DocumentListViewItem *at );
+        bool paste( const TQString& text, DocumentListViewItem *at );
         void selectAll();
-        void filter( const QString& text, BibTeX::Element::FilterType filterType, BibTeX::EntryField::FieldType fieldType );
+        void filter( const TQString& text, BibTeX::Element::FilterType filterType, BibTeX::EntryField::FieldType fieldType );
         void setReadOnly( bool isReadOnly );
         void activateShowColumnMenu( int id );
 
@@ -80,10 +80,10 @@ namespace KBibTeX
         void insertItem( BibTeX::Element *item );
 
     private slots:
-        void slotDoubleClick( QListViewItem * item = NULL );
+        void slotDoubleClick( TQListViewItem * item = NULL );
         void setSortingColumn( int column );
-        void showBibtexListContextMenu( KListView *, QListViewItem *, const QPoint &p );
-        void slotDropped( QDropEvent* event, QListViewItem* item );
+        void showBibtexListContextMenu( KListView *, TQListViewItem *, const TQPoint &p );
+        void slotDropped( TQDropEvent* event, TQListViewItem* item );
         void saveColumnIndex();
         void restoreColumnIndex();
         void saveColumnWidths( int col = -1 );
@@ -92,12 +92,12 @@ namespace KBibTeX
         void makeNewItemsUnread();
 
     protected:
-        bool acceptDrag( QDropEvent* e ) const;
+        bool acceptDrag( TQDropEvent* e ) const;
         void startDrag();
 
-        virtual bool eventFilter( QObject *watched, QEvent *e );
+        virtual bool eventFilter( TQObject *watched, TQEvent *e );
 
-        virtual void keyPressEvent( QKeyEvent *e );
+        virtual void keyPressEvent( TQKeyEvent *e );
 
     private:
         static const int maxColumns = 256;
@@ -107,16 +107,16 @@ namespace KBibTeX
         KPopupMenu *m_headerMenu;
         KActionMenu *m_columnVisibleAction;
         bool m_isReadOnly;
-        QValueList<DocumentListViewItem*> m_unreadItems;
+        TQValueList<DocumentListViewItem*> m_unreadItems;
 
-        QString m_filter;
+        TQString m_filter;
         BibTeX::Element::FilterType m_filterType;
         BibTeX::EntryField::FieldType m_filterFieldType;
         int m_newElementCounter;
 
         void setItems();
-        QString selectedToBibTeXText();
-        QString selectedToBibTeXRefs();
+        TQString selectedToBibTeXText();
+        TQString selectedToBibTeXRefs();
 
         void showColumn( int col, int colWidth = 0xffff );
         void hideColumn( int col );
-- 
cgit v1.2.1