summaryrefslogtreecommitdiffstats
path: root/amarok/src/sliderwidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-18 03:28:57 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-18 03:28:57 +0000
commit1d9d9f5ce46f0220f7b1b350f5ad4e6dc5079ac6 (patch)
tree728d80ad748a95d7aa27ee020706dbe985e0e8cb /amarok/src/sliderwidget.h
parente9db3e45ed0189bbe18125b120da394a5bc8a832 (diff)
downloadamarok-1d9d9f5ce46f0220f7b1b350f5ad4e6dc5079ac6.tar.gz
amarok-1d9d9f5ce46f0220f7b1b350f5ad4e6dc5079ac6.zip
Finish TQt4 porting of Amarok
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/amarok@1228394 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'amarok/src/sliderwidget.h')
-rw-r--r--amarok/src/sliderwidget.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/amarok/src/sliderwidget.h b/amarok/src/sliderwidget.h
index 1fa7d63a..2bf4d7aa 100644
--- a/amarok/src/sliderwidget.h
+++ b/amarok/src/sliderwidget.h
@@ -35,9 +35,10 @@ class TQTimer;
namespace Amarok
{
- class Slider : public QSlider
+ class Slider : public TQSlider
{
Q_OBJECT
+ TQ_OBJECT
public:
Slider( Qt::Orientation, TQWidget*, uint max = 0 );
@@ -52,7 +53,7 @@ namespace Amarok
signals:
//we emit this when the user has specifically changed the slider
//so connect to it if valueChanged() is too generic
- //Qt also emits valueChanged( int )
+ //TQt also emits valueChanged( int )
void sliderReleased( int );
protected:
@@ -68,7 +69,7 @@ namespace Amarok
int adjustValue( int v ) const
{
int mp = (minValue() + maxValue()) / 2;
- return orientation() == Vertical ? mp - (v - mp) : v;
+ return orientation() == Qt::Vertical ? mp - (v - mp) : v;
}
private:
@@ -83,6 +84,7 @@ namespace Amarok
class PrettySlider : public Slider
{
Q_OBJECT
+ TQ_OBJECT
public:
typedef enum
@@ -92,7 +94,7 @@ namespace Amarok
} SliderMode;
PrettySlider( Qt::Orientation orientation, SliderMode mode,
- TQWidget *parent, uint max = 0 );
+ TQWidget *tqparent, uint max = 0 );
virtual void newBundle( const MetaBundle &bundle );
@@ -117,9 +119,10 @@ namespace Amarok
class VolumeSlider: public Slider
{
Q_OBJECT
+ TQ_OBJECT
public:
- VolumeSlider( TQWidget *parent, uint max = 0 );
+ VolumeSlider( TQWidget *tqparent, uint max = 0 );
protected:
virtual void paintEvent( TQPaintEvent* );