Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/23/head
Michele Calgaro 1 year ago
parent e0e0d1583b
commit 8800fb9ac5
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -250,7 +250,7 @@ void CoverFrame::mousePressEvent( TQMouseEvent *e )
TQPixmap pix;
switch ( e->button() ) {
case Qt::LeftButton: {
case TQt::LeftButton: {
if ( imagePath.isEmpty() )
break;
pix.convertFromImage( TQImage( imagePath ) );
@ -258,7 +258,7 @@ void CoverFrame::mousePressEvent( TQMouseEvent *e )
popup( pix );
break;
}
case Qt::RightButton: {
case TQt::RightButton: {
TQPopupMenu pop( this );
pop.insertItem( i18n("Choose a Cover..."), 1 );
pop.insertItem( i18n("Gallery..."), 2 );
@ -291,7 +291,7 @@ PlayList::PlayList( TQWidget* parent, TQObject *objParent, const char *name ) :
hSplit->moveToFirst( panel );
hSplit->setResizeMode( panel, TQSplitter::KeepSize );
vSplit = new TQSplitter( Qt::Vertical, panel );
vSplit = new TQSplitter( TQt::Vertical, panel );
vSplit->setOpaqueResize( true );
TQWidget *vb = new TQWidget( vSplit );
TDEToolBar *tb = new TDEToolBar( vb );

@ -1293,7 +1293,7 @@ LnbConfig::LnbConfig( LNB *b, TQWidget *parent ) :
vb->addWidget( cmulti );
grid = new TQGridLayout( 0, 1, 1 );
nLO = new TQButtonGroup( 3, Qt::Horizontal, page );
nLO = new TQButtonGroup( 3, TQt::Horizontal, page );
connect( nLO, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(setDual(int)) );
new TQRadioButton( i18n("Dual LO"), nLO );
new TQRadioButton( i18n("Single LO"), nLO );

@ -1632,7 +1632,7 @@ int DvbPanel::getSNR( int device )
void DvbPanel::dvbNewTimer( TQString name, TQString channel, TQString datetime, TQString duration )
{
newTimer( channel, name, TQDateTime::fromString( datetime, Qt::ISODate ), TQTime::fromString( duration ), false );
newTimer( channel, name, TQDateTime::fromString( datetime, TQt::ISODate ), TQTime::fromString( duration ), false );
}
@ -2594,7 +2594,7 @@ bool DvbPanel::getTimerList()
t->channel = s.left( pos );
s = s.right( s.length()-pos-1 );
pos = s.find("|");
t->begin = TQDateTime::fromString( s.left( pos ), Qt::ISODate );
t->begin = TQDateTime::fromString( s.left( pos ), TQt::ISODate );
s = s.right( s.length()-pos-1 );
pos = s.find("|");
t->duration = TQTime::fromString( s.left( pos ) );

@ -312,7 +312,7 @@ void KEvents::mouseClickedSlot( int btn, TQListViewItem *it, const TQPoint &p, i
EListViewItem *ei = (EListViewItem*)it;
switch ( btn ) {
case Qt::RightButton : {
case TQt::RightButton : {
TQPopupMenu *pop = new TQPopupMenu();
pop->insertItem( i18n("View All Programs"), 1 );
pop->insertSeparator();
@ -334,7 +334,7 @@ void KEvents::mouseClickedSlot( int btn, TQListViewItem *it, const TQPoint &p, i
delete pop;
break;
}
case Qt::LeftButton : {
case TQt::LeftButton : {
s = "<qt><h3><font color=\"darkblue\">";
s = s+it->text(0)+"</font></h3>";
if ( !ei->event->title.isEmpty() ) {

@ -324,7 +324,7 @@ void CdWidget::pauseLiveTV()
if ( !dump )
return;
if ( dump->running() ) {
timeShiftFileName = cdShiftDir+"DVBClient-"+TQDateTime::currentDateTime().toString( Qt::ISODate )+".ts";
timeShiftFileName = cdShiftDir+"DVBClient-"+TQDateTime::currentDateTime().toString( TQt::ISODate )+".ts";
if ( dump->doPause( timeShiftFileName ) ) emit setTimeShiftFilename( timeShiftFileName );
}
}

@ -718,7 +718,7 @@ void GStreamerPart::initActions()
new TDEAction(i18n("&Video Settings"), "configure", Key_V, TQT_TQOBJECT(this), TQT_SLOT(slotVideoSettings()), actionCollection(), "video_settings");
new TDEAction(i18n("Track &Info"), "application-vnd.tde.info", 0 , TQT_TQOBJECT(this), TQT_SLOT(slotInfo()), actionCollection(), "player_track_info");
m_volume = new TQSlider(Qt::Horizontal, 0);
m_volume = new TQSlider(TQt::Horizontal, 0);
TQToolTip::add(m_volume, i18n("Volume"));
m_volume->setRange(0, 100);
m_volume->setSteps(1, 5);

@ -41,7 +41,7 @@
Timer::Timer() : TQObject()
{
m_label = new TQLabel( "0:00 / 0:00", 0 );
m_slider = new TQSlider( Qt::Horizontal, 0 );
m_slider = new TQSlider( TQt::Horizontal, 0 );
m_slider->setMinValue( 0 );
m_slider->setEnabled( false );

@ -115,7 +115,7 @@ void VideoWindow::paintEvent(TQPaintEvent */*event*/)
void VideoWindow::mousePressEvent(TQMouseEvent* mev)
{
if ( mev->button()==Qt::RightButton ) {
if ( mev->button()==TQt::RightButton ) {
emit signalRightClick( mev->globalPos() );
mev->accept();
}

@ -40,7 +40,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contr, int bright, TQWidget *
TQLabel* hueText = new TQLabel(i18n("Hue"), page);
hueText->setAlignment(AlignRight);
m_hueSlider = new TQSlider(Qt::Horizontal, page);
m_hueSlider = new TQSlider(TQt::Horizontal, page);
m_hueSlider->setRange(-1000, 1000);
m_hueSlider->setSteps(10, 100);
m_hueSlider->setValue(hue);
@ -50,7 +50,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contr, int bright, TQWidget *
TQLabel* satText = new TQLabel(i18n("Saturation"), page);
satText->setAlignment(AlignRight);
m_satSlider = new TQSlider(Qt::Horizontal, page);
m_satSlider = new TQSlider(TQt::Horizontal, page);
m_satSlider->setRange(-1000, 1000);
m_satSlider->setSteps(10, 100);
m_satSlider->setValue(sat);
@ -60,7 +60,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contr, int bright, TQWidget *
TQLabel* contrastText = new TQLabel(i18n("Contrast"), page);
contrastText->setAlignment(AlignRight);
m_contrastSlider = new TQSlider(Qt::Horizontal, page);
m_contrastSlider = new TQSlider(TQt::Horizontal, page);
m_contrastSlider->setRange(-1000, 1000);
m_contrastSlider->setSteps(10, 100);
m_contrastSlider->setValue(contr);
@ -70,7 +70,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contr, int bright, TQWidget *
TQLabel* brightText = new TQLabel(i18n("Brightness"), page);
brightText->setAlignment(AlignRight);
m_brightSlider = new TQSlider(Qt::Horizontal, page);
m_brightSlider = new TQSlider(TQt::Horizontal, page);
m_brightSlider->setRange(-1000, 1000);
m_brightSlider->setSteps(10, 100);
m_brightSlider->setValue(bright);

@ -49,7 +49,7 @@ DeinterlaceQuality::DeinterlaceQuality(TQWidget* filterDialog, TQWidget *parent,
grid->setSpacing(5);
grid->setMargin(5);
m_qualitySlider = new TQSlider( Qt::Vertical, mainWidget );
m_qualitySlider = new TQSlider( TQt::Vertical, mainWidget );
m_qualitySlider->setRange(0, 5);
m_qualitySlider->setSteps(1, 1);
m_qualitySlider->setTickmarks(TQSlider::Right);

@ -54,7 +54,7 @@ Equalizer::Equalizer(TQWidget *parent, const char *name)
equalGrid->setMargin(10);
TQLabel* eq30Text = new TQLabel("30Hz", equalGroup);
eq30Slider = new TQSlider(Qt::Vertical, equalGroup);
eq30Slider = new TQSlider(TQt::Vertical, equalGroup);
eq30Slider->setRange(-100, -1);
eq30Slider->setSteps(1, 10);
eq30Slider->setTickInterval(50);
@ -64,7 +64,7 @@ Equalizer::Equalizer(TQWidget *parent, const char *name)
equalGrid->addWidget(eq30Slider, 0, 0);
TQLabel* eq60Text = new TQLabel("60Hz", equalGroup);
eq60Slider = new TQSlider(Qt::Vertical, equalGroup);
eq60Slider = new TQSlider(TQt::Vertical, equalGroup);
eq60Slider->setRange(-100, -1);
eq60Slider->setSteps(1, 10);
connect(eq60Slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SIGNAL(signalNewEq60(int)));
@ -72,7 +72,7 @@ Equalizer::Equalizer(TQWidget *parent, const char *name)
equalGrid->addWidget(eq60Slider, 0, 1);
TQLabel* eq125Text = new TQLabel("125Hz", equalGroup);
eq125Slider = new TQSlider(Qt::Vertical, equalGroup);
eq125Slider = new TQSlider(TQt::Vertical, equalGroup);
eq125Slider->setRange(-100, -1);
eq125Slider->setSteps(1, 10);
connect(eq125Slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SIGNAL(signalNewEq125(int)));
@ -80,7 +80,7 @@ Equalizer::Equalizer(TQWidget *parent, const char *name)
equalGrid->addWidget(eq125Slider, 0, 2);
TQLabel* eq250Text = new TQLabel("250Hz", equalGroup);
eq250Slider = new TQSlider(Qt::Vertical, equalGroup);
eq250Slider = new TQSlider(TQt::Vertical, equalGroup);
eq250Slider->setRange(-100, -1);
eq250Slider->setSteps(1, 10);
connect(eq250Slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SIGNAL(signalNewEq250(int)));
@ -88,7 +88,7 @@ Equalizer::Equalizer(TQWidget *parent, const char *name)
equalGrid->addWidget(eq250Slider, 0, 3);
TQLabel* eq500Text = new TQLabel("500Hz", equalGroup);
eq500Slider = new TQSlider(Qt::Vertical, equalGroup);
eq500Slider = new TQSlider(TQt::Vertical, equalGroup);
eq500Slider->setRange(-100, -1);
eq500Slider->setSteps(1, 10);
connect(eq500Slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SIGNAL(signalNewEq500(int)));
@ -96,7 +96,7 @@ Equalizer::Equalizer(TQWidget *parent, const char *name)
equalGrid->addWidget(eq500Slider, 0, 4);
TQLabel* eq1kText = new TQLabel("1kHz", equalGroup);
eq1kSlider = new TQSlider(Qt::Vertical, equalGroup);
eq1kSlider = new TQSlider(TQt::Vertical, equalGroup);
eq1kSlider->setRange(-100, -1);
eq1kSlider->setSteps(1, 10);
connect(eq1kSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SIGNAL(signalNewEq1k(int)));
@ -104,7 +104,7 @@ Equalizer::Equalizer(TQWidget *parent, const char *name)
equalGrid->addWidget(eq1kSlider, 0, 5);
TQLabel* eq2kText = new TQLabel("2kHz", equalGroup);
eq2kSlider = new TQSlider(Qt::Vertical, equalGroup);
eq2kSlider = new TQSlider(TQt::Vertical, equalGroup);
eq2kSlider->setRange(-100, -1);
eq2kSlider->setSteps(1, 10);
connect(eq2kSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SIGNAL(signalNewEq2k(int)));
@ -112,7 +112,7 @@ Equalizer::Equalizer(TQWidget *parent, const char *name)
equalGrid->addWidget(eq2kSlider, 0, 6);
TQLabel* eq4kText = new TQLabel("4kHz", equalGroup);
eq4kSlider = new TQSlider(Qt::Vertical, equalGroup);
eq4kSlider = new TQSlider(TQt::Vertical, equalGroup);
eq4kSlider->setRange(-100, -1);
eq4kSlider->setSteps(1, 10);
connect(eq4kSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SIGNAL(signalNewEq4k(int)));
@ -120,7 +120,7 @@ Equalizer::Equalizer(TQWidget *parent, const char *name)
equalGrid->addWidget(eq4kSlider, 0, 7);
TQLabel* eq8kText = new TQLabel("8kHz", equalGroup);
eq8kSlider = new TQSlider(Qt::Vertical, equalGroup);
eq8kSlider = new TQSlider(TQt::Vertical, equalGroup);
eq8kSlider->setRange(-100, -1);
eq8kSlider->setSteps(1, 10);
connect(eq8kSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SIGNAL(signalNewEq8k(int)));
@ -128,7 +128,7 @@ Equalizer::Equalizer(TQWidget *parent, const char *name)
equalGrid->addWidget(eq8kSlider, 0, 8);
TQLabel* eq16kText = new TQLabel("16kHz", equalGroup);
eq16kSlider = new TQSlider(Qt::Vertical, equalGroup);
eq16kSlider = new TQSlider(TQt::Vertical, equalGroup);
eq16kSlider->setRange(-100, -1);
eq16kSlider->setSteps(1, 10);
eq16kSlider->setTickInterval(50);

@ -2793,14 +2793,14 @@ void KXineWidget::mousePressEvent(TQMouseEvent* mev)
if (!m_xineReady) return;
int cur = cursor().shape();
if (mev->button() == Qt::MidButton)
if (mev->button() == TQt::MidButton)
{
emit signalMiddleClick();
mev->ignore();
return;
}
if (mev->button() == Qt::RightButton)
if (mev->button() == TQt::RightButton)
{
if ( (cur == TQt::ArrowCursor) || (cur == TQt::BlankCursor) )
{
@ -2810,7 +2810,7 @@ void KXineWidget::mousePressEvent(TQMouseEvent* mev)
}
}
if (mev->button() == Qt::LeftButton)
if (mev->button() == TQt::LeftButton)
{
if ( (cur == TQt::ArrowCursor) || (cur == TQt::BlankCursor) )
{

@ -26,7 +26,7 @@
#include "positionslider.moc"
PositionSlider::PositionSlider(Qt::Orientation o, TQWidget *parent, const char* name) :
PositionSlider::PositionSlider(TQt::Orientation o, TQWidget *parent, const char* name) :
TQSlider(o, parent, name), m_userChange(false)
{
connect(this, TQT_SIGNAL(sliderPressed()), this ,TQT_SLOT(slotSliderPressed()));
@ -93,7 +93,7 @@ bool PositionSlider::eventFilter(TQObject *obj, TQEvent *ev)
TQMouseEvent *e = (TQMouseEvent *)ev;
TQRect r = sliderRect();
if( r.contains( e->pos() ) || e->button() != Qt::LeftButton )
if( r.contains( e->pos() ) || e->button() != TQt::LeftButton )
return false;
int range = maxValue() - minValue();

@ -31,7 +31,7 @@ class PositionSlider : public TQSlider
public:
PositionSlider(Qt::Orientation, TQWidget * parent = 0, const char* name = 0);
PositionSlider(TQt::Orientation, TQWidget * parent = 0, const char* name = 0);
virtual ~PositionSlider();
void setPosition(int, bool);

@ -49,7 +49,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
TQLabel* hueText = new TQLabel(i18n("Hue"), videoGroup);
hueText->setAlignment(AlignRight);
m_hueSlider = new TQSlider(Qt::Horizontal, videoGroup);
m_hueSlider = new TQSlider(TQt::Horizontal, videoGroup);
m_hueSlider->setRange(0, 65535);
m_hueSlider->setSteps(10, 1000);
m_hueSlider->setValue(hue);
@ -59,7 +59,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
TQLabel* satText = new TQLabel(i18n("Saturation"), videoGroup);
satText->setAlignment(AlignRight);
m_satSlider = new TQSlider(Qt::Horizontal, videoGroup);
m_satSlider = new TQSlider(TQt::Horizontal, videoGroup);
m_satSlider->setRange(0, 65535);
m_satSlider->setSteps(10, 1000);
m_satSlider->setValue(sat);
@ -69,7 +69,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
TQLabel* contrastText = new TQLabel(i18n("Contrast"), videoGroup);
contrastText->setAlignment(AlignRight);
m_contrastSlider = new TQSlider(Qt::Horizontal, videoGroup);
m_contrastSlider = new TQSlider(TQt::Horizontal, videoGroup);
m_contrastSlider->setRange(0, 65535);
m_contrastSlider->setSteps(10, 1000);
m_contrastSlider->setValue(contrast);
@ -79,7 +79,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
TQLabel* brightText = new TQLabel(i18n("Brightness"), videoGroup);
brightText->setAlignment(AlignRight);
m_brightSlider = new TQSlider(Qt::Horizontal, videoGroup);
m_brightSlider = new TQSlider(TQt::Horizontal, videoGroup);
m_brightSlider->setRange(0, 65535);
m_brightSlider->setSteps(10, 1000);
m_brightSlider->setValue(bright);
@ -89,7 +89,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
TQLabel* avOffsetText = new TQLabel(i18n("Audio/Video Offset"), videoGroup);
avOffsetText->setAlignment(AlignRight);
m_avOffsetSlider = new TQSlider(Qt::Horizontal, videoGroup);
m_avOffsetSlider = new TQSlider(TQt::Horizontal, videoGroup);
m_avOffsetSlider->setRange(-90000, 90000); // +/- 1 sec
m_avOffsetSlider->setSteps(100, 10000);
m_avOffsetSlider->setValue(avOffset);
@ -99,7 +99,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
TQLabel* spuOffsetText = new TQLabel(i18n("Subtitle Offset"), videoGroup);
spuOffsetText->setAlignment(AlignRight);
m_spuOffsetSlider = new TQSlider(Qt::Horizontal, videoGroup);
m_spuOffsetSlider = new TQSlider(TQt::Horizontal, videoGroup);
m_spuOffsetSlider->setRange(-90000, 90000); // +/- 1 sec
m_spuOffsetSlider->setSteps(100, 10000);
m_spuOffsetSlider->setValue(spuOffset);

@ -125,7 +125,7 @@ KaffeinePreferences::KaffeinePreferences() : KDialogBase(IconList,i18n("Kaffeine
//-----------misc----------------
TQFrame *misc = addPage(i18n("Misc"), i18n("Miscellaneous Options"),TDEGlobal::iconLoader()->loadIcon("misc", TDEIcon::Panel, TDEIcon::SizeMedium));
vb = new TQVBoxLayout( misc, 6, 6 );
gb = new TQGroupBox(1, Qt::Horizontal, "", misc);
gb = new TQGroupBox(1, TQt::Horizontal, "", misc);
gb->setInsideMargin(20);
gb->setInsideSpacing(6);

@ -95,8 +95,8 @@ void SystemTray::wheelEvent(TQWheelEvent *e)
void SystemTray::mousePressEvent(TQMouseEvent *e)
{
switch(e->button()) {
case Qt::LeftButton:
case Qt::RightButton:
case TQt::LeftButton:
case TQt::RightButton:
default:
KSystemTray::mousePressEvent(e);
break;

Loading…
Cancel
Save