[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    kmid & KSlider
From:       Greg Lee <lee () hawaii ! edu>
Date:       1999-08-03 21:43:27
[Download RAW message or body]


kdemultimedia/kmid uses KSlider, which doesn't seem to
be around anymore (CVS, HEAD).  I substituted "QSlider"
for "KSlider" and it seems to work ok.

Greg Lee <lee@Hawaii.edu>

-----------patch for kdemultimedia/kmid/-------
*** zreal/kmidclient.h	Tue Aug  3 10:46:13 1999
--- kmidclient.h	Tue Aug  3 10:47:35 1999
***************
*** 190,196 ****
      ChannelView *getChannelView(void) { return channelView; };
      KDisplayText *getKDisplayText(void) { return kdispt; };
  private:
!     KSlider *timebar;
      KSliderTime *timetags;
      QSlider *volumebar;
  
--- 190,196 ----
      ChannelView *getChannelView(void) { return channelView; };
      KDisplayText *getKDisplayText(void) { return kdispt; };
  private:
!     QSlider *timebar;
      KSliderTime *timetags;
      QSlider *volumebar;
  
*** zreal/kmidclient.cpp	Tue Aug  3 10:39:49 1999
--- kmidclient.cpp	Tue Aug  3 11:15:09 1999
***************
*** 36,41 ****
--- 36,42 ----
  #include <qlabel.h>
  #include <qkeycode.h>
  #include <qcombobox.h>
+ #include <qslider.h>
  
  #include <kapp.h>
  #include <kio_job.h>
***************
*** 85,96 ****
      //	currentsl=slman->getCollection(activecollection);
      itsme=0;
      playerProcessID=0;
!     timebar = new KSlider(0,240000,30000,60000,KSlider::Horizontal,this);
      timebar->setSteps(30000,60000);
      timebar->setValue(0);
      timebar->setGeometry(5,10,width()-5,15);
      timebar->show();
!     connect (timebar,SIGNAL(valueChanged(int)),this,SLOT(timebarChange(int)));
      
      timetags = new KSliderTime(timebar,this);
      timetags->setGeometry(5,10+timebar->height(),width()-5,16);
--- 86,97 ----
      //	currentsl=slman->getCollection(activecollection);
      itsme=0;
      playerProcessID=0;
!     timebar = new QSlider(0,240000,30000,60000,QSlider::Horizontal,this,"timebar");
      timebar->setSteps(30000,60000);
      timebar->setValue(0);
      timebar->setGeometry(5,10,width()-5,15);
      timebar->show();
!     connect (timebar,SIGNAL(valueChanged(int)),SLOT(timebarChange(int)));
      
      timetags = new KSliderTime(timebar,this);
      timetags->setGeometry(5,10+timebar->height(),width()-5,16);
*** zreal/kslidertime.h	Tue Aug  3 10:50:28 1999
--- kslidertime.h	Tue Aug  3 10:54:00 1999
***************
*** 27,45 ****
  #include <kslider.h>
  
  class QWidget;
! class KSlider;
  
  class KSliderTime : public QWidget
  {
    Q_OBJECT
  private:
  
! KSlider *kslider;
  
  int fontheight;
  public:
  
!   KSliderTime( KSlider *ksl, QWidget *parent = NULL, const char *name = NULL );
  
    int getFontHeight(void) {return fontheight;};
  
--- 27,45 ----
  #include <kslider.h>
  
  class QWidget;
! class QSlider;
  
  class KSliderTime : public QWidget
  {
    Q_OBJECT
  private:
  
! QSlider *kslider;
  
  int fontheight;
  public:
  
!   KSliderTime( QSlider *ksl, QWidget *parent = NULL, const char *name = NULL );
  
    int getFontHeight(void) {return fontheight;};
  
*** zreal/kslidertime.cpp	Tue Aug  3 10:54:55 1999
--- kslidertime.cpp	Tue Aug  3 10:55:26 1999
***************
*** 28,34 ****
  
  #define ARROW_LENGTH    13 
  
! KSliderTime::KSliderTime( KSlider *ksl, QWidget *parent, const char *name)
  					: QWidget (parent,name)
  {
  kslider=ksl;
--- 28,34 ----
  
  #define ARROW_LENGTH    13 
  
! KSliderTime::KSliderTime( QSlider *ksl, QWidget *parent, const char *name)
  					: QWidget (parent,name)
  {
  kslider=ksl;

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic