|
|
|
@ -3526,8 +3526,8 @@ Playlist::copyToClipboard( const TQListViewItem *item ) const //SLOT
|
|
|
|
|
text.append( " :: " + playlistItem->url().url() );
|
|
|
|
|
|
|
|
|
|
// Copy both to clipboard and X11-selection
|
|
|
|
|
TQApplication::tqclipboard()->setText( text, TQClipboard::Clipboard );
|
|
|
|
|
TQApplication::tqclipboard()->setText( text, TQClipboard::Selection );
|
|
|
|
|
TQApplication::clipboard()->setText( text, TQClipboard::Clipboard );
|
|
|
|
|
TQApplication::clipboard()->setText( text, TQClipboard::Selection );
|
|
|
|
|
|
|
|
|
|
Amarok::OSD::instance()->OSDWidget::show( i18n( "Copied: %1" ).arg( text ),
|
|
|
|
|
TQImage(CollectionDB::instance()->albumImage(*playlistItem )) );
|
|
|
|
@ -4579,7 +4579,7 @@ Playlist::slotMouseButtonPressed( int button, TQListViewItem *after, const TQPoi
|
|
|
|
|
{
|
|
|
|
|
case Qt::MidButton:
|
|
|
|
|
{
|
|
|
|
|
const TQString path = TQApplication::tqclipboard()->text( TQClipboard::Selection );
|
|
|
|
|
const TQString path = TQApplication::clipboard()->text( TQClipboard::Selection );
|
|
|
|
|
const KURL url = KURL::fromPathOrURL( path );
|
|
|
|
|
|
|
|
|
|
if( url.isValid() )
|
|
|
|
@ -4790,7 +4790,7 @@ Playlist::showTagDialog( TQPtrList<TQListViewItem> items )
|
|
|
|
|
lineEdit2 = new TQLineEdit( this, "Command" );
|
|
|
|
|
|
|
|
|
|
groupBox1 = new TQGroupBox( 1, Qt::Vertical, i18n( "Examples" ), this );
|
|
|
|
|
groupBox1->tqlayout()->setMargin( 11 );
|
|
|
|
|
groupBox1->layout()->setMargin( 11 );
|
|
|
|
|
new KActiveLabel( i18n( "file --brief %f\n" "ls -sh %f\n" "basename %f\n" "dirname %f" ), groupBox1 );
|
|
|
|
|
|
|
|
|
|
// buddies
|
|
|
|
@ -4798,22 +4798,22 @@ Playlist::showTagDialog( TQPtrList<TQListViewItem> items )
|
|
|
|
|
textLabel3->setBuddy( lineEdit2 );
|
|
|
|
|
|
|
|
|
|
// layouts
|
|
|
|
|
TQHBoxLayout *tqlayout1 = new TQHBoxLayout( 0, 0, 6 );
|
|
|
|
|
tqlayout1->addItem( new TQSpacerItem( 181, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ) );
|
|
|
|
|
tqlayout1->addWidget( new KPushButton( KStdGuiItem::ok(), this, "OkButton" ) );
|
|
|
|
|
tqlayout1->addWidget( new KPushButton( KStdGuiItem::cancel(), this, "CancelButton" ) );
|
|
|
|
|
TQHBoxLayout *layout1 = new TQHBoxLayout( 0, 0, 6 );
|
|
|
|
|
layout1->addItem( new TQSpacerItem( 181, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ) );
|
|
|
|
|
layout1->addWidget( new KPushButton( KStdGuiItem::ok(), this, "OkButton" ) );
|
|
|
|
|
layout1->addWidget( new KPushButton( KStdGuiItem::cancel(), this, "CancelButton" ) );
|
|
|
|
|
|
|
|
|
|
TQGridLayout *tqlayout2 = new TQGridLayout( 0, 2, 2, 0, 6 );
|
|
|
|
|
tqlayout2->TQLayout::add( textLabel2 );
|
|
|
|
|
tqlayout2->TQLayout::add( lineEdit1 );
|
|
|
|
|
tqlayout2->TQLayout::add( textLabel3 );
|
|
|
|
|
tqlayout2->TQLayout::add( lineEdit2 );
|
|
|
|
|
TQGridLayout *layout2 = new TQGridLayout( 0, 2, 2, 0, 6 );
|
|
|
|
|
layout2->TQLayout::add( textLabel2 );
|
|
|
|
|
layout2->TQLayout::add( lineEdit1 );
|
|
|
|
|
layout2->TQLayout::add( textLabel3 );
|
|
|
|
|
layout2->TQLayout::add( lineEdit2 );
|
|
|
|
|
|
|
|
|
|
TQVBoxLayout *Form1Layout = new TQVBoxLayout( this, 11, 6, "Form1Layout");
|
|
|
|
|
Form1Layout->addWidget( textLabel1 );
|
|
|
|
|
Form1Layout->addWidget( groupBox1 );
|
|
|
|
|
Form1Layout->addLayout( tqlayout2 );
|
|
|
|
|
Form1Layout->addLayout( tqlayout1 );
|
|
|
|
|
Form1Layout->addLayout( layout2 );
|
|
|
|
|
Form1Layout->addLayout( layout1 );
|
|
|
|
|
Form1Layout->addItem( new TQSpacerItem( 20, 231, TQSizePolicy::Minimum, TQSizePolicy::Expanding ) );
|
|
|
|
|
|
|
|
|
|
// properties
|
|
|
|
|