diff options
author | Slávek Banko <[email protected]> | 2013-06-29 12:56:53 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-07-04 03:11:35 +0200 |
commit | 5f5e7c5455d52826b0bd50f64fcffb7695ce970d (patch) | |
tree | c8ee8792d3fb139365abbf70c2255f1e69d2aa34 /src/documentlistview.h | |
parent | 251c9a439759c830d34c70683d0fc9454d703010 (diff) | |
download | kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.tar.gz kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.zip |
Initial TQt conversion
Diffstat (limited to 'src/documentlistview.h')
-rw-r--r-- | src/documentlistview.h | 30 |
1 files changed, 15 insertions, 15 deletions
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 ); |