From 5f5e7c5455d52826b0bd50f64fcffb7695ce970d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 29 Jun 2013 12:56:53 +0200 Subject: Initial TQt conversion --- src/sidebar.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/sidebar.h') diff --git a/src/sidebar.h b/src/sidebar.h index 250cd8c..b612544 100644 --- a/src/sidebar.h +++ b/src/sidebar.h @@ -20,50 +20,50 @@ #ifndef KBIBTEXSIDEBAR_H #define KBIBTEXSIDEBAR_H -#include -#include +#include +#include #include #include -class QComboBox; -class QToolButton; +class TQComboBox; +class TQToolButton; class KListView; -class QListViewItem; +class TQListViewItem; class KPopupMenu; namespace KBibTeX { - class SideBar : public QWidget + class SideBar : public TQWidget { Q_OBJECT public: - SideBar( bool isReadOnly, QWidget *parent = 0, const char *name = 0 ); + SideBar( bool isReadOnly, TQWidget *parent = 0, const char *name = 0 ); ~SideBar(); void restoreState(); void setReadOnly( bool isReadOnly ); signals: - void selected( const QString& text, BibTeX::Element::FilterType, BibTeX::EntryField::FieldType fieldType ); + void selected( const TQString& text, BibTeX::Element::FilterType, BibTeX::EntryField::FieldType fieldType ); void valueRenamed(); public slots: void refreshLists( BibTeX::File *bibtexFile = NULL ); protected: - void resizeEvent( QResizeEvent *event ); + void resizeEvent( TQResizeEvent *event ); private: BibTeX::File *m_bibtexFile; - QToolButton *m_buttonToggleShowAll; - QToolButton *m_buttonToggleMultiSelect; - QComboBox *m_listTypeList; + TQToolButton *m_buttonToggleShowAll; + TQToolButton *m_buttonToggleMultiSelect; + TQComboBox *m_listTypeList; KListView *m_listAvailableItems; static const BibTeX::EntryField::FieldType importantFields[ 6 ]; bool m_isReadOnly; KPopupMenu *m_popupMenu; - QString m_oldText; + TQString m_oldText; void setupGUI(); @@ -71,17 +71,17 @@ namespace KBibTeX void prepareSearch(); void toggleShowAll( bool showAll ); void toggleMultiSelect( bool showAll ); - void showContextMenu( QListViewItem * item, const QPoint & pos ); + void showContextMenu( TQListViewItem * item, const TQPoint & pos ); void startRenaming(); - void endRenaming( QListViewItem * item, int col, const QString & text ); + void endRenaming( TQListViewItem * item, int col, const TQString & text ); }; - class SideBarListViewItem: QListViewItem + class SideBarListViewItem: TQListViewItem { public: - SideBarListViewItem( QListView *parent, QString label1, QString label2 ); + SideBarListViewItem( TQListView *parent, TQString label1, TQString label2 ); - int compare( QListViewItem* item, int column, bool ascending ) const; + int compare( TQListViewItem* item, int column, bool ascending ) const; }; } -- cgit v1.2.3