Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/50/head
Michele Calgaro 6 months ago
parent b6d4b7931a
commit b3df4d055e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -67,7 +67,7 @@ void CreateTool::mousePressEvent(TQMouseEvent *e)
if(x < 0 || y < 0) return; if(x < 0 || y < 0) return;
if( e->button() == Qt::LeftButton ) if( e->button() == TQt::LeftButton )
performCreate(x, y); performCreate(x, y);
// well, perhaps make this an option // well, perhaps make this an option

@ -133,7 +133,7 @@ void ModuleWidget::mousePressEvent( TQMouseEvent *e )
return; return;
} }
if( e->button() == Qt::LeftButton ) if( e->button() == TQt::LeftButton )
{ {
StructureComponent *component; StructureComponent *component;
ModulePort *port; ModulePort *port;

@ -1439,7 +1439,7 @@ TQScrollBar *QtTableView::verticalScrollBar() const
{ {
QtTableView *that = (QtTableView*)this; // semantic const QtTableView *that = (QtTableView*)this; // semantic const
if ( !vScrollBar ) { if ( !vScrollBar ) {
TQScrollBar *sb = new TQScrollBar( Qt::Vertical, that ); TQScrollBar *sb = new TQScrollBar( TQt::Vertical, that );
#ifndef TQT_NO_CURSOR #ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor ); sb->setCursor( arrowCursor );
#endif #endif
@ -1470,7 +1470,7 @@ TQScrollBar *QtTableView::horizontalScrollBar() const
{ {
QtTableView *that = (QtTableView*)this; // semantic const QtTableView *that = (QtTableView*)this; // semantic const
if ( !hScrollBar ) { if ( !hScrollBar ) {
TQScrollBar *sb = new TQScrollBar( Qt::Horizontal, that ); TQScrollBar *sb = new TQScrollBar( TQt::Horizontal, that );
#ifndef TQT_NO_CURSOR #ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor ); sb->setCursor( arrowCursor );
#endif #endif

@ -6,13 +6,13 @@ void KFader::init()
} }
KFader::KFader( TQWidget * parent, const char * name ) KFader::KFader( TQWidget * parent, const char * name )
: TQSlider( Qt::Vertical, parent, name ) : TQSlider( TQt::Vertical, parent, name )
{ {
init(); init();
} }
KFader::KFader( int minValue, int maxValue, int pageStep, int value, TQWidget * parent, const char * name ) KFader::KFader( int minValue, int maxValue, int pageStep, int value, TQWidget * parent, const char * name )
: TQSlider( minValue, maxValue, pageStep, value, Qt::Vertical, parent, name ) : TQSlider( minValue, maxValue, pageStep, value, TQt::Vertical, parent, name )
{ {
init(); init();
} }

@ -111,7 +111,7 @@ void KGraph::paintEvent( TQPaintEvent *e )
void KGraph::mousePressEvent(TQMouseEvent *e) void KGraph::mousePressEvent(TQMouseEvent *e)
{ {
if(e->button() == Qt::LeftButton || e->button() == Qt::RightButton) if(e->button() == TQt::LeftButton || e->button() == TQt::RightButton)
{ {
std::list<KGraphLine_impl *>::iterator li; std::list<KGraphLine_impl *>::iterator li;
for(li = lines.begin(); li != lines.end(); li++) for(li = lines.begin(); li != lines.end(); li++)
@ -140,7 +140,7 @@ void KGraph::mousePressEvent(TQMouseEvent *e)
if(selectedIndex >= 0) if(selectedIndex >= 0)
{ {
// erase point // erase point
if(e->button() == Qt::RightButton) if(e->button() == TQt::RightButton)
{ {
if(selectedIndex != 0 && selectedIndex != (( int )( selectedLine->_points.size() )-1)) if(selectedIndex != 0 && selectedIndex != (( int )( selectedLine->_points.size() )-1))
{ {
@ -159,7 +159,7 @@ void KGraph::mousePressEvent(TQMouseEvent *e)
selectedIndex = -1; selectedIndex = -1;
} }
} }
else if(e->button() == Qt::LeftButton) else if(e->button() == TQt::LeftButton)
{ {
// try to insert a point // try to insert a point
std::list<KGraphLine_impl *>::iterator li; std::list<KGraphLine_impl *>::iterator li;

@ -474,13 +474,13 @@ void KPoti::mousePressEvent( TQMouseEvent *e )
{ {
resetState(); resetState();
if ( e->button() == Qt::MidButton ) { if ( e->button() == TQt::MidButton ) {
double pos = atan2( double(e->pos().x()-d->center.x()), double pos = atan2( double(e->pos().x()-d->center.x()),
double(- e->pos().y() + d->center.y()) ); double(- e->pos().y() + d->center.y()) );
movePoti( pos ); movePoti( pos );
return; return;
} }
if ( e->button() != Qt::LeftButton ) if ( e->button() != TQt::LeftButton )
return; return;
@ -513,13 +513,13 @@ void KPoti::mousePressEvent( TQMouseEvent *e )
void KPoti::mouseMoveEvent( TQMouseEvent *e ) void KPoti::mouseMoveEvent( TQMouseEvent *e )
{ {
if ( (e->state() & Qt::MidButton) ) { // middle button wins if ( (e->state() & TQt::MidButton) ) { // middle button wins
double pos = atan2( double(e->pos().x()-d->center.x()), double pos = atan2( double(e->pos().x()-d->center.x()),
double(- e->pos().y()+d->center.y()) ); double(- e->pos().y()+d->center.y()) );
movePoti( pos ); movePoti( pos );
return; return;
} }
if ( !(e->state() & Qt::LeftButton) ) if ( !(e->state() & TQt::LeftButton) )
return; // left mouse button is up return; // left mouse button is up
if ( state != Dragging ) if ( state != Dragging )
return; return;
@ -535,7 +535,7 @@ void KPoti::mouseMoveEvent( TQMouseEvent *e )
void KPoti::mouseReleaseEvent( TQMouseEvent *e ) void KPoti::mouseReleaseEvent( TQMouseEvent *e )
{ {
if ( !(e->button() & Qt::LeftButton) ) if ( !(e->button() & TQt::LeftButton) )
return; return;
resetState(); resetState();
} }

@ -184,8 +184,8 @@ void KVolumeFader_Widget::mousePressEvent( TQMouseEvent* ){
void KVolumeFader_Widget::mouseReleaseEvent( TQMouseEvent* qme ){ void KVolumeFader_Widget::mouseReleaseEvent( TQMouseEvent* qme ){
bool setValue = false; bool setValue = false;
if ( TDEGlobalSettings::mouseSettings().handed == 0 && qme->button() == Qt::LeftButton ) setValue=true; if ( TDEGlobalSettings::mouseSettings().handed == 0 && qme->button() == TQt::LeftButton ) setValue=true;
if ( TDEGlobalSettings::mouseSettings().handed == 1 && qme->button() == Qt::RightButton ) setValue=true; if ( TDEGlobalSettings::mouseSettings().handed == 1 && qme->button() == TQt::RightButton ) setValue=true;
if ( setValue ) if ( setValue )
{ {
switch ( _dir ) { switch ( _dir ) {

@ -107,7 +107,7 @@ void ArtsControlApplet::resizeEvent( TQResizeEvent * /*_Event*/ ) {
void ArtsControlApplet::mousePressEvent( TQMouseEvent* ev ) { void ArtsControlApplet::mousePressEvent( TQMouseEvent* ev ) {
//kdDebug()<<"ArtsControlApplet::mousePressEvent( TQMouseEvent* "<<ev<<" )"<<endl; //kdDebug()<<"ArtsControlApplet::mousePressEvent( TQMouseEvent* "<<ev<<" )"<<endl;
if ( Qt::RightButton == ev->button() /*|| Qt::LeftButton == ev->button()*/ ) if ( TQt::RightButton == ev->button() /*|| TQt::LeftButton == ev->button()*/ )
p->menu->exec( TQCursor::pos() ); p->menu->exec( TQCursor::pos() );
} }

@ -122,7 +122,7 @@ void FFTScopeView::updateScope() {
} }
void FFTScopeView::mousePressEvent( TQMouseEvent* ev ) { void FFTScopeView::mousePressEvent( TQMouseEvent* ev ) {
if ( Qt::RightButton == ev->button() /*|| Qt::LeftButton == ev->button()*/ ) if ( TQt::RightButton == ev->button() /*|| TQt::LeftButton == ev->button()*/ )
_menu->exec( TQCursor::pos() ); _menu->exec( TQCursor::pos() );
} }

@ -138,7 +138,7 @@ void CoverItem::mouseReleaseEvent(TQMouseEvent *event)
if(event->x() >= 0 && event->y() >= 0 && if(event->x() >= 0 && event->y() >= 0 &&
event->x() < width() && event->y() < height() && event->x() < width() && event->y() < height() &&
event->button() == Qt::LeftButton && event->button() == TQt::LeftButton &&
m_file.coverInfo()->hasCover()) m_file.coverInfo()->hasCover())
{ {
m_file.coverInfo()->popup(); m_file.coverInfo()->popup();

@ -1116,7 +1116,7 @@ bool Playlist::eventFilter(TQObject *watched, TQEvent *e)
switch(e->type()) { switch(e->type()) {
case TQEvent::MouseMove: case TQEvent::MouseMove:
{ {
if((TQT_TQMOUSEEVENT(e)->state() & Qt::LeftButton) == Qt::LeftButton && if((TQT_TQMOUSEEVENT(e)->state() & TQt::LeftButton) == TQt::LeftButton &&
!action<TDEToggleAction>("resizeColumnsManually")->isChecked()) !action<TDEToggleAction>("resizeColumnsManually")->isChecked())
{ {
m_columnWidthModeChanged = true; m_columnWidthModeChanged = true;
@ -1129,7 +1129,7 @@ bool Playlist::eventFilter(TQObject *watched, TQEvent *e)
} }
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
{ {
if(TQT_TQMOUSEEVENT(e)->button() == Qt::RightButton) if(TQT_TQMOUSEEVENT(e)->button() == TQt::RightButton)
m_headerMenu->popup(TQCursor::pos()); m_headerMenu->popup(TQCursor::pos());
break; break;
@ -1249,7 +1249,7 @@ void Playlist::contentsMouseDoubleClickEvent(TQMouseEvent *e)
// Filter out non left button double clicks, that way users don't have the // Filter out non left button double clicks, that way users don't have the
// weird experience of switching songs from a double right-click. // weird experience of switching songs from a double right-click.
if(e->button() == Qt::LeftButton) if(e->button() == TQt::LeftButton)
TDEListView::contentsMouseDoubleClickEvent(e); TDEListView::contentsMouseDoubleClickEvent(e);
} }

@ -524,14 +524,14 @@ void PlaylistBox::contentsDragLeaveEvent(TQDragLeaveEvent *e)
void PlaylistBox::contentsMousePressEvent(TQMouseEvent *e) void PlaylistBox::contentsMousePressEvent(TQMouseEvent *e)
{ {
if(e->button() == Qt::LeftButton) if(e->button() == TQt::LeftButton)
m_doingMultiSelect = true; m_doingMultiSelect = true;
TDEListView::contentsMousePressEvent(e); TDEListView::contentsMousePressEvent(e);
} }
void PlaylistBox::contentsMouseReleaseEvent(TQMouseEvent *e) void PlaylistBox::contentsMouseReleaseEvent(TQMouseEvent *e)
{ {
if(e->button() == Qt::LeftButton) { if(e->button() == TQt::LeftButton) {
m_doingMultiSelect = false; m_doingMultiSelect = false;
slotPlaylistChanged(); slotPlaylistChanged();
} }

@ -35,7 +35,7 @@ using namespace ActionCollection;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
PlaylistSplitter::PlaylistSplitter(TQWidget *parent, const char *name) : PlaylistSplitter::PlaylistSplitter(TQWidget *parent, const char *name) :
TQSplitter(Qt::Horizontal, parent, name), TQSplitter(TQt::Horizontal, parent, name),
m_newVisible(0), m_newVisible(0),
m_playlistBox(0), m_playlistBox(0),
m_searchWidget(0), m_searchWidget(0),
@ -130,7 +130,7 @@ void PlaylistSplitter::setupLayout()
// Create a splitter to go between the playlists and the editor. // Create a splitter to go between the playlists and the editor.
TQSplitter *editorSplitter = new TQSplitter(Qt::Vertical, this, "editorSplitter"); TQSplitter *editorSplitter = new TQSplitter(TQt::Vertical, this, "editorSplitter");
// Create the playlist and the editor. // Create the playlist and the editor.

@ -47,13 +47,13 @@ public:
protected: protected:
virtual void mousePressEvent(TQMouseEvent *e) virtual void mousePressEvent(TQMouseEvent *e)
{ {
if(e->button() == Qt::LeftButton) { if(e->button() == TQt::LeftButton) {
TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), Qt::MidButton, e->state()); TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), TQt::MidButton, e->state());
TQSlider::mousePressEvent(&reverse); TQSlider::mousePressEvent(&reverse);
emit sliderPressed(); emit sliderPressed();
} }
else if(e->button() == Qt::MidButton) { else if(e->button() == TQt::MidButton) {
TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), Qt::LeftButton, e->state()); TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), TQt::LeftButton, e->state());
TQSlider::mousePressEvent(&reverse); TQSlider::mousePressEvent(&reverse);
} }
} }
@ -63,7 +63,7 @@ protected:
// VolumeSlider implementation // VolumeSlider implementation
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
VolumeSlider::VolumeSlider(Qt::Orientation o, TQWidget *parent, const char *name) : VolumeSlider::VolumeSlider(TQt::Orientation o, TQWidget *parent, const char *name) :
TQSlider(o, parent, name) TQSlider(o, parent, name)
{ {
connect(this, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotValueChanged(int))); connect(this, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotValueChanged(int)));
@ -71,7 +71,7 @@ VolumeSlider::VolumeSlider(Qt::Orientation o, TQWidget *parent, const char *name
void VolumeSlider::wheelEvent(TQWheelEvent *e) void VolumeSlider::wheelEvent(TQWheelEvent *e)
{ {
if(orientation() ==Qt::Horizontal) { if(orientation() ==TQt::Horizontal) {
TQWheelEvent transposed(e->pos(), -(e->delta()), e->state(), e->orientation()); TQWheelEvent transposed(e->pos(), -(e->delta()), e->state(), e->orientation());
TQSlider::wheelEvent(&transposed); TQSlider::wheelEvent(&transposed);
} }
@ -86,7 +86,7 @@ void VolumeSlider::focusInEvent(TQFocusEvent *)
int VolumeSlider::volume() const int VolumeSlider::volume() const
{ {
if(orientation() ==Qt::Horizontal) if(orientation() ==TQt::Horizontal)
return value(); return value();
else else
return maxValue() - value(); return maxValue() - value();
@ -94,13 +94,13 @@ int VolumeSlider::volume() const
void VolumeSlider::setVolume(int value) void VolumeSlider::setVolume(int value)
{ {
if(orientation() ==Qt::Horizontal) if(orientation() ==TQt::Horizontal)
setValue(value); setValue(value);
else else
setValue(maxValue() - value); setValue(maxValue() - value);
} }
void VolumeSlider::setOrientation(Qt::Orientation o) void VolumeSlider::setOrientation(TQt::Orientation o)
{ {
if(o == orientation()) if(o == orientation())
return; return;
@ -113,7 +113,7 @@ void VolumeSlider::setOrientation(Qt::Orientation o)
void VolumeSlider::slotValueChanged(int value) void VolumeSlider::slotValueChanged(int value)
{ {
if(orientation() ==Qt::Horizontal) if(orientation() ==TQt::Horizontal)
emit signalVolumeChanged(value); emit signalVolumeChanged(value);
else else
emit signalVolumeChanged(maxValue() - value); emit signalVolumeChanged(maxValue() - value);
@ -163,7 +163,7 @@ int SliderAction::plug(TQWidget *parent, int index)
addContainer(m_toolBar, id); addContainer(m_toolBar, id);
connect(m_toolBar, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotToolbarDestroyed())); connect(m_toolBar, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotToolbarDestroyed()));
connect(m_toolBar, TQT_SIGNAL(orientationChanged(Qt::Orientation)), connect(m_toolBar, TQT_SIGNAL(orientationChanged(TQt::Orientation)),
this, TQT_SLOT(slotUpdateOrientation())); this, TQT_SLOT(slotUpdateOrientation()));
connect(m_toolBar, TQT_SIGNAL(placeChanged(TQDockWindow::Place)), connect(m_toolBar, TQT_SIGNAL(placeChanged(TQDockWindow::Place)),
this, TQT_SLOT(slotUpdateOrientation())); this, TQT_SLOT(slotUpdateOrientation()));
@ -205,13 +205,13 @@ void SliderAction::slotUpdateOrientation()
return; return;
if(m_toolBar->barPos() == TDEToolBar::Right || m_toolBar->barPos() == TDEToolBar::Left) { if(m_toolBar->barPos() == TDEToolBar::Right || m_toolBar->barPos() == TDEToolBar::Left) {
m_trackPositionSlider->setOrientation(Qt::Vertical); m_trackPositionSlider->setOrientation(TQt::Vertical);
m_volumeSlider->setOrientation(Qt::Vertical); m_volumeSlider->setOrientation(TQt::Vertical);
m_layout->setDirection(TQBoxLayout::TopToBottom); m_layout->setDirection(TQBoxLayout::TopToBottom);
} }
else { else {
m_trackPositionSlider->setOrientation(Qt::Horizontal); m_trackPositionSlider->setOrientation(TQt::Horizontal);
m_volumeSlider->setOrientation(Qt::Horizontal); m_volumeSlider->setOrientation(TQt::Horizontal);
m_layout->setDirection(TQBoxLayout::LeftToRight); m_layout->setDirection(TQBoxLayout::LeftToRight);
} }
slotUpdateSize(); slotUpdateSize();
@ -233,12 +233,12 @@ TQWidget *SliderAction::createWidget(TQWidget *parent) // virtual -- used by bas
if(toolBar) if(toolBar)
toolBar->setStretchableWidget(base); toolBar->setStretchableWidget(base);
Qt::Orientation orientation; TQt::Orientation orientation;
if(toolBar && toolBar->barPos() == TDEToolBar::Right || toolBar->barPos() == TDEToolBar::Left) if(toolBar && toolBar->barPos() == TDEToolBar::Right || toolBar->barPos() == TDEToolBar::Left)
orientation =Qt::Vertical; orientation =TQt::Vertical;
else else
orientation =Qt::Horizontal; orientation =TQt::Horizontal;
m_layout = new TQBoxLayout(base, TQBoxLayout::TopToBottom, 5, 5); m_layout = new TQBoxLayout(base, TQBoxLayout::TopToBottom, 5, 5);

@ -28,12 +28,12 @@ class VolumeSlider : public TQSlider
public: public:
VolumeSlider(Qt::Orientation o, TQWidget *parent, const char *name); VolumeSlider(TQt::Orientation o, TQWidget *parent, const char *name);
int volume() const; int volume() const;
void setVolume(int value); void setVolume(int value);
void setOrientation(Qt::Orientation o); void setOrientation(TQt::Orientation o);
signals: signals:
void signalVolumeChanged(int value); void signalVolumeChanged(int value);

@ -177,7 +177,7 @@ bool StatusLabel::eventFilter(TQObject *o, TQEvent *e)
TQMouseEvent *mouseEvent = TQT_TQMOUSEEVENT(e); TQMouseEvent *mouseEvent = TQT_TQMOUSEEVENT(e);
if(e->type() == TQEvent::MouseButtonRelease && if(e->type() == TQEvent::MouseButtonRelease &&
mouseEvent->button() == Qt::LeftButton) mouseEvent->button() == TQt::LeftButton)
{ {
if(o == m_itemTimeLabel) { if(o == m_itemTimeLabel) {
m_showTimeRemaining = !m_showTimeRemaining; m_showTimeRemaining = !m_showTimeRemaining;

@ -540,7 +540,7 @@ void SystemTray::setToolTip(const TQString &tip, const TQPixmap &cover)
void SystemTray::wheelEvent(TQWheelEvent *e) void SystemTray::wheelEvent(TQWheelEvent *e)
{ {
if(e->orientation() ==Qt::Horizontal) if(e->orientation() ==TQt::Horizontal)
return; return;
// I already know the type here, but this file doesn't (and I don't want it // I already know the type here, but this file doesn't (and I don't want it
@ -571,12 +571,12 @@ void SystemTray::wheelEvent(TQWheelEvent *e)
void SystemTray::mousePressEvent(TQMouseEvent *e) void SystemTray::mousePressEvent(TQMouseEvent *e)
{ {
switch(e->button()) { switch(e->button()) {
case Qt::LeftButton: case TQt::LeftButton:
case Qt::RightButton: case TQt::RightButton:
default: default:
KSystemTray::mousePressEvent(e); KSystemTray::mousePressEvent(e);
break; break;
case Qt::MidButton: case TQt::MidButton:
if(!rect().contains(e->pos())) if(!rect().contains(e->pos()))
return; return;
if(action("pause")->isEnabled()) if(action("pause")->isEnabled())

@ -71,7 +71,7 @@ void ViewMode::paintCell(PlaylistBox::Item *item,
TQPen newPen = oldPen; TQPen newPen = oldPen;
newPen.setWidth(5); newPen.setWidth(5);
newPen.setJoinStyle(Qt::RoundJoin); newPen.setJoinStyle(TQt::RoundJoin);
newPen.setColor(TQColorGroup::Highlight); newPen.setColor(TQColorGroup::Highlight);
painter->setPen(newPen); painter->setPen(newPen);
@ -168,7 +168,7 @@ void ViewMode::paintDropIndicator(TQPainter *painter, int width, int height) //
TQPen newPen = oldPen; TQPen newPen = oldPen;
newPen.setWidth(lineWidth); newPen.setWidth(lineWidth);
newPen.setStyle(Qt::DotLine); newPen.setStyle(TQt::DotLine);
painter->setPen(newPen); painter->setPen(newPen);
painter->drawRect(border, border, width - border * 2, height - border * 2); painter->drawRect(border, border, width - border * 2, height - border * 2);

@ -26,11 +26,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Kaboodle::L33tSlider::L33tSlider(TQWidget * parent, const char * name) : Kaboodle::L33tSlider::L33tSlider(TQWidget * parent, const char * name) :
TQSlider(parent,name), pressed(false) TQSlider(parent,name), pressed(false)
{} {}
Kaboodle::L33tSlider::L33tSlider(Qt::Orientation o, TQWidget * parent, const char * name) : Kaboodle::L33tSlider::L33tSlider(TQt::Orientation o, TQWidget * parent, const char * name) :
TQSlider(o,parent,name), pressed(false) TQSlider(o,parent,name), pressed(false)
{} {}
Kaboodle::L33tSlider::L33tSlider(int minValue, int maxValue, int pageStep, int value, Kaboodle::L33tSlider::L33tSlider(int minValue, int maxValue, int pageStep, int value,
Qt::Orientation o, TQWidget * parent, const char * name) : TQt::Orientation o, TQWidget * parent, const char * name) :
TQSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false) TQSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false)
{} {}
@ -47,7 +47,7 @@ void Kaboodle::L33tSlider::setValue(int i)
void Kaboodle::L33tSlider::mousePressEvent(TQMouseEvent*e) void Kaboodle::L33tSlider::mousePressEvent(TQMouseEvent*e)
{ {
if (e->button()!=Qt::RightButton) if (e->button()!=TQt::RightButton)
{ {
pressed=true; pressed=true;
TQSlider::mousePressEvent(e); TQSlider::mousePressEvent(e);
@ -91,7 +91,7 @@ int Kaboodle::SliderAction::plug( TQWidget *w, int index )
int id = TDEAction::getToolButtonID(); int id = TDEAction::getToolButtonID();
//Create it. //Create it.
m_slider=new L33tSlider(0, 1000, 100, 0,Qt::Horizontal, toolBar); m_slider=new L33tSlider(0, 1000, 100, 0,TQt::Horizontal, toolBar);
m_slider->setMinimumWidth(10); m_slider->setMinimumWidth(10);
toolBar->insertWidget(id, 10, m_slider, index ); toolBar->insertWidget(id, 10, m_slider, index );

@ -46,9 +46,9 @@ TQ_OBJECT
public: public:
L33tSlider(TQWidget * parent, const char * name=0); L33tSlider(TQWidget * parent, const char * name=0);
L33tSlider(Qt::Orientation, TQWidget * parent, const char * name=0); L33tSlider(TQt::Orientation, TQWidget * parent, const char * name=0);
L33tSlider(int minValue, int maxValue, int pageStep, int value, L33tSlider(int minValue, int maxValue, int pageStep, int value,
Qt::Orientation, TQWidget * parent, const char * name=0); TQt::Orientation, TQWidget * parent, const char * name=0);
bool currentlyPressed() const; bool currentlyPressed() const;
signals: signals:

@ -89,7 +89,7 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p)
pauseButton = createButton(BarIconSet("media-playback-pause"), i18n("Pause"), player, TQT_SLOT(pause()), sliderBox); pauseButton = createButton(BarIconSet("media-playback-pause"), i18n("Pause"), player, TQT_SLOT(pause()), sliderBox);
stopButton = createButton(BarIconSet("media-playback-stop"), i18n("Stop"), player, TQT_SLOT(stop()), sliderBox); stopButton = createButton(BarIconSet("media-playback-stop"), i18n("Stop"), player, TQT_SLOT(stop()), sliderBox);
slider = new L33tSlider(0, 1000, 10, 0, Qt::Horizontal, sliderBox); slider = new L33tSlider(0, 1000, 10, 0, TQt::Horizontal, sliderBox);
slider->setTickmarks(TQSlider::NoMarks); slider->setTickmarks(TQSlider::NoMarks);
slider->show(); slider->show();

@ -109,7 +109,7 @@ void MixDeviceWidget::setMutedColors( TQColor , TQColor , TQColor ) { /* is virt
void MixDeviceWidget::mousePressEvent( TQMouseEvent *e ) void MixDeviceWidget::mousePressEvent( TQMouseEvent *e )
{ {
if ( e->button()==Qt::RightButton ) if ( e->button()==TQt::RightButton )
showContextMenu(); showContextMenu();
else { else {
TQWidget::mousePressEvent(e); TQWidget::mousePressEvent(e);

@ -113,7 +113,7 @@ void ViewBase::createDeviceWidgets()
// ---------- Popup stuff START --------------------- // ---------- Popup stuff START ---------------------
void ViewBase::mousePressEvent( TQMouseEvent *e ) void ViewBase::mousePressEvent( TQMouseEvent *e )
{ {
if ( e->button()==Qt::RightButton ) if ( e->button()==TQt::RightButton )
showContextMenu(); showContextMenu();
} }

@ -36,7 +36,7 @@ KRecConfigFilesWidget::KRecConfigFilesWidget( TQWidget* p, const char* n )
, _bits16( 0 ), _bits8( 0 ) , _bits16( 0 ), _bits8( 0 )
, _samplingRate( 44100 ), _channels( 2 ), _bits( 16 ) , _samplingRate( 44100 ), _channels( 2 ), _bits( 16 )
{ {
_ratebox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Sampling Rate" ), _hbox ); _ratebox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Sampling Rate" ), _hbox );
connect( _ratebox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( ratechanged( int ) ) ); connect( _ratebox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( ratechanged( int ) ) );
_rate48 = new TQRadioButton( i18n( "48000 Hz" ), _ratebox ); _rate48 = new TQRadioButton( i18n( "48000 Hz" ), _ratebox );
_rate44 = new TQRadioButton( i18n( "44100 Hz" ), _ratebox ); _rate44 = new TQRadioButton( i18n( "44100 Hz" ), _ratebox );
@ -51,11 +51,11 @@ KRecConfigFilesWidget::KRecConfigFilesWidget( TQWidget* p, const char* n )
_rateotherline->setFrame( true ); _rateotherline->setFrame( true );
_rateotherbox->setEnabled( false ); _rateotherbox->setEnabled( false );
connect( _rateotherline, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( rateotherchanged( const TQString& ) ) ); connect( _rateotherline, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( rateotherchanged( const TQString& ) ) );
_channelsbox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Channels" ), _hbox ); _channelsbox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Channels" ), _hbox );
connect( _channelsbox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( channelschanged( int ) ) ); connect( _channelsbox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( channelschanged( int ) ) );
_channels2 = new TQRadioButton( i18n( "Stereo (2 channels)" ), _channelsbox ); _channels2 = new TQRadioButton( i18n( "Stereo (2 channels)" ), _channelsbox );
_channels1 = new TQRadioButton( i18n( "Mono (1 channel)" ), _channelsbox ); _channels1 = new TQRadioButton( i18n( "Mono (1 channel)" ), _channelsbox );
_bitsbox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Bits" ), _hbox ); _bitsbox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Bits" ), _hbox );
connect( _bitsbox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( bitschanged( int ) ) ); connect( _bitsbox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( bitschanged( int ) ) );
_bits16 = new TQRadioButton( i18n( "16 bit" ), _bitsbox ); _bits16 = new TQRadioButton( i18n( "16 bit" ), _bitsbox );
_bits8 = new TQRadioButton( i18n( "8 bit" ), _bitsbox ); _bits8 = new TQRadioButton( i18n( "8 bit" ), _bitsbox );

@ -53,14 +53,14 @@ KRecConfigGeneral::KRecConfigGeneral( TQWidget* p, const char*, const TQStringLi
_layout_display = new TQBoxLayout( _layout, TQBoxLayout::LeftToRight ); _layout_display = new TQBoxLayout( _layout, TQBoxLayout::LeftToRight );
_layout->setStretchFactor( _layout_display, -100 ); _layout->setStretchFactor( _layout_display, -100 );
_displaybox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Timedisplay Style" ), this ); _displaybox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Timedisplay Style" ), this );
_layout_display->addWidget( _displaybox, 100 ); _layout_display->addWidget( _displaybox, 100 );
connect( _displaybox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( displaychanged( int ) ) ); connect( _displaybox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( displaychanged( int ) ) );
_display0 = new TQRadioButton( i18n( "Plain samples" ), _displaybox ); _display0 = new TQRadioButton( i18n( "Plain samples" ), _displaybox );
_display1 = new TQRadioButton( i18n( "[hours:]mins:secs:samples" ), _displaybox ); _display1 = new TQRadioButton( i18n( "[hours:]mins:secs:samples" ), _displaybox );
_display2 = new TQRadioButton( i18n( "[hours:]mins:secs:frames" ), _displaybox ); _display2 = new TQRadioButton( i18n( "[hours:]mins:secs:frames" ), _displaybox );
_display3 = new TQRadioButton( i18n( "MByte.KByte" ), _displaybox ); _display3 = new TQRadioButton( i18n( "MByte.KByte" ), _displaybox );
_framebasebox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Framebase" ), this ); _framebasebox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Framebase" ), this );
_layout_display->addWidget( _framebasebox, 100 ); _layout_display->addWidget( _framebasebox, 100 );
connect( _framebasebox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( framebasechanged( int ) ) ); connect( _framebasebox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( framebasechanged( int ) ) );
_framebase30 = new TQRadioButton( i18n( "30 frames per second (American TV)" ), _framebasebox ); _framebase30 = new TQRadioButton( i18n( "30 frames per second (American TV)" ), _framebasebox );

@ -262,7 +262,7 @@ TQString KRecTimeDisplay::sizeText( int m, int n ) {
} }
void AKLabel::mousePressEvent( TQMouseEvent* qme ) { void AKLabel::mousePressEvent( TQMouseEvent* qme ) {
if ( qme->button() == Qt::RightButton ) if ( qme->button() == TQt::RightButton )
emit showContextMenu( qme->globalPos() ); emit showContextMenu( qme->globalPos() );
} }

@ -233,7 +233,7 @@ void KRecBufferWidget::paintEvent( TQPaintEvent* ) {
void KRecBufferWidget::mousePressEvent( TQMouseEvent* qme ) { void KRecBufferWidget::mousePressEvent( TQMouseEvent* qme ) {
kdDebug( 60005 ) << k_funcinfo << endl; kdDebug( 60005 ) << k_funcinfo << endl;
if ( _main_region->contains( qme->pos() ) || _title_region->contains( qme->pos() ) ) if ( _main_region->contains( qme->pos() ) || _title_region->contains( qme->pos() ) )
if ( qme->button() == Qt::RightButton ) if ( qme->button() == TQt::RightButton )
emit popupMenu( this, qme->globalPos() ); emit popupMenu( this, qme->globalPos() );
} }
void KRecBufferWidget::mouseDoubleClickEvent( TQMouseEvent* qme ) { void KRecBufferWidget::mouseDoubleClickEvent( TQMouseEvent* qme ) {

@ -120,7 +120,7 @@ void DockWidget::setToolTip(const TQString& text)
void DockWidget::wheelEvent(TQWheelEvent *e) void DockWidget::wheelEvent(TQWheelEvent *e)
{ {
if (e->orientation() ==Qt::Horizontal) if (e->orientation() ==TQt::Horizontal)
return; return;
KSCD* kscd = dynamic_cast<KSCD*>(parent()); KSCD* kscd = dynamic_cast<KSCD*>(parent());

@ -38,7 +38,7 @@ class Slice {
/* Slice structure. */ /* Slice structure. */
unsigned int vert_pos; /*Qt::Vertical position of slice. */ unsigned int vert_pos; /* Vertical position of slice. */
unsigned int quant_scale; /* Quantization scale. */ unsigned int quant_scale; /* Quantization scale. */
MpegExtension* mpegExtension; /* Extra bit slice info. */ MpegExtension* mpegExtension; /* Extra bit slice info. */

@ -68,7 +68,7 @@ General::General(TQObject *parent)
this, TQT_SLOT( slotRequesterClicked( KURLRequester * ))); this, TQT_SLOT( slotRequesterClicked( KURLRequester * )));
TQWhatsThis::add(mDlSaver, i18n("When opening a non-local file, download it to the selected folder.")); TQWhatsThis::add(mDlSaver, i18n("When opening a non-local file, download it to the selected folder."));
mPlayOnStartup = new TQButtonGroup(1,Qt::Horizontal, i18n("Play Behavior on Startup"), this); mPlayOnStartup = new TQButtonGroup(1,TQt::Horizontal, i18n("Play Behavior on Startup"), this);
mPlayOnStartup->setExclusive(true); mPlayOnStartup->setExclusive(true);
mPlayOnStartup->insert( mPlayOnStartup->insert(
new TQRadioButton(i18n("Restore &play state"), mPlayOnStartup), new TQRadioButton(i18n("Restore &play state"), mPlayOnStartup),

@ -3,11 +3,11 @@
L33tSlider::L33tSlider(TQWidget * parent, const char * name) : L33tSlider::L33tSlider(TQWidget * parent, const char * name) :
TQSlider(parent,name), pressed(false) TQSlider(parent,name), pressed(false)
{} {}
L33tSlider::L33tSlider(Qt::Orientation o, TQWidget * parent, const char * name) : L33tSlider::L33tSlider(TQt::Orientation o, TQWidget * parent, const char * name) :
TQSlider(o,parent,name), pressed(false) TQSlider(o,parent,name), pressed(false)
{} {}
L33tSlider::L33tSlider(int minValue, int maxValue, int pageStep, int value, L33tSlider::L33tSlider(int minValue, int maxValue, int pageStep, int value,
Qt::Orientation o, TQWidget * parent, const char * name) : TQt::Orientation o, TQWidget * parent, const char * name) :
TQSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false) TQSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false)
{} {}
@ -24,7 +24,7 @@ void L33tSlider::setValue(int i)
void L33tSlider::mousePressEvent(TQMouseEvent*e) void L33tSlider::mousePressEvent(TQMouseEvent*e)
{ {
if (e->button()!=Qt::RightButton) if (e->button()!=TQt::RightButton)
{ {
pressed=true; pressed=true;
TQSlider::mousePressEvent(e); TQSlider::mousePressEvent(e);
@ -67,7 +67,7 @@ int SliderAction::plug( TQWidget *w, int index )
int id = TDEAction::getToolButtonID(); int id = TDEAction::getToolButtonID();
//Create it. //Create it.
m_slider=new L33tSlider(0, 1000, 100, 0,Qt::Horizontal, toolBar); m_slider=new L33tSlider(0, 1000, 100, 0,TQt::Horizontal, toolBar);
m_slider->setMinimumWidth(10); m_slider->setMinimumWidth(10);
toolBar->insertWidget(id, 10, m_slider, index ); toolBar->insertWidget(id, 10, m_slider, index );

@ -67,7 +67,7 @@ EqualizerLevel::EqualizerLevel(TQWidget *parent, VBand band)
TQVBoxLayout *layout = new TQVBoxLayout(this, TQVBoxLayout *layout = new TQVBoxLayout(this,
0, 0, "EqualizerLevel::layout"); 0, 0, "EqualizerLevel::layout");
mSlider = new TQSlider(-200, 200, 25, 0, Qt::Vertical, this, "EqualizerLevel::mSlider"); mSlider = new TQSlider(-200, 200, 25, 0, TQt::Vertical, this, "EqualizerLevel::mSlider");
mSlider->setTickmarks(TQSlider::Left); mSlider->setTickmarks(TQSlider::Left);
mSlider->setTickInterval(25); mSlider->setTickInterval(25);
layout->addWidget(mSlider); layout->addWidget(mSlider);

@ -26,9 +26,9 @@ TQ_OBJECT
public: public:
L33tSlider(TQWidget * parent, const char * name=0); L33tSlider(TQWidget * parent, const char * name=0);
L33tSlider(Qt::Orientation, TQWidget * parent, const char * name=0); L33tSlider(TQt::Orientation, TQWidget * parent, const char * name=0);
L33tSlider(int minValue, int maxValue, int pageStep, int value, L33tSlider(int minValue, int maxValue, int pageStep, int value,
Qt::Orientation, TQWidget * parent, const char * name=0); TQt::Orientation, TQWidget * parent, const char * name=0);
bool currentlyPressed() const; bool currentlyPressed() const;
signals: signals:

@ -201,7 +201,7 @@ Control::Control(TagsGetter *parent)
", and updates tags (e.g., ID3)", ", and updates tags (e.g., ID3)",
"Interval:"), intervalLine); "Interval:"), intervalLine);
TQSlider *slider=new TQSlider( TQSlider *slider=new TQSlider(
0, 2000, 100, 0,Qt::Horizontal, intervalLine 0, 2000, 100, 0,TQt::Horizontal, intervalLine
); );
TQSpinBox *spin=new TQSpinBox( TQSpinBox *spin=new TQSpinBox(
0, 2000, 10, intervalLine 0, 2000, 10, intervalLine

@ -151,7 +151,7 @@ void GlobalVideo::hide()
void GlobalVideo::mouseReleaseEvent(TQMouseEvent *e) void GlobalVideo::mouseReleaseEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::RightButton) if (e->button() == TQt::RightButton)
{ {
menu->exec(mapToGlobal(e->pos())); menu->exec(mapToGlobal(e->pos()));
} }

@ -7,7 +7,7 @@ namespace Arts {
ExtraStereoGUI_impl::ExtraStereoGUI_impl() : TQWidget(0) ExtraStereoGUI_impl::ExtraStereoGUI_impl() : TQWidget(0)
{ {
(new TQHBoxLayout(this))->setAutoAdd(true); (new TQHBoxLayout(this))->setAutoAdd(true);
mSlider=new TQSlider(0,100,10, 0,Qt::Horizontal, this); mSlider=new TQSlider(0,100,10, 0,TQt::Horizontal, this);
mSlider->show(); mSlider->show();
show(); show();
} }

@ -98,7 +98,7 @@ Excellent::Excellent()
mainFrame = new TQHBox(this); mainFrame = new TQHBox(this);
mainFrame->setSpacing(KDialog::spacingHint()); mainFrame->setSpacing(KDialog::spacingHint());
mainFrame->setMargin(0); mainFrame->setMargin(0);
slider = new L33tSlider(0, 1000, 10, 0, Qt::Horizontal, mainFrame); slider = new L33tSlider(0, 1000, 10, 0, TQt::Horizontal, mainFrame);
slider->setTickmarks(TQSlider::NoMarks); slider->setTickmarks(TQSlider::NoMarks);
elapsed = new TQLabel(mainFrame); elapsed = new TQLabel(mainFrame);
@ -373,7 +373,7 @@ void Excellent::handleLengthString(const TQString &text)
void Excellent::growVolumeControl(void) void Excellent::growVolumeControl(void)
{ {
volumeSlider = new L33tSlider(0, 100, 10, 0,Qt::Vertical, mainFrame); volumeSlider = new L33tSlider(0, 100, 10, 0,TQt::Vertical, mainFrame);
volumeSlider->setValue(100 - napp->player()->volume()); volumeSlider->setValue(100 - napp->player()->volume());
volumeSlider->show(); volumeSlider->show();
connect(volumeSlider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(changeVolume(int))); connect(volumeSlider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(changeVolume(int)));

@ -1400,7 +1400,7 @@ bool KaimanStyle::eventFilter( TQObject *o, TQEvent *e )
TQMouseEvent *m = (TQMouseEvent*)e; TQMouseEvent *m = (TQMouseEvent*)e;
// handle noatun context menu // handle noatun context menu
if (m->button()==Qt::RightButton) { if (m->button()==TQt::RightButton) {
NoatunStdAction::ContextMenu::showContextMenu(); NoatunStdAction::ContextMenu::showContextMenu();
return true; return true;
} }

@ -742,7 +742,7 @@ void KJLoader::mousePressEvent(TQMouseEvent *e)
// TQWidget::mousePressEvent(e); // TQWidget::mousePressEvent(e);
if ( e->button()==Qt::RightButton ) if ( e->button()==TQt::RightButton )
NoatunStdAction::ContextMenu::showContextMenu(); NoatunStdAction::ContextMenu::showContextMenu();
else /* if ( e->button()==LeftButton ) */ else /* if ( e->button()==LeftButton ) */
{ {

@ -80,9 +80,9 @@ MilkChocolate::MilkChocolate() : TQWidget(0,"NoatunUI"), UserInterface()
} }
mVolume=new L33tSlider(0,100,10,0,Qt::Horizontal, this); mVolume=new L33tSlider(0,100,10,0,TQt::Horizontal, this);
mVolume->setValue(napp->player()->volume()); mVolume->setValue(napp->player()->volume());
mSeeker=new L33tSlider(0,1000,10,0,Qt::Horizontal, this); mSeeker=new L33tSlider(0,1000,10,0,TQt::Horizontal, this);
mStatusBar=new KStatusBar(this); mStatusBar=new KStatusBar(this);
@ -179,7 +179,7 @@ void MilkChocolate::dropEvent(TQDropEvent *event)
void MilkChocolate::mouseReleaseEvent(TQMouseEvent *e) void MilkChocolate::mouseReleaseEvent(TQMouseEvent *e)
{ {
TQWidget::mouseReleaseEvent(e); TQWidget::mouseReleaseEvent(e);
if (e->button()!=Qt::RightButton) return; if (e->button()!=TQt::RightButton) return;
NoatunStdAction::ContextMenu::showContextMenu(); NoatunStdAction::ContextMenu::showContextMenu();
} }
@ -281,7 +281,7 @@ void MilkChocolate::changeLoopType(int t)
bool MilkChocolate::eventFilter(TQObject *o, TQEvent *e) bool MilkChocolate::eventFilter(TQObject *o, TQEvent *e)
{ {
if ((e->type() == TQEvent::MouseButtonRelease) if ((e->type() == TQEvent::MouseButtonRelease)
&& ((TQT_TQMOUSEEVENT(e))->button()==Qt::RightButton)) && ((TQT_TQMOUSEEVENT(e))->button()==TQt::RightButton))
{ {
mouseReleaseEvent(TQT_TQMOUSEEVENT(e)); mouseReleaseEvent(TQT_TQMOUSEEVENT(e));
return true; return true;

@ -214,7 +214,7 @@ void SimpleUI::setupCentralWidget()
TQToolTip::add( forwButton, i18n("Forward") ); TQToolTip::add( forwButton, i18n("Forward") );
connect( forwButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()) ); connect( forwButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()) );
slider = new L33tSlider( 0, 1000, 10, 0, Qt::Horizontal, ctlFrame ); slider = new L33tSlider( 0, 1000, 10, 0, TQt::Horizontal, ctlFrame );
slider->setFixedHeight( 24 ); slider->setFixedHeight( 24 );
slider->setMinimumWidth( 100 ); slider->setMinimumWidth( 100 );
slider->setTickmarks( TQSlider::NoMarks ); slider->setTickmarks( TQSlider::NoMarks );
@ -242,7 +242,7 @@ void SimpleUI::setupCentralWidget()
volumeLabel->setFixedSize( volumeLabel->sizeHint() ); volumeLabel->setFixedSize( volumeLabel->sizeHint() );
TQHBox *volumeSubFrame = new TQHBox( volumeFrame ); TQHBox *volumeSubFrame = new TQHBox( volumeFrame );
volumeSlider = new L33tSlider( 0, 100, 10, 0,Qt::Vertical, volumeSubFrame ); volumeSlider = new L33tSlider( 0, 100, 10, 0,TQt::Vertical, volumeSubFrame );
volumeSlider->setValue( 100 - napp->player()->volume() ); volumeSlider->setValue( 100 - napp->player()->volume() );
volumeSlider->setFixedSize( volumeSlider->sizeHint() ); volumeSlider->setFixedSize( volumeSlider->sizeHint() );

@ -67,10 +67,10 @@ void KitSystemTray::mousePressEvent(TQMouseEvent *event)
{ {
switch(event->button()) switch(event->button())
{ {
case Qt::LeftButton: case TQt::LeftButton:
napp->toggleInterfaces(); napp->toggleInterfaces();
break; break;
case Qt::MidButton: case TQt::MidButton:
if (YHConfig::self()->middleMouseAction() == YHConfig::HideShowPlaylist) if (YHConfig::self()->middleMouseAction() == YHConfig::HideShowPlaylist)
napp->playlist()->toggleList(); napp->playlist()->toggleList();
else // play or pause else // play or pause

@ -72,13 +72,13 @@ GuiSpectrumAnalyser::~GuiSpectrumAnalyser()
void GuiSpectrumAnalyser::mousePressEvent ( TQMouseEvent *e ) void GuiSpectrumAnalyser::mousePressEvent ( TQMouseEvent *e )
{ {
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
if (visualization_mode == MODE_DISABLED) if (visualization_mode == MODE_DISABLED)
setVisualizationMode(MODE_ANALYSER); setVisualizationMode(MODE_ANALYSER);
else else
setVisualizationMode(MODE_DISABLED); setVisualizationMode(MODE_DISABLED);
} }
else if (e->button() == Qt::RightButton) { else if (e->button() == TQt::RightButton) {
contextMenu->popup(mapToGlobal(TQPoint(e->x(), e->y()))); contextMenu->popup(mapToGlobal(TQPoint(e->x(), e->y())));
} }
} }

@ -50,7 +50,7 @@ void WaButton::paintEvent(TQPaintEvent *) {
void WaButton::mousePressEvent(TQMouseEvent* e) { void WaButton::mousePressEvent(TQMouseEvent* e) {
if (e->button() != Qt::LeftButton) { if (e->button() != TQt::LeftButton) {
// We can't deal with it, but maybe the widget can do something clever // We can't deal with it, but maybe the widget can do something clever
WaWidget::mousePressEvent(e); WaWidget::mousePressEvent(e);
} }

@ -78,7 +78,7 @@ void WaDigit::paintEvent(TQPaintEvent *)
} }
void WaDigit::mousePressEvent(TQMouseEvent* e) { void WaDigit::mousePressEvent(TQMouseEvent* e) {
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
reverse_time = !reverse_time; reverse_time = !reverse_time;
emit digitsClicked(); emit digitsClicked();
} }

@ -150,7 +150,7 @@ void WaInfo::pixmapChange()
} }
void WaInfo::mousePressEvent (TQMouseEvent *e) { void WaInfo::mousePressEvent (TQMouseEvent *e) {
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
xGrabbedPos = (e->x() + xScrollPos) % completePixmap->width(); xGrabbedPos = (e->x() + xScrollPos) % completePixmap->width();
} }

@ -102,7 +102,7 @@ void WaSlider::updateSliderPos(int value)
} }
void WaSlider::mousePressEvent(TQMouseEvent *e) { void WaSlider::mousePressEvent(TQMouseEvent *e) {
if (e->button() != Qt::LeftButton && e->button() != Qt::MidButton) { if (e->button() != TQt::LeftButton && e->button() != TQt::MidButton) {
WaWidget::mousePressEvent(e); WaWidget::mousePressEvent(e);
return; return;
} }

@ -34,7 +34,7 @@ WaTitleBar::~WaTitleBar()
void WaTitleBar::mousePressEvent(TQMouseEvent * e) void WaTitleBar::mousePressEvent(TQMouseEvent * e)
{ {
if (e->button() != Qt::RightButton) { if (e->button() != TQt::RightButton) {
if (!moving) { if (!moving) {
moving = true; moving = true;
mDragStart = e->pos(); mDragStart = e->pos();
@ -55,7 +55,7 @@ void WaTitleBar::mouseDoubleClickEvent(TQMouseEvent *) {
void WaTitleBar::mouseReleaseEvent(TQMouseEvent * e) void WaTitleBar::mouseReleaseEvent(TQMouseEvent * e)
{ {
if (e->button() != Qt::RightButton) { if (e->button() != TQt::RightButton) {
moving = false; moving = false;
update(); update();
return; return;

@ -46,7 +46,7 @@ TQSize WaWidget::sizeHint() {
} }
void WaWidget::mousePressEvent(TQMouseEvent *e) { void WaWidget::mousePressEvent(TQMouseEvent *e) {
if (e->button() == Qt::RightButton) if (e->button() == TQt::RightButton)
NoatunStdAction::ContextMenu::showContextMenu(); NoatunStdAction::ContextMenu::showContextMenu();
} }

@ -55,7 +55,7 @@ WinSkinConfig::WinSkinConfig(TQWidget * parent, WaSkinManager *waSkinManager) :
mWaSkinManager = waSkinManager; mWaSkinManager = waSkinManager;
TQGroupBox *settingsBox = new TQGroupBox( 1,Qt::Vertical, i18n("Settings"), this ); TQGroupBox *settingsBox = new TQGroupBox( 1,TQt::Vertical, i18n("Settings"), this );
vbox->addWidget(settingsBox); vbox->addWidget(settingsBox);
TQHBox *box = new TQHBox(settingsBox); TQHBox *box = new TQHBox(settingsBox);
@ -68,7 +68,7 @@ WinSkinConfig::WinSkinConfig(TQWidget * parent, WaSkinManager *waSkinManager) :
scrollSpeed->setMinValue( 0 ); scrollSpeed->setMinValue( 0 );
scrollSpeed->setMaxValue( 50 ); scrollSpeed->setMaxValue( 50 );
scrollSpeed->setPageStep( 1 ); scrollSpeed->setPageStep( 1 );
scrollSpeed->setOrientation( Qt::Horizontal ); scrollSpeed->setOrientation( TQt::Horizontal );
scrollSpeed->setTickmarks( TQSlider::NoMarks ); scrollSpeed->setTickmarks( TQSlider::NoMarks );
label = new TQLabel(i18n("Fast"), box); label = new TQLabel(i18n("Fast"), box);

@ -187,7 +187,7 @@ void EncoderFLAC::fillSongInfo( KCDDB::CDInfo info, int track, const TQString &c
Comment("Date", TQString() )}; Comment("Date", TQString() )};
if (info.get("Year").toInt() > 0) { if (info.get("Year").toInt() > 0) {
TQDateTime dt(TQDate(info.get("Year").toInt(), 1, 1)); TQDateTime dt(TQDate(info.get("Year").toInt(), 1, 1));
comments[6] = Comment("Date", dt.toString(Qt::ISODate)); comments[6] = Comment("Date", dt.toString(TQt::ISODate));
} }
FLAC__StreamMetadata_VorbisComment_Entry entry; FLAC__StreamMetadata_VorbisComment_Entry entry;

@ -313,7 +313,7 @@ void EncoderVorbis::fillSongInfo( KCDDB::CDInfo info, int track, const TQString
if (info.get("year").toInt() > 0) { if (info.get("year").toInt() > 0) {
TQDateTime dt(TQDate(info.get("year").toInt(), 1, 1)); TQDateTime dt(TQDate(info.get("year").toInt(), 1, 1));
commentFields.append(CommentField("date", dt.toString(Qt::ISODate).utf8().data())); commentFields.append(CommentField("date", dt.toString(TQt::ISODate).utf8().data()));
} }
for(TQValueListIterator<CommentField> it = commentFields.begin(); it != commentFields.end(); ++it) { for(TQValueListIterator<CommentField> it = commentFields.begin(); it != commentFields.end(); ++it) {

@ -44,7 +44,7 @@ ChannelView::ChannelView(void) : TDEMainWindow(0, "ChannelView")
Channel[i]->setGeometry(5,5+i*CHANNELHEIGHT,width()-20,CHANNELHEIGHT); Channel[i]->setGeometry(5,5+i*CHANNELHEIGHT,width()-20,CHANNELHEIGHT);
Channel[i]->show(); Channel[i]->show();
} }
scrollbar=new TQScrollBar(1,16,1,1,1,Qt::Vertical,this,"Channelscrollbar"); scrollbar=new TQScrollBar(1,16,1,1,1,TQt::Vertical,this,"Channelscrollbar");
connect(scrollbar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(ScrollChn(int))); connect(scrollbar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(ScrollChn(int)));
setScrollBarRange(); setScrollBarRange();
} }

@ -90,7 +90,7 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
// currentsl=slman->getCollection(activecollection); // currentsl=slman->getCollection(activecollection);
itsme=0; itsme=0;
m_kMid.pid=0; m_kMid.pid=0;
timebar = new TQSlider(0,240000,30000,60000,Qt::Horizontal, this); timebar = new TQSlider(0,240000,30000,60000,TQt::Horizontal, this);
timebar->setSteps(30000,60000); timebar->setSteps(30000,60000);
timebar->setValue(0); timebar->setValue(0);
connect (timebar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(slotSeek(int))); connect (timebar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(slotSeek(int)));
@ -125,7 +125,7 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
rhythmview->setMaximumHeight(7); rhythmview->setMaximumHeight(7);
rhythmview->setMinimumHeight(7); rhythmview->setMinimumHeight(7);
volumebar = new TQSlider(0,200,10,100,Qt::Vertical, this ); volumebar = new TQSlider(0,200,10,100,TQt::Vertical, this );
volumebar->setSteps(10,20); volumebar->setSteps(10,20);
volumebar->setValue(100); volumebar->setValue(100);
volumebar->setTickmarks(TQSlider::NoMarks); volumebar->setTickmarks(TQSlider::NoMarks);

Loading…
Cancel
Save