diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /languages/cpp/problemreporter.h | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/problemreporter.h')
-rw-r--r-- | languages/cpp/problemreporter.h | 40 |
1 files changed, 20 insertions, 20 deletions
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 <klistview.h> #include <klineedit.h> -#include <qguardedptr.h> -#include <qdatetime.h> +#include <tqguardedptr.h> +#include <tqdatetime.h> #include <map> #include <ext/hash_map> #include "hashedstring.h" @@ -38,7 +38,7 @@ class KURL; class EfficientKListView { public: - typedef __gnu_cxx::hash_multimap<HashedString, QListViewItem*> Map; + typedef __gnu_cxx::hash_multimap<HashedString, TQListViewItem*> 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; |