summaryrefslogtreecommitdiffstats
path: root/amarok/src/playlist.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-04 23:31:50 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-04 23:31:50 +0900
commit25db919b40a60e28a09ee456634e825de1f93327 (patch)
tree1ed801bf82fbd58faf6393e68c9f960adff205fa /amarok/src/playlist.cpp
parent99eb89b0e8ae80514de9b2420a493ffb48574a9f (diff)
downloadamarok-25db919b40a60e28a09ee456634e825de1f93327.tar.gz
amarok-25db919b40a60e28a09ee456634e825de1f93327.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'amarok/src/playlist.cpp')
-rw-r--r--amarok/src/playlist.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/amarok/src/playlist.cpp b/amarok/src/playlist.cpp
index 6dbdb050..8edbbece 100644
--- a/amarok/src/playlist.cpp
+++ b/amarok/src/playlist.cpp
@@ -2728,7 +2728,7 @@ Playlist::eventFilter( TQObject *o, TQEvent *e )
#define me TQT_TQMOUSEEVENT(e)
#define ke TQT_TQKEYEVENT(e)
- if( o == header() && e->type() == TQEvent::MouseButtonPress && me->button() == Qt::RightButton )
+ if( o == header() && e->type() == TQEvent::MouseButtonPress && me->button() == TQt::RightButton )
{
enum { HIDE = 1000, SELECT, CUSTOM, SMARTRESIZING };
@@ -2794,7 +2794,7 @@ Playlist::eventFilter( TQObject *o, TQEvent *e )
}
// not in slotMouseButtonPressed because we need to disable normal usage.
- if( o == viewport() && e->type() == TQEvent::MouseButtonPress && me->state() == TQt::ControlButton && me->button() == Qt::RightButton )
+ if( o == viewport() && e->type() == TQEvent::MouseButtonPress && me->state() == TQt::ControlButton && me->button() == TQt::RightButton )
{
PlaylistItem *item = static_cast<PlaylistItem*>( itemAt( me->pos() ) );
@@ -2809,7 +2809,7 @@ Playlist::eventFilter( TQObject *o, TQEvent *e )
}
// trigger in-place tag editing
- else if( o == viewport() && e->type() == TQEvent::MouseButtonPress && me->button() == Qt::LeftButton )
+ else if( o == viewport() && e->type() == TQEvent::MouseButtonPress && me->button() == TQt::LeftButton )
{
m_clicktimer->stop();
m_itemToRename = 0;
@@ -2820,7 +2820,7 @@ Playlist::eventFilter( TQObject *o, TQEvent *e )
bool edit = item
&& item->isSelected()
&& selectedItems().count()==1
- && (me->state() & ~Qt::LeftButton) == 0
+ && (me->state() & ~TQt::LeftButton) == 0
&& item->url().isLocalFile();
if( edit )
{
@@ -2832,7 +2832,7 @@ Playlist::eventFilter( TQObject *o, TQEvent *e )
}
}
- else if( o == viewport() && e->type() == TQEvent::MouseButtonRelease && me->button() == Qt::LeftButton )
+ else if( o == viewport() && e->type() == TQEvent::MouseButtonRelease && me->button() == TQt::LeftButton )
{
int col = header()->sectionAt( viewportToContents( me->pos() ).x() );
if( col != PlaylistItem::Rating )
@@ -2851,14 +2851,14 @@ Playlist::eventFilter( TQObject *o, TQEvent *e )
}
// avoid in-place tag editing upon double-clicks
- else if( e->type() == TQEvent::MouseButtonDblClick && me->button() == Qt::LeftButton )
+ else if( e->type() == TQEvent::MouseButtonDblClick && me->button() == TQt::LeftButton )
{
m_itemToRename = 0;
m_clicktimer->stop();
}
// Toggle play/pause if user middle-clicks on current track
- else if( o == viewport() && e->type() == TQEvent::MouseButtonPress && me->button() == Qt::MidButton )
+ else if( o == viewport() && e->type() == TQEvent::MouseButtonPress && me->button() == TQt::MidButton )
{
PlaylistItem *item = static_cast<PlaylistItem*>( itemAt( me->pos() ) );
@@ -4194,7 +4194,7 @@ void Playlist::contentsMousePressEvent( TQMouseEvent *e )
/// Conditions on setting the rating of an item
if( item &&
!( e->state() & TQt::ControlButton || e->state() & TQt::ShiftButton ) && // skip if ctrl or shift held
- ( e->button() & Qt::LeftButton ) && // only on a left click
+ ( e->button() & TQt::LeftButton ) && // only on a left click
( e->pos().x() > beginRatingSection && e->pos().x() < endRatingSection ) ) // mouse over rating column
{
int rating = item->ratingAtPoint( e->pos().x() );
@@ -4577,7 +4577,7 @@ Playlist::slotMouseButtonPressed( int button, TQListViewItem *after, const TQPoi
{
switch( button )
{
- case Qt::MidButton:
+ case TQt::MidButton:
{
const TQString path = TQApplication::clipboard()->text( TQClipboard::Selection );
const KURL url = KURL::fromPathOrURL( path );
@@ -4588,7 +4588,7 @@ Playlist::slotMouseButtonPressed( int button, TQListViewItem *after, const TQPoi
break;
}
- case Qt::RightButton:
+ case TQt::RightButton:
showContextMenu( after, p, col );
break;
@@ -4789,7 +4789,7 @@ Playlist::showTagDialog( TQPtrList<TQListViewItem> items )
lineEdit1 = new TQLineEdit( this, "ColumnName" );
lineEdit2 = new TQLineEdit( this, "Command" );
- groupBox1 = new TQGroupBox( 1, Qt::Vertical, i18n( "Examples" ), this );
+ groupBox1 = new TQGroupBox( 1, TQt::Vertical, i18n( "Examples" ), this );
groupBox1->layout()->setMargin( 11 );
new KActiveLabel( i18n( "file --brief %f\n" "ls -sh %f\n" "basename %f\n" "dirname %f" ), groupBox1 );