summaryrefslogtreecommitdiffstats
path: root/languages/cpp/problemreporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/problemreporter.h')
-rw-r--r--languages/cpp/problemreporter.h40
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;