|
|
|
@ -75,14 +75,14 @@
|
|
|
|
|
|
|
|
|
|
RollTitle::RollTitle( TQWidget *tqparent ) : TQLabel( "I", tqparent )
|
|
|
|
|
{
|
|
|
|
|
TQColorGroup cg = tqparentWidget()->tqcolorGroup();
|
|
|
|
|
TQColorGroup cg = parentWidget()->tqcolorGroup();
|
|
|
|
|
TQColor base = cg.base();
|
|
|
|
|
TQColor selection = cg.highlight();
|
|
|
|
|
int r = (base.red() + selection.red()) / 2;
|
|
|
|
|
int b = (base.blue() + selection.blue()) / 2;
|
|
|
|
|
int g = (base.green() + selection.green()) / 2;
|
|
|
|
|
back = TQColor(r, g, b);
|
|
|
|
|
fore = tqparentWidget()->tqcolorGroup().text();
|
|
|
|
|
fore = parentWidget()->tqcolorGroup().text();
|
|
|
|
|
setPaletteBackgroundColor( back );
|
|
|
|
|
setPaletteForegroundColor( fore );
|
|
|
|
|
setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
|
|
|
|
@ -149,7 +149,7 @@ void RollTitle::rollTitle()
|
|
|
|
|
void RollTitle::paintEvent( TQPaintEvent *pe )
|
|
|
|
|
{
|
|
|
|
|
TQLabel::paintEvent( pe );
|
|
|
|
|
TQColorGroup cg = tqparentWidget()->tqcolorGroup();
|
|
|
|
|
TQColorGroup cg = parentWidget()->tqcolorGroup();
|
|
|
|
|
TQColor base = cg.base();
|
|
|
|
|
TQColor selection = cg.highlight();
|
|
|
|
|
int r = (base.red() + selection.red()) / 2;
|
|
|
|
@ -157,7 +157,7 @@ void RollTitle::paintEvent( TQPaintEvent *pe )
|
|
|
|
|
int g = (base.green() + selection.green()) / 2;
|
|
|
|
|
back=TQColor(r,g,b);
|
|
|
|
|
setPaletteBackgroundColor( back );
|
|
|
|
|
fore = tqparentWidget()->tqcolorGroup().text();
|
|
|
|
|
fore = parentWidget()->tqcolorGroup().text();
|
|
|
|
|
setPaletteForegroundColor( fore );
|
|
|
|
|
setTitle( title );
|
|
|
|
|
}
|
|
|
|
@ -1172,7 +1172,7 @@ void PlayList::add(const TQStringList& urlList, TQListViewItem* after)
|
|
|
|
|
{
|
|
|
|
|
mrlList.clear();
|
|
|
|
|
kdDebug() << "PlayList: Try loading ram playlist\n";
|
|
|
|
|
if (PlaylistImport::ram(mrl, mrlList, mainWidget->tqparentWidget()))
|
|
|
|
|
if (PlaylistImport::ram(mrl, mrlList, mainWidget->parentWidget()))
|
|
|
|
|
{
|
|
|
|
|
TQValueList<MRL>::ConstIterator end(mrlList.end());
|
|
|
|
|
for (TQValueList<MRL>::ConstIterator it = mrlList.begin(); it != end; ++it)
|
|
|
|
@ -1829,8 +1829,8 @@ void PlayList::nextPlaylist()
|
|
|
|
|
m_playlistSelector->setCurrentItem(nextPlaylist);
|
|
|
|
|
m_currentPlaylist = nextPlaylist;
|
|
|
|
|
add(m_playlistDirectory + pl + ".kaffeine", NULL);
|
|
|
|
|
if (mainWidget->tqparentWidget())
|
|
|
|
|
mainWidget->tqparentWidget()->setFocus();
|
|
|
|
|
if (mainWidget->parentWidget())
|
|
|
|
|
mainWidget->parentWidget()->setFocus();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PlayList::slotPlaylistActivated(int index)
|
|
|
|
@ -1842,8 +1842,8 @@ void PlayList::slotPlaylistActivated(int index)
|
|
|
|
|
clearList();
|
|
|
|
|
m_currentPlaylist = index;
|
|
|
|
|
add(m_playlistDirectory + pl + ".kaffeine", NULL);
|
|
|
|
|
if (mainWidget->tqparentWidget())
|
|
|
|
|
mainWidget->tqparentWidget()->setFocus();
|
|
|
|
|
if (mainWidget->parentWidget())
|
|
|
|
|
mainWidget->parentWidget()->setFocus();
|
|
|
|
|
/* if (!isQueueMode())
|
|
|
|
|
{
|
|
|
|
|
getCurrent();
|
|
|
|
@ -1868,8 +1868,8 @@ void PlayList::slotNewPlaylistName(const TQString& text)
|
|
|
|
|
kdDebug() << "PlayList: Set playlist name to: " << text << endl;
|
|
|
|
|
m_playlistSelector->changeItem(text, m_currentPlaylist);
|
|
|
|
|
saveCurrentPlaylist();
|
|
|
|
|
if (mainWidget->tqparentWidget())
|
|
|
|
|
mainWidget->tqparentWidget()->setFocus();
|
|
|
|
|
if (mainWidget->parentWidget())
|
|
|
|
|
mainWidget->parentWidget()->setFocus();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TQString PlayList::queryCurrentPlaylist()
|
|
|
|
|