summaryrefslogtreecommitdiffstats
path: root/amarok/src/statistics.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-20 06:53:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-20 06:53:52 +0000
commit3a09386ad170dafdce88c5dcd70275cc7d4081e9 (patch)
tree0f9544da38cdb9c5cc20ad9d695588413b4cd5f9 /amarok/src/statistics.h
parent36a9c1916513474b11c59a9060cbaf8770d1bbc0 (diff)
downloadamarok-3a09386ad170dafdce88c5dcd70275cc7d4081e9.tar.gz
amarok-3a09386ad170dafdce88c5dcd70275cc7d4081e9.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/amarok@1165727 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'amarok/src/statistics.h')
-rw-r--r--amarok/src/statistics.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/amarok/src/statistics.h b/amarok/src/statistics.h
index cbad3711..1d3a370f 100644
--- a/amarok/src/statistics.h
+++ b/amarok/src/statistics.h
@@ -19,11 +19,11 @@
#include <kdialogbase.h> //baseclass
#include <klistview.h> //baseclass
-#include <qtimer.h>
+#include <tqtimer.h>
class ClickLineEdit;
-class QColor;
-class QTimer;
+class TQColor;
+class TQTimer;
class StatisticsList;
class StatisticsItem;
@@ -34,7 +34,7 @@ class Statistics : public KDialogBase
Q_OBJECT
public:
- Statistics( QWidget *parent = 0, const char *name = 0 );
+ Statistics( TQWidget *parent = 0, const char *name = 0 );
~Statistics();
static Statistics *instance() { return s_instance; }
@@ -46,7 +46,7 @@ class Statistics : public KDialogBase
private:
StatisticsList *m_listView;
ClickLineEdit *m_lineEdit;
- QTimer *m_timer;
+ TQTimer *m_timer;
static Statistics *s_instance;
};
@@ -56,25 +56,25 @@ class StatisticsList : public KListView
Q_OBJECT
public:
- StatisticsList( QWidget *parent, const char *name=0 );
+ StatisticsList( TQWidget *parent, const char *name=0 );
~StatisticsList() {};
- QString filter() { return m_filter; }
- void setFilter( const QString &filter ) { m_filter = filter; }
+ TQString filter() { return m_filter; }
+ void setFilter( const TQString &filter ) { m_filter = filter; }
void renderView();
void refreshView();
private slots:
void clearHover();
- void itemClicked( QListViewItem *item );
- void showContextMenu( QListViewItem *item, const QPoint &p, int );
- void startHover( QListViewItem *item );
+ void itemClicked( TQListViewItem *item );
+ void showContextMenu( TQListViewItem *item, const TQPoint &p, int );
+ void startHover( TQListViewItem *item );
private:
void startDrag();
- void viewportPaintEvent( QPaintEvent* );
+ void viewportPaintEvent( TQPaintEvent* );
void expandInformation( StatisticsItem *item, bool refresh=false );
- static QString subText( const QString &score, const QString &rating );
+ static TQString subText( const TQString &score, const TQString &rating );
StatisticsItem *m_trackItem;
StatisticsItem *m_mostplayedItem;
@@ -83,23 +83,23 @@ class StatisticsList : public KListView
StatisticsItem *m_genreItem;
StatisticsItem *m_newestItem;
- QListViewItem *m_currentItem;
- QString m_filter;
+ TQListViewItem *m_currentItem;
+ TQString m_filter;
bool m_expanded;
};
/// The listview items which are the headers for the categories
-class StatisticsItem : public QObject, public KListViewItem
+class StatisticsItem : public TQObject, public KListViewItem
{
Q_OBJECT
public:
- StatisticsItem( QString text, StatisticsList *parent, KListViewItem *after=0, const char *name=0 );
+ StatisticsItem( TQString text, StatisticsList *parent, KListViewItem *after=0, const char *name=0 );
~StatisticsItem() {};
- void paintCell( QPainter *p, const QColorGroup &cg, int column, int width, int align );
- void paintFocus( QPainter*, const QColorGroup& , const QRect& ) {}; //reimp
- void setIcon( const QString &icon );
+ void paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int align );
+ void paintFocus( TQPainter*, const TQColorGroup& , const TQRect& ) {}; //reimp
+ void setIcon( const TQString &icon );
void enterHover();
void leaveHover();
@@ -107,7 +107,7 @@ class StatisticsItem : public QObject, public KListViewItem
void setExpanded( const bool b ) { m_isExpanded = b; }
const bool isExpanded() { return m_isExpanded; }
- void setSubtext( QString t ) { m_subText = t; }
+ void setSubtext( TQString t ) { m_subText = t; }
int rtti() const { return RTTI; }
static const int RTTI = 1000; //header item
@@ -120,50 +120,50 @@ class StatisticsItem : public QObject, public KListViewItem
void slotAnimTimer();
private:
- QColor blendColors( const QColor& color1, const QColor& color2, int percent );
+ TQColor blendColors( const TQColor& color1, const TQColor& color2, int percent );
- QTimer *m_animTimer;
+ TQTimer *m_animTimer;
bool m_animEnter;
int m_animCount;
bool m_isActive;
bool m_isExpanded;
- QString m_subText;
+ TQString m_subText;
};
/// Listview items for the children of expanded items (the actual results)
class StatisticsDetailedItem : public KListViewItem
{
public:
- StatisticsDetailedItem( const QString &text, const QString &subtext, StatisticsItem *parent,
+ StatisticsDetailedItem( const TQString &text, const TQString &subtext, StatisticsItem *parent,
StatisticsDetailedItem *after=0, const char *name=0 );
~StatisticsDetailedItem() {};
enum ItemType { NONE, TRACK, ARTIST, ALBUM, GENRE, HISTORY };
void setup();
- void paintCell( QPainter *p, const QColorGroup &cg, int column, int width, int align );
+ void paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int align );
void setItemType( const ItemType t ) { m_type = t; }
const ItemType itemType() { return m_type; }
- void setUrl( QString &url ) { m_url = url; }
- const QString url() { return m_url; }
+ void setUrl( TQString &url ) { m_url = url; }
+ const TQString url() { return m_url; }
- void setSubtext( QString t ) { m_subText = t; }
- QString getSQL(); //get the sql query for all the urls the item represents
+ void setSubtext( TQString t ) { m_subText = t; }
+ TQString getSQL(); //get the sql query for all the urls the item represents
KURL::List getURLs();
- void paintFocus( QPainter*, const QColorGroup& , const QRect& ) {}; //reimp
+ void paintFocus( TQPainter*, const TQColorGroup& , const TQRect& ) {}; //reimp
int rtti() const { return RTTI; }
static const int RTTI = 1001; //detailed item
private:
ItemType m_type;
- QString m_url;
- QString m_subText;
+ TQString m_url;
+ TQString m_subText;
};