From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/cpp/problemreporter.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'languages/cpp/problemreporter.h') diff --git a/languages/cpp/problemreporter.h b/languages/cpp/problemreporter.h index d63c2cda..2d5741f4 100644 --- a/languages/cpp/problemreporter.h +++ b/languages/cpp/problemreporter.h @@ -21,8 +21,8 @@ #include #include -#include -#include +#include +#include #include #include #include "hashedstring.h" @@ -38,7 +38,7 @@ class KURL; class EfficientKListView { public: - typedef __gnu_cxx::hash_multimap Map; + typedef __gnu_cxx::hash_multimap Map; typedef std::pair< Map::const_iterator, Map::const_iterator > Range; EfficientKListView( KListView* list = 0 ) : m_list( list ), m_insertionNumber( 0 ) { } @@ -64,22 +64,22 @@ public: return m_list; } - void addItem( const QString& str, QListViewItem* item ) { + void addItem( const TQString& str, TQListViewItem* item ) { HashedString h( str ); m_insertionNumbers[h] = ++m_insertionNumber; m_map.insert( std::make_pair( h, item ) ); } - Range getRange( const QString& str ) const { + Range getRange( const TQString& str ) const { return m_map.equal_range( HashedString(str) ); } ///If the list has more then size items, the first items are removed until the size fits. void limitSize( int size ); - void removeAllItems( const QString& str ); + void removeAllItems( const TQString& str ); - bool hasItem( const QString& str ) const { + bool hasItem( const TQString& str ) const { Map::const_iterator it = m_map.find( HashedString(str) ); return it != m_map.end(); } @@ -106,36 +106,36 @@ class ProblemReporter: public QWidget { Q_OBJECT public: - ProblemReporter( CppSupportPart* part, QWidget* parent = 0, const char* name = 0 ); + ProblemReporter( CppSupportPart* part, TQWidget* parent = 0, const char* name = 0 ); virtual ~ProblemReporter(); - void removeAllProblems( const QString& filename ); - void reportProblem( const QString& fileName, const Problem& p ); - bool hasErrors(const QString& file); + void removeAllProblems( const TQString& filename ); + void reportProblem( const TQString& fileName, const Problem& p ); + bool hasErrors(const TQString& file); public slots: private slots: void slotPartAdded( KParts::Part* ); void slotActivePartChanged( KParts::Part* ); - void slotSelected( QListViewItem* ); + void slotSelected( TQListViewItem* ); void slotTabSelected( int tabindex ); void slotFilter(); void initCurrentList(); private: - QString levelToString( int level ) const; + TQString levelToString( int level ) const; int levelToMarkType( int level ) const; void InitListView( KListView* listview ); - void filterList( KListView* listview, const QString& level ); - void updateCurrentWith( EfficientKListView& listview, const QString& level, const QString& filename ); + void filterList( KListView* listview, const TQString& level ); + void updateCurrentWith( EfficientKListView& listview, const TQString& level, const TQString& filename ); private: - QGridLayout* m_gridLayout; - QTabBar* m_tabBar; - QWidgetStack* m_widgetStack; + TQGridLayout* m_gridLayout; + TQTabBar* m_tabBar; + TQWidgetStack* m_widgetStack; KListView* m_currentList; - QTimer* m_initCurrentTimer; + TQTimer* m_initCurrentTimer; EfficientKListView m_errorList; EfficientKListView m_fixmeList; EfficientKListView m_todoList; @@ -145,7 +145,7 @@ private: CppSupportPart* m_cppSupport; KTextEditor::MarkInterface* m_markIface; - QString m_fileName; + TQString m_fileName; ///@todo move these to cppsupportpart int m_active; -- cgit v1.2.1