summaryrefslogtreecommitdiffstats
path: root/src/listviewtooltip.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/listviewtooltip.h')
-rw-r--r--src/listviewtooltip.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/listviewtooltip.h b/src/listviewtooltip.h
index 07c3293..1fbd9e2 100644
--- a/src/listviewtooltip.h
+++ b/src/listviewtooltip.h
@@ -19,48 +19,48 @@
***************************************************************************/
#ifndef __LISTVIEWTOOLTIP_H__
#define __LISTVIEWTOOLTIP_H__
-#include <qtooltip.h>
-#include <qlistview.h>
-#include <qheader.h>
+#include <tqtooltip.h>
+#include <tqlistview.h>
+#include <tqheader.h>
#include <klocale.h>
/**
@author Christoph Thielecke <crissi99@gmx.de>
*/
-class ListViewToolTip : public QToolTip
+class ListViewToolTip : public TQToolTip
{
public:
- ListViewToolTip ( QListView* parent );
+ ListViewToolTip ( TQListView* parent );
protected:
- void maybeTip ( const QPoint& p );
+ void maybeTip ( const TQPoint& p );
private:
- QListView* listView;
+ TQListView* listView;
};
-inline ListViewToolTip::ListViewToolTip ( QListView* parent ) : QToolTip ( parent->viewport() ), listView ( parent ) {}
-inline void ListViewToolTip::maybeTip ( const QPoint& p )
+inline ListViewToolTip::ListViewToolTip ( TQListView* parent ) : TQToolTip ( parent->viewport() ), listView ( parent ) {}
+inline void ListViewToolTip::maybeTip ( const TQPoint& p )
{
if ( !listView )
return;
- const QListViewItem* item = listView->itemAt ( p );
+ const TQListViewItem* item = listView->itemAt ( p );
if ( !item )
return;
- const QRect itemRect = listView->itemRect ( item );
- if ( !itemRect.isValid() )
+ const TQRect tqitemRect = listView->tqitemRect ( item );
+ if ( !tqitemRect.isValid() )
return;
const int col = listView->header()->sectionAt ( p.x() );
const int row = listView->header()->sectionAt ( p.y() );
if ( col == -1 && row == -1 )
return;
- const QRect headerRect = listView->header()->sectionRect ( col );
+ const TQRect headerRect = listView->header()->sectionRect ( col );
if ( !headerRect.isValid() )
return;
-// const QRect cellRect ( headerRect.left(), itemRect.top(),
-// headerRect.width(), itemRect.height() );
- const QRect cellRect ( headerRect.left(), itemRect.top(), 400, 200 );
- QString tipStr;
- tipStr = QString ( "<h2>"+item->text ( 0 )+"</h2><ul><li>"+i18n("Path:")+" "+item->text(5)+"</li><li>"+i18n("Usability:")+" "+item->text(3)+"</li><li>"+i18n("Comment:")+ " "+item->text(6)+"</li></ul>");
+// const TQRect cellRect ( headerRect.left(), tqitemRect.top(),
+// headerRect.width(), tqitemRect.height() );
+ const TQRect cellRect ( headerRect.left(), tqitemRect.top(), 400, 200 );
+ TQString tipStr;
+ tipStr = TQString ( "<h2>"+item->text ( 0 )+"</h2><ul><li>"+i18n("Path:")+" "+item->text(5)+"</li><li>"+i18n("Usability:")+" "+item->text(3)+"</li><li>"+i18n("Comment:")+ " "+item->text(6)+"</li></ul>");
tip ( cellRect, tipStr );
}