Rename old tq methods that no longer need a unique name

pull/1/head
Timothy Pearson 13 years ago
parent 6335e577d7
commit 60ed202f80

@ -75,14 +75,14 @@
RollTitle::RollTitle( TQWidget *parent ) : TQLabel( "I", parent ) RollTitle::RollTitle( TQWidget *parent ) : TQLabel( "I", parent )
{ {
TQColorGroup cg = parentWidget()->tqcolorGroup(); TQColorGroup cg = parentWidget()->colorGroup();
TQColor base = cg.base(); TQColor base = cg.base();
TQColor selection = cg.highlight(); TQColor selection = cg.highlight();
int r = (base.red() + selection.red()) / 2; int r = (base.red() + selection.red()) / 2;
int b = (base.blue() + selection.blue()) / 2; int b = (base.blue() + selection.blue()) / 2;
int g = (base.green() + selection.green()) / 2; int g = (base.green() + selection.green()) / 2;
back = TQColor(r, g, b); back = TQColor(r, g, b);
fore = parentWidget()->tqcolorGroup().text(); fore = parentWidget()->colorGroup().text();
setPaletteBackgroundColor( back ); setPaletteBackgroundColor( back );
setPaletteForegroundColor( fore ); setPaletteForegroundColor( fore );
setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken ); setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
@ -115,7 +115,7 @@ void RollTitle::setTitle( TQString t )
{ {
TQLabel *lab = new TQLabel( t, this ); TQLabel *lab = new TQLabel( t, this );
lab->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken ); lab->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
lab->resize( lab->tqsizeHint() ); lab->resize( lab->sizeHint() );
int x = 2*lab->frameWidth(); int x = 2*lab->frameWidth();
titlePix = TQPixmap( lab->width()-x, height()-x, -1, TQPixmap::BestOptim ); titlePix = TQPixmap( lab->width()-x, height()-x, -1, TQPixmap::BestOptim );
delete lab; delete lab;
@ -149,7 +149,7 @@ void RollTitle::rollTitle()
void RollTitle::paintEvent( TQPaintEvent *pe ) void RollTitle::paintEvent( TQPaintEvent *pe )
{ {
TQLabel::paintEvent( pe ); TQLabel::paintEvent( pe );
TQColorGroup cg = parentWidget()->tqcolorGroup(); TQColorGroup cg = parentWidget()->colorGroup();
TQColor base = cg.base(); TQColor base = cg.base();
TQColor selection = cg.highlight(); TQColor selection = cg.highlight();
int r = (base.red() + selection.red()) / 2; int r = (base.red() + selection.red()) / 2;
@ -157,7 +157,7 @@ void RollTitle::paintEvent( TQPaintEvent *pe )
int g = (base.green() + selection.green()) / 2; int g = (base.green() + selection.green()) / 2;
back=TQColor(r,g,b); back=TQColor(r,g,b);
setPaletteBackgroundColor( back ); setPaletteBackgroundColor( back );
fore = parentWidget()->tqcolorGroup().text(); fore = parentWidget()->colorGroup().text();
setPaletteForegroundColor( fore ); setPaletteForegroundColor( fore );
setTitle( title ); setTitle( title );
} }
@ -283,7 +283,7 @@ PlayList::PlayList( TQWidget* parent, TQObject *objParent, const char *name ) :
google = NULL; google = NULL;
mainWidget = new TQVBox( parent ); mainWidget = new TQVBox( parent );
//mainWidget->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::Preferred) ); //mainWidget->setSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::Preferred) );
hSplit = new TQSplitter( mainWidget ); hSplit = new TQSplitter( mainWidget );
hSplit->setOpaqueResize( true ); hSplit->setOpaqueResize( true );
panel = new TQVBox( hSplit ); panel = new TQVBox( hSplit );
@ -404,7 +404,7 @@ PlayList::PlayList( TQWidget* parent, TQObject *objParent, const char *name ) :
h2->addWidget(playlistLabel); h2->addWidget(playlistLabel);
m_playlistSelector = new KComboBox( playlist ); m_playlistSelector = new KComboBox( playlist );
m_playlistSelector->setMinimumWidth(10); m_playlistSelector->setMinimumWidth(10);
m_playlistSelector->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred) ); m_playlistSelector->setSizePolicy( TQSizePolicy (TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred) );
m_playlistSelector->setEditable(true); m_playlistSelector->setEditable(true);
m_playlistSelector->setDuplicatesEnabled(false); m_playlistSelector->setDuplicatesEnabled(false);
m_playlistSelector->setFocusPolicy(TQ_ClickFocus); m_playlistSelector->setFocusPolicy(TQ_ClickFocus);
@ -706,7 +706,7 @@ MRL PlayList::getCurrent()
if (isQueueMode()) if (isQueueMode())
{ {
m_queue.clear(); m_queue.clear();
updatetqStatus(); updateStatus();
} }
if (m_random) if (m_random)
@ -747,7 +747,7 @@ bool PlayList::nextTrack( MRL &mrl )
{ {
mrl = m_queue.first(); mrl = m_queue.first();
m_queue.remove(m_queue.begin()); m_queue.remove(m_queue.begin());
updatetqStatus(); updateStatus();
return true; return true;
} }
@ -802,7 +802,7 @@ bool PlayList::previousTrack( MRL &mrl )
if (isQueueMode()) if (isQueueMode())
{ {
m_queue.clear(); m_queue.clear();
updatetqStatus(); updateStatus();
} }
if (!m_currentEntry) { if (!m_currentEntry) {
@ -1349,7 +1349,7 @@ void PlayList::add(const TQStringList& urlList, TQListViewItem* after)
delete progress; delete progress;
if (m_random) createRandomList(); if (m_random) createRandomList();
updatetqStatus(); updateStatus();
} }
void PlayList::add(const TQValueList<MRL>& mrlList, TQListViewItem* after) void PlayList::add(const TQValueList<MRL>& mrlList, TQListViewItem* after)
@ -1357,7 +1357,7 @@ void PlayList::add(const TQValueList<MRL>& mrlList, TQListViewItem* after)
TQValueList<MRL>::ConstIterator end(mrlList.end()); TQValueList<MRL>::ConstIterator end(mrlList.end());
for (TQValueList<MRL>::ConstIterator it = mrlList.begin(); it != end; ++it) for (TQValueList<MRL>::ConstIterator it = mrlList.begin(); it != end; ++it)
after = insertItem(after, *it); after = insertItem(after, *it);
updatetqStatus(); updateStatus();
if (m_random) createRandomList(); if (m_random) createRandomList();
} }
@ -1419,7 +1419,7 @@ void PlayList::clearList()
m_playlistFilter->clear(); m_playlistFilter->clear();
m_searchSelection = false; m_searchSelection = false;
} }
updatetqStatus(); updateStatus();
m_currentEntry = NULL; m_currentEntry = NULL;
m_currentRandomListEntry = -1; m_currentRandomListEntry = -1;
} }
@ -1435,7 +1435,7 @@ void PlayList::slotDropEvent(TQDropEvent* dev, TQListViewItem* after)
{ {
for (uint i=0; i < urls.count() ;i++) for (uint i=0; i < urls.count() ;i++)
{ {
//KURL url(TQUriDrag::tqunicodeUriToUri(urls[i])); //KURL url(TQUriDrag::unicodeUriToUri(urls[i]));
//newurls << url.path(-1); //newurls << url.path(-1);
//kdDebug() << "PlayList: Dropped " << url.path() << endl; //kdDebug() << "PlayList: Dropped " << url.path() << endl;
newurls << urls[i]; newurls << urls[i];
@ -1453,7 +1453,7 @@ void PlayList::slotDropEvent(TQDropEvent* dev, TQListViewItem* after)
else else
if (strcmp(dev->format(), "text/x-moz-url") == 0) /* for mozilla drops */ if (strcmp(dev->format(), "text/x-moz-url") == 0) /* for mozilla drops */
{ {
TQByteArray data = dev->tqencodedData("text/plain"); TQByteArray data = dev->encodedData("text/plain");
TQString md(data); TQString md(data);
add(md, after); add(md, after);
} }
@ -1602,7 +1602,7 @@ void PlayList::mergeMeta(const MRL& mrl)
if (tmp->isVisible()) if (tmp->isVisible())
m_playTimeVisible += timeStringToMs(tmp->length()); m_playTimeVisible += timeStringToMs(tmp->length());
updatetqStatus(); updateStatus();
} }
} }
@ -1762,10 +1762,10 @@ void PlayList::slotRemoveSelected()
} }
if (m_random) createRandomList(); if (m_random) createRandomList();
updatetqStatus(); updateStatus();
} }
void PlayList::updatetqStatus() void PlayList::updateStatus()
{ {
TQString status; TQString status;
if (isQueueMode()) if (isQueueMode())
@ -2121,7 +2121,7 @@ void PlayList::slotFindText(const TQString& text)
m_searchSelection = true; m_searchSelection = true;
if (m_random) createRandomList(); if (m_random) createRandomList();
updatetqStatus(); updateStatus();
} }
@ -2170,7 +2170,7 @@ void PlayList::slotCopy()
for (uint i=0; i<selected.count(); i++) for (uint i=0; i<selected.count(); i++)
{ {
urlList.append(TQUriDrag::tqunicodeUriToUri(dynamic_cast<PlaylistItem *>(selected.at(i))->url())); urlList.append(TQUriDrag::unicodeUriToUri(dynamic_cast<PlaylistItem *>(selected.at(i))->url()));
} }
TQApplication::tqclipboard()->setData(new TQUriDrag(urlList)); TQApplication::tqclipboard()->setData(new TQUriDrag(urlList));
@ -2209,7 +2209,7 @@ void PlayList::slotPlaylistFromSelected()
void PlayList::slotAddToQueue(MRL mrl) void PlayList::slotAddToQueue(MRL mrl)
{ {
m_queue.append(mrl); m_queue.append(mrl);
updatetqStatus(); updateStatus();
} }
/**** helper ****/ /**** helper ****/

@ -239,7 +239,7 @@ private slots:
private: private:
TQListViewItem* insertItem(TQListViewItem* after, const MRL&); TQListViewItem* insertItem(TQListViewItem* after, const MRL&);
void updatetqStatus(); void updateStatus();
void createRandomList(); void createRandomList();
void getMetaInfo(MRL& mrl, const TQString& mimeName); void getMetaInfo(MRL& mrl, const TQString& mimeName);
void setupActions(); void setupActions();

@ -249,10 +249,10 @@ void PlaylistItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, i
{ {
if (isCurrent) if (isCurrent)
{ {
TQColorGroup tqcolorGroup = cg; TQColorGroup colorGroup = cg;
TQColor base = tqcolorGroup.base(); TQColor base = colorGroup.base();
TQColor selection = tqcolorGroup.highlight(); TQColor selection = colorGroup.highlight();
int r = (base.red() + selection.red()) / 2; int r = (base.red() + selection.red()) / 2;
int b = (base.blue() + selection.blue()) / 2; int b = (base.blue() + selection.blue()) / 2;
@ -260,8 +260,8 @@ void PlaylistItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, i
TQColor c(r, g, b); TQColor c(r, g, b);
tqcolorGroup.setColor(TQColorGroup::Base, c); colorGroup.setColor(TQColorGroup::Base, c);
TQListViewItem::paintCell(p, tqcolorGroup, column, width, align); TQListViewItem::paintCell(p, colorGroup, column, width, align);
} }
else else
return KListViewItem::paintCell(p, cg, column, width, align); return KListViewItem::paintCell(p, cg, column, width, align);

@ -50,7 +50,7 @@ MLabel::MLabel( TQWidget *parent ) : TQLabel( parent )
void MLabel::paintEvent( TQPaintEvent *pe ) void MLabel::paintEvent( TQPaintEvent *pe )
{ {
TQLabel::paintEvent( pe ); TQLabel::paintEvent( pe );
TQColorGroup cg = parentWidget()->tqcolorGroup(); TQColorGroup cg = parentWidget()->colorGroup();
TQColor base = cg.base(); TQColor base = cg.base();
TQColor selection = cg.highlight(); TQColor selection = cg.highlight();
int r = (base.red() + selection.red()) / 2; int r = (base.red() + selection.red()) / 2;
@ -76,22 +76,22 @@ void MListView::resizeEvent( TQResizeEvent *rev )
Disc::Disc( TQWidget* parent, TQObject *objParent, const char *name ) : KaffeineInput(objParent , name) Disc::Disc( TQWidget* parent, TQObject *objParent, const char *name ) : KaffeineInput(objParent , name)
{ {
mainWidget = new TQVBox( parent ); mainWidget = new TQVBox( parent );
mainWidget->tqsetSizePolicy( TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Preferred) ); mainWidget->setSizePolicy( TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Preferred) );
split = new TQSplitter( mainWidget ); split = new TQSplitter( mainWidget );
split->setOpaqueResize( true ); split->setOpaqueResize( true );
widg = new TQWidget( split ); widg = new TQWidget( split );
widg->setMinimumWidth( 200 ); widg->setMinimumWidth( 200 );
widg->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::MinimumExpanding ) ); widg->setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::MinimumExpanding ) );
TQVBoxLayout *wb = new TQVBoxLayout( widg, 0, 0 ); TQVBoxLayout *wb = new TQVBoxLayout( widg, 0, 0 );
discLab = new MLabel( widg ); discLab = new MLabel( widg );
wb->addWidget( discLab ); wb->addWidget( discLab );
playerBox = new TQVBox( widg ); playerBox = new TQVBox( widg );
wb->addWidget( playerBox ); wb->addWidget( playerBox );
playerBox->setMinimumWidth( 200 ); playerBox->setMinimumWidth( 200 );
playerBox->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::MinimumExpanding ) ); playerBox->setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::MinimumExpanding ) );
panel = new TQFrame( split ); panel = new TQFrame( split );
split->moveToFirst( panel ); split->moveToFirst( panel );
panel->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::MinimumExpanding ) ); panel->setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::MinimumExpanding ) );
split->setResizeMode( panel, TQSplitter::KeepSize ); split->setResizeMode( panel, TQSplitter::KeepSize );
TQVBoxLayout *vb = new TQVBoxLayout( panel, 3, 3 ); TQVBoxLayout *vb = new TQVBoxLayout( panel, 3, 3 );
@ -99,13 +99,13 @@ Disc::Disc( TQWidget* parent, TQObject *objParent, const char *name ) : Kaffeine
cdBtn->setTextLabel( i18n("Play CD") ); cdBtn->setTextLabel( i18n("Play CD") );
cdBtn->setTextPosition( TQToolButton::Under ); cdBtn->setTextPosition( TQToolButton::Under );
cdBtn->setUsesTextLabel( true ); cdBtn->setUsesTextLabel( true );
cdBtn->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Fixed ) ); cdBtn->setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Fixed ) );
TQToolTip::add( cdBtn, i18n("Play CD")); TQToolTip::add( cdBtn, i18n("Play CD"));
ripBtn = new TQToolButton( panel ); ripBtn = new TQToolButton( panel );
ripBtn->setTextLabel( i18n("Rip CD") ); ripBtn->setTextLabel( i18n("Rip CD") );
ripBtn->setTextPosition( TQToolButton::Under ); ripBtn->setTextPosition( TQToolButton::Under );
ripBtn->setUsesTextLabel( true ); ripBtn->setUsesTextLabel( true );
ripBtn->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Fixed ) ); ripBtn->setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Fixed ) );
TQToolTip::add( ripBtn, i18n("Rip CD")); TQToolTip::add( ripBtn, i18n("Rip CD"));
TQHBoxLayout *h1 = new TQHBoxLayout(); TQHBoxLayout *h1 = new TQHBoxLayout();
@ -124,7 +124,7 @@ Disc::Disc( TQWidget* parent, TQObject *objParent, const char *name ) : Kaffeine
artistLab = new TQLabel( "", panel ); artistLab = new TQLabel( "", panel );
artistLab->setLineWidth(1); artistLab->setLineWidth(1);
artistLab->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); artistLab->setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
artistLab->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Preferred ) ); artistLab->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Preferred ) );
h1->addWidget( artistLab ); h1->addWidget( artistLab );
vb->addLayout( h1 ); vb->addLayout( h1 );
h1 = new TQHBoxLayout(); h1 = new TQHBoxLayout();
@ -132,7 +132,7 @@ Disc::Disc( TQWidget* parent, TQObject *objParent, const char *name ) : Kaffeine
albumLab = new TQLabel( "", panel ); albumLab = new TQLabel( "", panel );
albumLab->setLineWidth(1); albumLab->setLineWidth(1);
albumLab->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); albumLab->setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
albumLab->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Preferred ) ); albumLab->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Preferred ) );
h1->addWidget( albumLab ); h1->addWidget( albumLab );
vb->addLayout( h1 ); vb->addLayout( h1 );
@ -161,7 +161,7 @@ Disc::Disc( TQWidget* parent, TQObject *objParent, const char *name ) : Kaffeine
enc->setTextPosition( TQToolButton::Under ); enc->setTextPosition( TQToolButton::Under );
enc->setUsesTextLabel( true ); enc->setUsesTextLabel( true );
enc->setIconSet( KGlobal::iconLoader()->loadIconSet("kilogram", KIcon::Small) ); enc->setIconSet( KGlobal::iconLoader()->loadIconSet("kilogram", KIcon::Small) );
enc->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); enc->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
connect( enc, TQT_SIGNAL(clicked()), this, TQT_SLOT(encode()) ); connect( enc, TQT_SIGNAL(clicked()), this, TQT_SLOT(encode()) );
vb->addWidget( encodeWidget ); vb->addWidget( encodeWidget );
encodeWidget->hide(); encodeWidget->hide();

@ -165,7 +165,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>60</height> <height>60</height>
@ -190,7 +190,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>152</width> <width>152</width>
<height>20</height> <height>20</height>

@ -108,7 +108,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>16</height> <height>16</height>
@ -133,7 +133,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>107</width> <width>107</width>
<height>20</height> <height>20</height>

@ -98,7 +98,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>81</height> <height>81</height>
@ -123,7 +123,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>157</width> <width>157</width>
<height>20</height> <height>20</height>

@ -118,7 +118,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -137,7 +137,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>40</height> <height>40</height>
@ -274,7 +274,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>

@ -117,7 +117,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -150,7 +150,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -244,7 +244,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>

@ -72,7 +72,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -633,7 +633,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>166</height> <height>166</height>
@ -666,7 +666,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>150</width> <width>150</width>
<height>20</height> <height>20</height>

@ -45,7 +45,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>32</width> <width>32</width>
<height>20</height> <height>20</height>
@ -138,7 +138,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>67</height> <height>67</height>
@ -157,7 +157,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>39</width> <width>39</width>
<height>20</height> <height>20</height>
@ -243,7 +243,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>32</width> <width>32</width>
<height>20</height> <height>20</height>
@ -262,7 +262,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>95</height> <height>95</height>
@ -295,7 +295,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>177</width> <width>177</width>
<height>20</height> <height>20</height>

@ -170,7 +170,7 @@ bool DVBevents::tableEIT( unsigned char* buffer )
TQPtrList<EventDesc> *currentEvents; TQPtrList<EventDesc> *currentEvents;
bool nodesc, parse; bool nodesc, parse;
TQDateTime start, cur, dt; TQDateTime start, cur, dt;
unsigned int cdt = TQDateTime::tqcurrentDateTime().toTime_t(); unsigned int cdt = TQDateTime::currentDateTime().toTime_t();
tid = getBits(buf,0,8); tid = getBits(buf,0,8);
length = getBits(buf,12,12); length = getBits(buf,12,12);
@ -298,7 +298,7 @@ ifend:
if ( parse ) if ( parse )
++(desc->sn); ++(desc->sn);
if ( nodesc ) { if ( nodesc ) {
cur = TQDateTime::tqcurrentDateTime(); cur = TQDateTime::currentDateTime();
dt = desc->startDateTime; dt = desc->startDateTime;
sec = desc->duration.hour()*3600+desc->duration.minute()*60+desc->duration.second(); sec = desc->duration.hour()*3600+desc->duration.minute()*60+desc->duration.second();
if ( dt.addSecs( sec )<cur || desc->title.length()<3 ) { if ( dt.addSecs( sec )<cur || desc->title.length()<3 ) {

@ -402,7 +402,7 @@ bool DVBout::goRec( const TQString &name, int maxsize, RecTimer *t )
haveRec = true; haveRec = true;
if ( recTimer ) { if ( recTimer ) {
TQTime t = recTimer->duration.addSecs( TQDateTime::tqcurrentDateTime().secsTo(recTimer->begin) ); TQTime t = recTimer->duration.addSecs( TQDateTime::currentDateTime().secsTo(recTimer->begin) );
stopRecTimer.start( TQTime().msecsTo( t ), true ); stopRecTimer.start( TQTime().msecsTo( t ), true );
} }
else else

@ -114,7 +114,7 @@ DvbPanel::DvbPanel( TQWidget *parent, TQObject *objParent, const char *name ) :
dvb.setAutoDelete( true ); dvb.setAutoDelete( true );
mainWidget = new TQVBox( parent ); mainWidget = new TQVBox( parent );
mainWidget->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::Preferred) ); mainWidget->setSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::Preferred) );
split = new TQSplitter( mainWidget ); split = new TQSplitter( mainWidget );
split->setOpaqueResize( true ); split->setOpaqueResize( true );
pbox = new TQVBox( split ); pbox = new TQVBox( split );
@ -129,7 +129,7 @@ DvbPanel::DvbPanel( TQWidget *parent, TQObject *objParent, const char *name ) :
iconView->setSpacing(0); iconView->setSpacing(0);
iconView->setItemsMovable(false); iconView->setItemsMovable(false);
iconView->setResizeMode(TQIconView::Adjust); iconView->setResizeMode(TQIconView::Adjust);
iconView->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Minimum ) ); iconView->setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Minimum ) );
playerBox = new TQVBox( pbox ); playerBox = new TQVBox( pbox );
playerBox->setMinimumWidth( 200 ); playerBox->setMinimumWidth( 200 );
panel = new TQFrame( split ); panel = new TQFrame( split );
@ -192,7 +192,7 @@ DvbPanel::DvbPanel( TQWidget *parent, TQObject *objParent, const char *name ) :
channelsCb->addColumn( i18n("Name") ); channelsCb->addColumn( i18n("Name") );
channelsCb->addColumn( i18n("Source") ); channelsCb->addColumn( i18n("Source") );
channelsCb->setAllColumnsShowFocus( true ); channelsCb->setAllColumnsShowFocus( true );
channelsCb->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::MinimumExpanding) ); channelsCb->setSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::MinimumExpanding) );
//channelsCb->setEnabled( false ); //channelsCb->setEnabled( false );
vb->addWidget( channelsCb ); vb->addWidget( channelsCb );
@ -209,14 +209,14 @@ DvbPanel::DvbPanel( TQWidget *parent, TQObject *objParent, const char *name ) :
h1 = new TQHBoxLayout(); h1 = new TQHBoxLayout();
h1->addItem( new TQSpacerItem( 1, 1, TQSizePolicy::Preferred, TQSizePolicy::Minimum ) ); h1->addItem( new TQSpacerItem( 1, 1, TQSizePolicy::Preferred, TQSizePolicy::Minimum ) );
shiftLed = new KLed( panel ); shiftLed = new KLed( panel );
shiftLed->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); shiftLed->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
shiftLed->setDarkFactor( 500 ); shiftLed->setDarkFactor( 500 );
shiftLed->off(); shiftLed->off();
TQToolTip::add( shiftLed, i18n("Time shifting") ); TQToolTip::add( shiftLed, i18n("Time shifting") );
h1->addWidget( shiftLed ); h1->addWidget( shiftLed );
h1->addItem( new TQSpacerItem( 1, 1, TQSizePolicy::Preferred, TQSizePolicy::Minimum ) ); h1->addItem( new TQSpacerItem( 1, 1, TQSizePolicy::Preferred, TQSizePolicy::Minimum ) );
recordLed = new KLed( panel ); recordLed = new KLed( panel );
recordLed->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); recordLed->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
recordLed->setColor( TQColor( 255,0,0 ) ); recordLed->setColor( TQColor( 255,0,0 ) );
recordLed->setDarkFactor( 500 ); recordLed->setDarkFactor( 500 );
recordLed->off(); recordLed->off();
@ -224,7 +224,7 @@ DvbPanel::DvbPanel( TQWidget *parent, TQObject *objParent, const char *name ) :
h1->addWidget( recordLed ); h1->addWidget( recordLed );
h1->addItem( new TQSpacerItem( 1, 1, TQSizePolicy::Preferred, TQSizePolicy::Minimum ) ); h1->addItem( new TQSpacerItem( 1, 1, TQSizePolicy::Preferred, TQSizePolicy::Minimum ) );
broadcastLed = new KLed( panel ); broadcastLed = new KLed( panel );
broadcastLed->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); broadcastLed->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
broadcastLed->setColor( TQColor( 255,128,0 ) ); broadcastLed->setColor( TQColor( 255,128,0 ) );
broadcastLed->setDarkFactor( 500 ); broadcastLed->setDarkFactor( 500 );
broadcastLed->off(); broadcastLed->off();
@ -272,7 +272,7 @@ DvbPanel::DvbPanel( TQWidget *parent, TQObject *objParent, const char *name ) :
connect( &showOsdTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(dvbOSD()) ); connect( &showOsdTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(dvbOSD()) );
connect( &tuningTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(setTuning()) ); connect( &tuningTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(setTuning()) );
connect( &stopTuningTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(setTuning()) ); connect( &stopTuningTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(setTuning()) );
connect( &diskTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(disktqStatus()) ); connect( &diskTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(diskStatus()) );
setConfig(); setConfig();
@ -295,7 +295,7 @@ void DvbPanel::togglePanel()
void DvbPanel::disktqStatus() void DvbPanel::diskStatus()
{ {
double freemb; double freemb;
struct statvfs buf; struct statvfs buf;
@ -644,7 +644,7 @@ void DvbPanel::dumpEvents()
if ( f.open(IO_WriteOnly|IO_Truncate) ) { if ( f.open(IO_WriteOnly|IO_Truncate) ) {
fprintf( stderr, "Creating events file.\n"); fprintf( stderr, "Creating events file.\n");
TQTextStream tt( &f ); TQTextStream tt( &f );
tt << "Saved: "+TQDateTime::tqcurrentDateTime().toString( "dd-MM-yyyy hh:mm:ss" )+"\n"; tt << "Saved: "+TQDateTime::currentDateTime().toString( "dd-MM-yyyy hh:mm:ss" )+"\n";
k= 0; k= 0;
for( i=0; i<events.getNSource(); i++ ) { for( i=0; i<events.getNSource(); i++ ) {
if ( !(esrc=events.getNEventSource( i )) ) if ( !(esrc=events.getNEventSource( i )) )
@ -956,7 +956,7 @@ void DvbPanel::dvbOSD(ChannelDesc liveChannel, DvbStream *d, int timeShift /* =
s = s+" - "; s = s+" - ";
s = s+desc->title; s = s+desc->title;
if ( !osdMode && !first && !myshift ) { if ( !osdMode && !first && !myshift ) {
TQDateTime dt = TQDateTime::tqcurrentDateTime(); TQDateTime dt = TQDateTime::currentDateTime();
int secs = desc->startDateTime.secsTo( dt ); int secs = desc->startDateTime.secsTo( dt );
i = TQTime().secsTo( desc->duration ); i = TQTime().secsTo( desc->duration );
if ( i!=0 ) if ( i!=0 )
@ -1131,7 +1131,7 @@ void DvbPanel::camClicked( int devNum )
TQPtrList<Transponder> DvbPanel::getSourcestqStatus() TQPtrList<Transponder> DvbPanel::getSourcesStatus()
{ {
int i, j; int i, j;
TQStringList list; TQStringList list;
@ -1163,7 +1163,7 @@ void DvbPanel::fillChannelList( ChannelDesc *ch )
ChannelDesc *chan; ChannelDesc *chan;
KListViewItem *it, *visible=0; KListViewItem *it, *visible=0;
bool cont=false; bool cont=false;
TQPtrList<Transponder> trans = getSourcestqStatus(); TQPtrList<Transponder> trans = getSourcesStatus();
trans.setAutoDelete( true ); trans.setAutoDelete( true );
searchLE->clear(); searchLE->clear();
@ -1320,7 +1320,7 @@ void DvbPanel::checkTimers()
bool live=false; bool live=false;
RecTimer *t; RecTimer *t;
ChannelDesc *chan; ChannelDesc *chan;
TQDateTime cur=TQDateTime::tqcurrentDateTime(); TQDateTime cur=TQDateTime::currentDateTime();
DvbStream *d; DvbStream *d;
for ( i=0; i<(int)timers.count(); i++ ) { for ( i=0; i<(int)timers.count(); i++ ) {
@ -1409,13 +1409,13 @@ void DvbPanel::setRecord()
if ( !dvbConfig->filenameFormat.contains("%chan") ) if ( !dvbConfig->filenameFormat.contains("%chan") )
s = curchan.name; s = curchan.name;
if ( !dvbConfig->filenameFormat.contains("%date") ) if ( !dvbConfig->filenameFormat.contains("%date") )
s+="_"+TQDateTime::tqcurrentDateTime().toString( "yyyyMMdd-hhmmss" ); s+="_"+TQDateTime::currentDateTime().toString( "yyyyMMdd-hhmmss" );
} }
rt = new RecTimer(); rt = new RecTimer();
rt->name = s; rt->name = s;
rt->channel = curchan.name; rt->channel = curchan.name;
rt->begin = TQDateTime::tqcurrentDateTime(); rt->begin = TQDateTime::currentDateTime();
rt->duration = TQTime( 0,0,0).addSecs( dvbConfig->instantDuration*60 ) ; rt->duration = TQTime( 0,0,0).addSecs( dvbConfig->instantDuration*60 ) ;
rt->running = 1; rt->running = 1;
rt->mode = 0; rt->mode = 0;
@ -2074,7 +2074,7 @@ void DvbPanel::pauseLiveTV()
if ( !d ) if ( !d )
return; return;
timeShiftFileName = dvbConfig->shiftDir+"DVBLive-"+TQDateTime::tqcurrentDateTime().toString("yyyyMMddThhmmss")+".m2t"; timeShiftFileName = dvbConfig->shiftDir+"DVBLive-"+TQDateTime::currentDateTime().toString("yyyyMMddThhmmss")+".m2t";
if ( d->doPause( timeShiftFileName ) ) if ( d->doPause( timeShiftFileName ) )
emit setTimeShiftFilename( timeShiftFileName ); emit setTimeShiftFilename( timeShiftFileName );
} }

@ -154,7 +154,7 @@ public slots:
void dvbNewTimer( TQString name, TQString channel, TQString datetime, TQString duration ); void dvbNewTimer( TQString name, TQString channel, TQString datetime, TQString duration );
int getSNR( int device ); int getSNR( int device );
void disktqStatus(); void diskStatus();
void camClicked( int devNum ); void camClicked( int devNum );
private: private:
@ -163,7 +163,7 @@ private:
bool getTimerList(); bool getTimerList();
bool saveTimerList(); bool saveTimerList();
void fillChannelList( ChannelDesc *ch=0 ); void fillChannelList( ChannelDesc *ch=0 );
TQPtrList<Transponder> getSourcestqStatus(); TQPtrList<Transponder> getSourcesStatus();
void updateModeTimer( RecTimer *t ); void updateModeTimer( RecTimer *t );
DvbStream* getWorkingDvb( int mode, ChannelDesc *chan ); DvbStream* getWorkingDvb( int mode, ChannelDesc *chan );

@ -84,7 +84,7 @@ DvbStream::DvbStream( Device *d, const TQString &charset, EventTable *et )
cam = NULL; cam = NULL;
plug = NULL; plug = NULL;
connect( &statusTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(checktqStatus()) ); connect( &statusTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(checkStatus()) );
} }
@ -221,7 +221,7 @@ bool DvbStream::closeFe()
void DvbStream::connecttqStatus( bool con ) void DvbStream::connectStatus( bool con )
{ {
if ( con ) if ( con )
statusTimer.start( 1000 ); statusTimer.start( 1000 );
@ -879,7 +879,7 @@ void DvbStream::removeOut( DVBout *o )
bool DvbStream::checktqStatus() bool DvbStream::checkStatus()
{ {
int32_t strength; int32_t strength;
fe_status_t festatus; fe_status_t festatus;
@ -887,19 +887,19 @@ bool DvbStream::checktqStatus()
strength=0; strength=0;
ioctl(fdFrontend,FE_READ_SIGNAL_STRENGTH,&strength); ioctl(fdFrontend,FE_READ_SIGNAL_STRENGTH,&strength);
emit signaltqStatus(strength*100/65535); emit signalStatus(strength*100/65535);
strength=0; strength=0;
ioctl(fdFrontend,FE_READ_SNR,&strength); ioctl(fdFrontend,FE_READ_SNR,&strength);
emit snrtqStatus(strength*100/65535); emit snrStatus(strength*100/65535);
memset( &festatus, 0, sizeof(festatus) ); memset( &festatus, 0, sizeof(festatus) );
ioctl(fdFrontend,FE_READ_STATUS,&festatus); ioctl(fdFrontend,FE_READ_STATUS,&festatus);
if (festatus & FE_HAS_LOCK) if (festatus & FE_HAS_LOCK)
emit locktqStatus( true ); emit lockStatus( true );
else { else {
emit locktqStatus( false ); emit lockStatus( false );
ret = false; ret = false;
} }
@ -1481,7 +1481,7 @@ void DvbStream::stopFrontend()
void DvbStream::setScanning( bool b ) void DvbStream::setScanning( bool b )
{ {
connecttqStatus( b ); connectStatus( b );
} }

@ -99,7 +99,7 @@ public :
public slots: public slots:
bool checktqStatus(); bool checkStatus();
void receivePlayDvb(); void receivePlayDvb();
void recordEnded( DVBout *o, RecTimer *t, bool kill ); void recordEnded( DVBout *o, RecTimer *t, bool kill );
void receiveShifting( bool b ); void receiveShifting( bool b );
@ -125,7 +125,7 @@ private :
void startReading(); void startReading();
bool openFe(); bool openFe();
bool closeFe(); bool closeFe();
void connecttqStatus( bool con ); void connectStatus( bool con );
TQFile liveFile; TQFile liveFile;
bool timeShifting; bool timeShifting;
@ -157,9 +157,9 @@ signals:
void timerEnded(RecTimer*); void timerEnded(RecTimer*);
void errorMsg( TQString ); void errorMsg( TQString );
void snrtqStatus( int ); void snrStatus( int );
void signaltqStatus( int ); void signalStatus( int );
void locktqStatus( bool ); void lockStatus( bool );
void shifting( bool ); void shifting( bool );
}; };

@ -34,7 +34,7 @@ KGradProgress::KGradProgress( TQWidget *parent ) : TQLabel( parent )
setFrameStyle( TQFrame::Box | TQFrame::Plain ); setFrameStyle( TQFrame::Box | TQFrame::Plain );
setLineWidth(1); setLineWidth(1);
setMidLineWidth(0); setMidLineWidth(0);
tqsetSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred ); setSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred );
} }
@ -113,7 +113,7 @@ void KGradProgress::paintEvent(TQPaintEvent *event)
TQSize KGradProgress::tqsizeHint() TQSize KGradProgress::sizeHint()
{ {
TQLabel lab( "This is a progress bar.", 0 ); TQLabel lab( "This is a progress bar.", 0 );
return TQSize( lab.width(), int(font().pointSize()*1.2) ); return TQSize( lab.width(), int(font().pointSize()*1.2) );

@ -37,7 +37,7 @@ public:
KGradProgress( TQWidget *parent ); KGradProgress( TQWidget *parent );
~KGradProgress(); ~KGradProgress();
virtual void paintEvent(TQPaintEvent *event); virtual void paintEvent(TQPaintEvent *event);
virtual TQSize tqsizeHint(); virtual TQSize sizeHint();
virtual TQSizePolicy sizePolicy(); virtual TQSizePolicy sizePolicy();
public slots: public slots:

@ -85,7 +85,7 @@ KTimerEditor::KTimerEditor( bool newone, TQStringList &chanList, RecTimer t, TQW
channelComb->insertStringList( chanList ); channelComb->insertStringList( chanList );
if ( newone ) { if ( newone ) {
begin->setDateTime( TQDateTime::tqcurrentDateTime() ); begin->setDateTime( TQDateTime::currentDateTime() );
duration->setTime( TQTime(2,0,0) ); duration->setTime( TQTime(2,0,0) );
} }
else { else {

@ -297,7 +297,7 @@ void EventTable::loadEpg()
char buf[EPGBUFSIZE]; char buf[EPGBUFSIZE];
int num=0; int num=0;
unsigned char sync; unsigned char sync;
TQDateTime cur=TQDateTime::tqcurrentDateTime(); TQDateTime cur=TQDateTime::currentDateTime();
TQTime t1=TQTime::currentTime(); TQTime t1=TQTime::currentTime();
if ( epgLoaded ) if ( epgLoaded )
@ -416,7 +416,7 @@ void EventTable::run()
setpriority(PRIO_PROCESS, 0, 19); setpriority(PRIO_PROCESS, 0, 19);
cur = TQDateTime::tqcurrentDateTime(); cur = TQDateTime::currentDateTime();
for( k=0; k<getNSource(); k++ ) { for( k=0; k<getNSource(); k++ ) {
if ( !(esrc=getNEventSource( k )) ) if ( !(esrc=getNEventSource( k )) )
continue; continue;

@ -148,9 +148,9 @@ ScanDialog::ScanDialog( TQPtrList<DvbStream> *d, TQPtrList<ChannelDesc> *ch, TQS
offsetGroup->hide(); offsetGroup->hide();
bool ok=false; bool ok=false;
dvbsi = new DVBsi( &ok, ds->getAdapter(), ds->getTuner(), ds, defaultCharset ); dvbsi = new DVBsi( &ok, ds->getAdapter(), ds->getTuner(), ds, defaultCharset );
connect( ds, TQT_SIGNAL(snrtqStatus(int)), snr, TQT_SLOT(setProgress(int)) ); connect( ds, TQT_SIGNAL(snrStatus(int)), snr, TQT_SLOT(setProgress(int)) );
connect( ds, TQT_SIGNAL(signaltqStatus(int)), signal, TQT_SLOT(setProgress(int)) ); connect( ds, TQT_SIGNAL(signalStatus(int)), signal, TQT_SLOT(setProgress(int)) );
connect( ds, TQT_SIGNAL(locktqStatus(bool)), this, TQT_SLOT(setLock(bool)) ); connect( ds, TQT_SIGNAL(lockStatus(bool)), this, TQT_SLOT(setLock(bool)) );
connect( dvbsi, TQT_SIGNAL(end(bool)), this, TQT_SLOT(siEnded(bool)) ); connect( dvbsi, TQT_SIGNAL(end(bool)), this, TQT_SLOT(siEnded(bool)) );
connect( &checkTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( checkNewChannel() ) ); connect( &checkTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( checkNewChannel() ) );
@ -209,9 +209,9 @@ void ScanDialog::setDvb( int index )
checkTimer.stop(); checkTimer.stop();
if ( progressTimer.isActive() ) if ( progressTimer.isActive() )
progressTimer.stop(); progressTimer.stop();
disconnect( ds, TQT_SIGNAL(snrtqStatus(int)), snr, TQT_SLOT(setProgress(int)) ); disconnect( ds, TQT_SIGNAL(snrStatus(int)), snr, TQT_SLOT(setProgress(int)) );
disconnect( ds, TQT_SIGNAL(signaltqStatus(int)), signal, TQT_SLOT(setProgress(int)) ); disconnect( ds, TQT_SIGNAL(signalStatus(int)), signal, TQT_SLOT(setProgress(int)) );
disconnect( ds, TQT_SIGNAL(locktqStatus(bool)), this, TQT_SLOT(setLock(bool)) ); disconnect( ds, TQT_SIGNAL(lockStatus(bool)), this, TQT_SLOT(setLock(bool)) );
disconnect( dvbsi, TQT_SIGNAL(end(bool)), this, TQT_SLOT(siEnded(bool)) ); disconnect( dvbsi, TQT_SIGNAL(end(bool)), this, TQT_SLOT(siEnded(bool)) );
ds->setScanning( false ); ds->setScanning( false );
dvbsi->stop(); dvbsi->stop();
@ -219,9 +219,9 @@ void ScanDialog::setDvb( int index )
ds = dvb->at(i); ds = dvb->at(i);
ds->setScanning( true ); ds->setScanning( true );
dvbsi = new DVBsi( &ok, ds->getAdapter(), ds->getTuner(), ds, defaultCharset ); dvbsi = new DVBsi( &ok, ds->getAdapter(), ds->getTuner(), ds, defaultCharset );
connect( ds, TQT_SIGNAL(snrtqStatus(int)), snr, TQT_SLOT(setProgress(int)) ); connect( ds, TQT_SIGNAL(snrStatus(int)), snr, TQT_SLOT(setProgress(int)) );
connect( ds, TQT_SIGNAL(signaltqStatus(int)), signal, TQT_SLOT(setProgress(int)) ); connect( ds, TQT_SIGNAL(signalStatus(int)), signal, TQT_SLOT(setProgress(int)) );
connect( ds, TQT_SIGNAL(locktqStatus(bool)), this, TQT_SLOT(setLock(bool)) ); connect( ds, TQT_SIGNAL(lockStatus(bool)), this, TQT_SLOT(setLock(bool)) );
connect( dvbsi, TQT_SIGNAL(end(bool)), this, TQT_SLOT(siEnded(bool)) ); connect( dvbsi, TQT_SIGNAL(end(bool)), this, TQT_SLOT(siEnded(bool)) );
break; break;
} }

@ -118,7 +118,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -257,7 +257,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>18</height> <height>18</height>
@ -282,7 +282,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>19</height> <height>19</height>
@ -503,7 +503,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>

@ -51,7 +51,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -159,7 +159,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -178,7 +178,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>180</height> <height>180</height>

@ -33,14 +33,14 @@ CdWidget::CdWidget( const TQString &ad, int port, int info, const TQString &tspa
: KaffeineInput( objParent, name ) : KaffeineInput( objParent, name )
{ {
mainWidget = new TQVBox( parent ); mainWidget = new TQVBox( parent );
mainWidget->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::Preferred) ); mainWidget->setSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::Preferred) );
split = new TQSplitter( mainWidget ); split = new TQSplitter( mainWidget );
split->setOpaqueResize( true ); split->setOpaqueResize( true );
playerBox = new TQVBox( split ); playerBox = new TQVBox( split );
playerBox->setMinimumWidth( 200 ); playerBox->setMinimumWidth( 200 );
channelsLb = new TQListBox( split ); channelsLb = new TQListBox( split );
split->moveToFirst( channelsLb ); split->moveToFirst( channelsLb );
channelsLb->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::MinimumExpanding) ); channelsLb->setSizePolicy( TQSizePolicy (TQSizePolicy::Preferred, TQSizePolicy::MinimumExpanding) );
split->setResizeMode( channelsLb, TQSplitter::KeepSize ); split->setResizeMode( channelsLb, TQSplitter::KeepSize );
cdAddress = ad; cdAddress = ad;
@ -324,7 +324,7 @@ void CdWidget::pauseLiveTV()
if ( !dump ) if ( !dump )
return; return;
if ( dump->running() ) { if ( dump->running() ) {
timeShiftFileName = cdShiftDir+"DVBClient-"+TQDateTime::tqcurrentDateTime().toString( Qt::ISODate )+".ts"; timeShiftFileName = cdShiftDir+"DVBClient-"+TQDateTime::currentDateTime().toString( Qt::ISODate )+".ts";
if ( dump->doPause( timeShiftFileName ) ) emit setTimeShiftFilename( timeShiftFileName ); if ( dump->doPause( timeShiftFileName ) ) emit setTimeShiftFilename( timeShiftFileName );
} }
} }

@ -323,7 +323,7 @@ bool InputManager::playbackFinished( MRL &mrl )
void InputManager::statusBarMessage( const TQString &msg ) void InputManager::statusBarMessage( const TQString &msg )
{ {
kaffeine->slotChangePlaylisttqStatus( msg ); kaffeine->slotChangePlaylistStatus( msg );
} }
@ -530,13 +530,13 @@ void InputManager::fullscreen( bool b )
int id=0; int id=0;
if ( b ) { if ( b ) {
stack->tqsetSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Ignored); stack->setSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Ignored);
oldMainWidget = currentMainWidget; oldMainWidget = currentMainWidget;
show( 2 ); show( 2 );
mtBar->hide(); mtBar->hide();
} }
else { else {
stack->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); stack->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
mtBar->show(); mtBar->show();
if ( oldMainWidget==startWindow ) if ( oldMainWidget==startWindow )
id = 1; id = 1;
@ -578,7 +578,7 @@ void PlayerContainer::dropEvent(TQDropEvent* dev)
{ {
for (uint i=0; i < urls.count() ;i++) for (uint i=0; i < urls.count() ;i++)
{ {
//KURL url(TQUriDrag::tqunicodeUriToUri(urls[i])); //KURL url(TQUriDrag::unicodeUriToUri(urls[i]));
//newurls << url.path(-1); //newurls << url.path(-1);
//kdDebug() << "Kaffeine: Dropped " << url.path() << endl; //kdDebug() << "Kaffeine: Dropped " << url.path() << endl;
newurls << urls[i]; newurls << urls[i];
@ -596,7 +596,7 @@ void PlayerContainer::dropEvent(TQDropEvent* dev)
else else
if (strcmp(dev->format(), "text/x-moz-url") == 0) // for mozilla drops if (strcmp(dev->format(), "text/x-moz-url") == 0) // for mozilla drops
{ {
TQByteArray data = dev->tqencodedData("text/plain"); TQByteArray data = dev->encodedData("text/plain");
TQString md(data); TQString md(data);
emit signalURLDropEvent(md); emit signalURLDropEvent(md);
} }

@ -272,7 +272,7 @@ void InstWizard::internalWizard()
void InstWizard::slotStdout(KProcess *, char *buffer, int buflen) void InstWizard::slotStdout(KProcess *, char *buffer, int buflen)
{ {
TQString output = TQString::tqfromLatin1(buffer, buflen); TQString output = TQString::fromLatin1(buffer, buflen);
kdDebug() << "WizardDialog: got from hdparm: " << output << "\n"; kdDebug() << "WizardDialog: got from hdparm: " << output << "\n";
stdout.append(output); stdout.append(output);
} }

@ -653,7 +653,7 @@ void Kaffeine::dropEvent(TQDropEvent* dev)
else else
if (strcmp(dev->format(), "text/x-moz-url") == 0) // for mozilla drops if (strcmp(dev->format(), "text/x-moz-url") == 0) // for mozilla drops
{ {
TQByteArray data = dev->tqencodedData("text/plain"); TQByteArray data = dev->encodedData("text/plain");
TQString md(data); TQString md(data);
load(md); load(md);
} }
@ -1087,7 +1087,7 @@ void Kaffeine::slotOpenFile()
KURL::List kurlList = KFileDialog::getOpenURLs(":kaffeine_openFile", fileFilter, 0, i18n("Open File(s)")); KURL::List kurlList = KFileDialog::getOpenURLs(":kaffeine_openFile", fileFilter, 0, i18n("Open File(s)"));
for (KURL::List::Iterator it = kurlList.begin(); it != kurlList.end(); ++it) for (KURL::List::Iterator it = kurlList.begin(); it != kurlList.end(); ++it)
if ((*it).isLocalFile() && (*it).path().tqendsWith(".iso", false)) if ((*it).isLocalFile() && (*it).path().endsWith(".iso", false))
(*it).setProtocol("dvd"); (*it).setProtocol("dvd");
TQStringList urlList = kurlList.toStringList(); TQStringList urlList = kurlList.toStringList();
@ -1557,7 +1557,7 @@ void Kaffeine::slotChangeStatusbar(const TQString& )
} }
void Kaffeine::slotChangePlaylisttqStatus(const TQString& ) void Kaffeine::slotChangePlaylistStatus(const TQString& )
{ {
//statusBar()->changeItem(text, 9); //statusBar()->changeItem(text, 9);
} }

@ -128,7 +128,7 @@ public slots:
void slotLoadURLS(const TQStringList&); void slotLoadURLS(const TQStringList&);
void slotSwitchToPlayerWindow(); void slotSwitchToPlayerWindow();
void slotChangeStatusbar(const TQString&); void slotChangeStatusbar(const TQString&);
void slotChangePlaylisttqStatus(const TQString&); void slotChangePlaylistStatus(const TQString&);
void slotStop(); void slotStop();
void slotPlayUnPause(); void slotPlayUnPause();

@ -121,9 +121,9 @@ void KMultiTabBarInternal::drawContents ( TQPainter * paint, int clipx, int clip
if (m_position==KMultiTabBar::Right) if (m_position==KMultiTabBar::Right)
{ {
paint->setPen(tqcolorGroup().shadow()); paint->setPen(colorGroup().shadow());
paint->drawLine(0,0,0,viewport()->height()); paint->drawLine(0,0,0,viewport()->height());
paint->setPen(tqcolorGroup().background().dark(120)); paint->setPen(colorGroup().background().dark(120));
paint->drawLine(1,0,1,viewport()->height()); paint->drawLine(1,0,1,viewport()->height());
@ -131,28 +131,28 @@ void KMultiTabBarInternal::drawContents ( TQPainter * paint, int clipx, int clip
else else
if (m_position==KMultiTabBar::Left) if (m_position==KMultiTabBar::Left)
{ {
paint->setPen(tqcolorGroup().light()); paint->setPen(colorGroup().light());
paint->drawLine(23,0,23,viewport()->height()); paint->drawLine(23,0,23,viewport()->height());
paint->drawLine(22,0,22,viewport()->height()); paint->drawLine(22,0,22,viewport()->height());
paint->setPen(tqcolorGroup().shadow()); paint->setPen(colorGroup().shadow());
paint->drawLine(0,0,0,viewport()->height()); paint->drawLine(0,0,0,viewport()->height());
} }
else else
if (m_position==KMultiTabBar::Bottom) if (m_position==KMultiTabBar::Bottom)
{ {
paint->setPen(tqcolorGroup().shadow()); paint->setPen(colorGroup().shadow());
paint->drawLine(0,0,viewport()->width(),0); paint->drawLine(0,0,viewport()->width(),0);
paint->setPen(tqcolorGroup().background().dark(120)); paint->setPen(colorGroup().background().dark(120));
paint->drawLine(0,1,viewport()->width(),1); paint->drawLine(0,1,viewport()->width(),1);
} }
else else
{ {
paint->setPen(tqcolorGroup().light()); paint->setPen(colorGroup().light());
paint->drawLine(0,23,viewport()->width(),23); paint->drawLine(0,23,viewport()->width(),23);
paint->drawLine(0,22,viewport()->width(),22); paint->drawLine(0,22,viewport()->width(),22);
/* paint->setPen(tqcolorGroup().shadow()); /* paint->setPen(colorGroup().shadow());
paint->drawLine(0,0,0,viewport()->height());*/ paint->drawLine(0,0,0,viewport()->height());*/
} }
@ -458,7 +458,7 @@ void KMultiTabBarButton::showEvent( TQShowEvent* he) {
} }
TQSize KMultiTabBarButton::tqsizeHint() const TQSize KMultiTabBarButton::sizeHint() const
{ {
constPolish(); constPolish();
@ -474,7 +474,7 @@ TQSize KMultiTabBarButton::tqsizeHint() const
} }
#endif #endif
if ( isMenuButton() ) if ( isMenuButton() )
w += tqstyle().tqpixelMetric(TQStyle::PM_MenuButtonIndicator, this); w += tqstyle().pixelMetric(TQStyle::PM_MenuButtonIndicator, this);
if ( pixmap() ) { if ( pixmap() ) {
TQPixmap *pm = (TQPixmap *)pixmap(); TQPixmap *pm = (TQPixmap *)pixmap();
@ -484,7 +484,7 @@ TQSize KMultiTabBarButton::tqsizeHint() const
TQString s( text() ); TQString s( text() );
bool empty = s.isEmpty(); bool empty = s.isEmpty();
if ( empty ) if ( empty )
s = TQString::tqfromLatin1("XXXX"); s = TQString::fromLatin1("XXXX");
TQFontMetrics fm = fontMetrics(); TQFontMetrics fm = fontMetrics();
TQSize sz = fm.size( ShowPrefix, s ); TQSize sz = fm.size( ShowPrefix, s );
if(!empty || !w) if(!empty || !w)
@ -581,12 +581,12 @@ void KMultiTabBarTab::updateState()
if ((m_position==KMultiTabBar::Right || m_position==KMultiTabBar::Left)) { if ((m_position==KMultiTabBar::Right || m_position==KMultiTabBar::Left)) {
setFixedWidth(24); setFixedWidth(24);
if ((m_style==KMultiTabBar::KDEV3) || (m_style==KMultiTabBar::KDEV3ICON) || (down)) { if ((m_style==KMultiTabBar::KDEV3) || (m_style==KMultiTabBar::KDEV3ICON) || (down)) {
setFixedHeight(KMultiTabBarButton::tqsizeHint().width()); setFixedHeight(KMultiTabBarButton::sizeHint().width());
} else setFixedHeight(36); } else setFixedHeight(36);
} else { } else {
setFixedHeight(24); setFixedHeight(24);
if ((m_style==KMultiTabBar::KDEV3) || (m_style==KMultiTabBar::KDEV3ICON) || (down)) { if ((m_style==KMultiTabBar::KDEV3) || (m_style==KMultiTabBar::KDEV3ICON) || (down)) {
setFixedWidth(KMultiTabBarButton::tqsizeHint().width()); setFixedWidth(KMultiTabBarButton::sizeHint().width());
} else setFixedWidth(36); } else setFixedWidth(36);
} }
} else { } else {
@ -637,7 +637,7 @@ void KMultiTabBarTab::drawButtonStyled(TQPainter *paint) {
const int height = 24; const int height = 24;
if ((m_style==KMultiTabBar::KDEV3) || (m_style==KMultiTabBar::KDEV3ICON) || (down)) { if ((m_style==KMultiTabBar::KDEV3) || (m_style==KMultiTabBar::KDEV3ICON) || (down)) {
if ((m_position==KMultiTabBar::Left) || (m_position==KMultiTabBar::Right)) if ((m_position==KMultiTabBar::Left) || (m_position==KMultiTabBar::Right))
sh=TQSize(this->height(),this->width());//KMultiTabBarButton::tqsizeHint(); sh=TQSize(this->height(),this->width());//KMultiTabBarButton::sizeHint();
else sh=TQSize(this->width(),this->height()); else sh=TQSize(this->width(),this->height());
} }
else else
@ -654,8 +654,8 @@ void KMultiTabBarTab::drawButtonStyled(TQPainter *paint) {
if (down) st|=TQStyle::Style_On; if (down) st|=TQStyle::Style_On;
tqstyle().tqdrawControl(TQStyle::CE_PushButton,&painter,this, TQRect(0,0,pixmap.width(),pixmap.height()), tqcolorGroup(),st); tqstyle().drawControl(TQStyle::CE_PushButton,&painter,this, TQRect(0,0,pixmap.width(),pixmap.height()), colorGroup(),st);
tqstyle().tqdrawControl(TQStyle::CE_PushButtonLabel,&painter,this, TQRect(0,0,pixmap.width(),pixmap.height()), tqcolorGroup(),st); tqstyle().drawControl(TQStyle::CE_PushButtonLabel,&painter,this, TQRect(0,0,pixmap.width(),pixmap.height()), colorGroup(),st);
switch (m_position) { switch (m_position) {
case KMultiTabBar::Left: case KMultiTabBar::Left:
@ -671,8 +671,8 @@ void KMultiTabBarTab::drawButtonStyled(TQPainter *paint) {
paint->drawPixmap(0,0,pixmap); paint->drawPixmap(0,0,pixmap);
break; break;
} }
// tqstyle().tqdrawControl(TQStyle::CE_PushButtonLabel,painter,this, TQRect(0,0,pixmap.width(),pixmap.height()), // tqstyle().drawControl(TQStyle::CE_PushButtonLabel,painter,this, TQRect(0,0,pixmap.width(),pixmap.height()),
// tqcolorGroup(),TQStyle::Style_Enabled); // colorGroup(),TQStyle::Style_Enabled);
} }
@ -682,58 +682,58 @@ void KMultiTabBarTab::drawButtonClassic(TQPainter *paint)
TQPixmap pixmap; TQPixmap pixmap;
if ( iconSet()) if ( iconSet())
pixmap = iconSet()->pixmap( TQIconSet::Small, TQIconSet::Normal ); pixmap = iconSet()->pixmap( TQIconSet::Small, TQIconSet::Normal );
paint->fillRect(0, 0, 24, 24, tqcolorGroup().background()); paint->fillRect(0, 0, 24, 24, colorGroup().background());
if (!down) if (!down)
{ {
if (m_position==KMultiTabBar::Right) if (m_position==KMultiTabBar::Right)
{ {
paint->fillRect(0,0,21,21,TQBrush(tqcolorGroup().background())); paint->fillRect(0,0,21,21,TQBrush(colorGroup().background()));
paint->setPen(tqcolorGroup().background().dark(150)); paint->setPen(colorGroup().background().dark(150));
paint->drawLine(0,22,23,22); paint->drawLine(0,22,23,22);
paint->drawPixmap(12-pixmap.width()/2,12-pixmap.height()/2,pixmap); paint->drawPixmap(12-pixmap.width()/2,12-pixmap.height()/2,pixmap);
paint->setPen(tqcolorGroup().shadow()); paint->setPen(colorGroup().shadow());
paint->drawLine(0,0,0,23); paint->drawLine(0,0,0,23);
paint->setPen(tqcolorGroup().background().dark(120)); paint->setPen(colorGroup().background().dark(120));
paint->drawLine(1,0,1,23); paint->drawLine(1,0,1,23);
} }
else else
if ((m_position==KMultiTabBar::Bottom) || (m_position==KMultiTabBar::Top)) if ((m_position==KMultiTabBar::Bottom) || (m_position==KMultiTabBar::Top))
{ {
paint->fillRect(0,1,23,22,TQBrush(tqcolorGroup().background())); paint->fillRect(0,1,23,22,TQBrush(colorGroup().background()));
paint->drawPixmap(12-pixmap.width()/2,12-pixmap.height()/2,pixmap); paint->drawPixmap(12-pixmap.width()/2,12-pixmap.height()/2,pixmap);
paint->setPen(tqcolorGroup().background().dark(120)); paint->setPen(colorGroup().background().dark(120));
paint->drawLine(23,0,23,23); paint->drawLine(23,0,23,23);
paint->setPen(tqcolorGroup().light()); paint->setPen(colorGroup().light());
paint->drawLine(0,22,23,22); paint->drawLine(0,22,23,22);
paint->drawLine(0,23,23,23); paint->drawLine(0,23,23,23);
paint->setPen(tqcolorGroup().shadow()); paint->setPen(colorGroup().shadow());
paint->drawLine(0,0,23,0); paint->drawLine(0,0,23,0);
paint->setPen(tqcolorGroup().background().dark(120)); paint->setPen(colorGroup().background().dark(120));
paint->drawLine(0,1,23,1); paint->drawLine(0,1,23,1);
} }
else else
{ {
paint->setPen(tqcolorGroup().background().dark(120)); paint->setPen(colorGroup().background().dark(120));
paint->drawLine(0,23,23,23); paint->drawLine(0,23,23,23);
paint->fillRect(0,0,23,21,TQBrush(tqcolorGroup().background())); paint->fillRect(0,0,23,21,TQBrush(colorGroup().background()));
paint->drawPixmap(12-pixmap.width()/2,12-pixmap.height()/2,pixmap); paint->drawPixmap(12-pixmap.width()/2,12-pixmap.height()/2,pixmap);
paint->setPen(tqcolorGroup().light()); paint->setPen(colorGroup().light());
paint->drawLine(23,0,23,23); paint->drawLine(23,0,23,23);
paint->drawLine(22,0,22,23); paint->drawLine(22,0,22,23);
paint->setPen(tqcolorGroup().shadow()); paint->setPen(colorGroup().shadow());
paint->drawLine(0,0,0,23); paint->drawLine(0,0,0,23);
} }
@ -744,12 +744,12 @@ void KMultiTabBarTab::drawButtonClassic(TQPainter *paint)
{ {
if (m_position==KMultiTabBar::Right) if (m_position==KMultiTabBar::Right)
{ {
paint->setPen(tqcolorGroup().shadow()); paint->setPen(colorGroup().shadow());
paint->drawLine(0,height()-1,23,height()-1); paint->drawLine(0,height()-1,23,height()-1);
paint->drawLine(0,height()-2,23,height()-2); paint->drawLine(0,height()-2,23,height()-2);
paint->drawLine(23,0,23,height()-1); paint->drawLine(23,0,23,height()-1);
paint->drawLine(22,0,22,height()-1); paint->drawLine(22,0,22,height()-1);
paint->fillRect(0,0,21,height()-3,TQBrush(tqcolorGroup().light())); paint->fillRect(0,0,21,height()-3,TQBrush(colorGroup().light()));
paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap); paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap);
if (m_showActiveTabText) if (m_showActiveTabText)
@ -759,9 +759,9 @@ void KMultiTabBarTab::drawButtonClassic(TQPainter *paint)
TQPixmap tpixmap(height()-25-3, width()-2); TQPixmap tpixmap(height()-25-3, width()-2);
TQPainter painter(&tpixmap); TQPainter painter(&tpixmap);
painter.fillRect(0,0,tpixmap.width(),tpixmap.height(),TQBrush(tqcolorGroup().light())); painter.fillRect(0,0,tpixmap.width(),tpixmap.height(),TQBrush(colorGroup().light()));
painter.setPen(tqcolorGroup().text()); painter.setPen(colorGroup().text());
painter.drawText(0,+width()/2+TQFontMetrics(TQFont()).height()/2,m_text); painter.drawText(0,+width()/2+TQFontMetrics(TQFont()).height()/2,m_text);
paint->rotate(90); paint->rotate(90);
@ -773,25 +773,25 @@ void KMultiTabBarTab::drawButtonClassic(TQPainter *paint)
else else
if (m_position==KMultiTabBar::Top) if (m_position==KMultiTabBar::Top)
{ {
paint->fillRect(0,0,width()-1,23,TQBrush(tqcolorGroup().light())); paint->fillRect(0,0,width()-1,23,TQBrush(colorGroup().light()));
paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap); paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap);
if (m_showActiveTabText) if (m_showActiveTabText)
{ {
paint->setPen(tqcolorGroup().text()); paint->setPen(colorGroup().text());
paint->drawText(25,height()/2+TQFontMetrics(TQFont()).height()/2,m_text); paint->drawText(25,height()/2+TQFontMetrics(TQFont()).height()/2,m_text);
} }
} }
else else
if (m_position==KMultiTabBar::Bottom) if (m_position==KMultiTabBar::Bottom)
{ {
paint->setPen(tqcolorGroup().shadow()); paint->setPen(colorGroup().shadow());
paint->drawLine(0,23,width()-1,23); paint->drawLine(0,23,width()-1,23);
paint->drawLine(0,22,width()-1,22); paint->drawLine(0,22,width()-1,22);
paint->fillRect(0,0,width()-1,21,TQBrush(tqcolorGroup().light())); paint->fillRect(0,0,width()-1,21,TQBrush(colorGroup().light()));
paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap); paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap);
if (m_showActiveTabText) if (m_showActiveTabText)
{ {
paint->setPen(tqcolorGroup().text()); paint->setPen(colorGroup().text());
paint->drawText(25,height()/2+TQFontMetrics(TQFont()).height()/2,m_text); paint->drawText(25,height()/2+TQFontMetrics(TQFont()).height()/2,m_text);
} }
@ -800,10 +800,10 @@ void KMultiTabBarTab::drawButtonClassic(TQPainter *paint)
{ {
paint->setPen(tqcolorGroup().shadow()); paint->setPen(colorGroup().shadow());
paint->drawLine(0,height()-1,23,height()-1); paint->drawLine(0,height()-1,23,height()-1);
paint->drawLine(0,height()-2,23,height()-2); paint->drawLine(0,height()-2,23,height()-2);
paint->fillRect(0,0,23,height()-3,TQBrush(tqcolorGroup().light())); paint->fillRect(0,0,23,height()-3,TQBrush(colorGroup().light()));
paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap); paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap);
if (m_showActiveTabText) if (m_showActiveTabText)
{ {
@ -813,9 +813,9 @@ void KMultiTabBarTab::drawButtonClassic(TQPainter *paint)
TQPixmap tpixmap(height()-25-3, width()-2); TQPixmap tpixmap(height()-25-3, width()-2);
TQPainter painter(&tpixmap); TQPainter painter(&tpixmap);
painter.fillRect(0,0,tpixmap.width(),tpixmap.height(),TQBrush(tqcolorGroup().light())); painter.fillRect(0,0,tpixmap.width(),tpixmap.height(),TQBrush(colorGroup().light()));
painter.setPen(tqcolorGroup().text()); painter.setPen(colorGroup().text());
painter.drawText(tpixmap.width()-TQFontMetrics(TQFont()).width(m_text),+width()/2+TQFontMetrics(TQFont()).height()/2,m_text); painter.drawText(tpixmap.width()-TQFontMetrics(TQFont()).width(m_text),+width()/2+TQFontMetrics(TQFont()).height()/2,m_text);
paint->rotate(-90); paint->rotate(-90);
@ -842,13 +842,13 @@ KMultiTabBar::KMultiTabBar(KMultiTabBarMode bm, TQWidget *parent,const char *nam
if (bm==Vertical) if (bm==Vertical)
{ {
m_l=new TQVBoxLayout(this); m_l=new TQVBoxLayout(this);
tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding, true); setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding, true);
// setFixedWidth(24); // setFixedWidth(24);
} }
else else
{ {
m_l=new TQHBoxLayout(this); m_l=new TQHBoxLayout(this);
tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed, true); setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed, true);
// setFixedHeight(24); // setFixedHeight(24);
} }
m_l->setMargin(0); m_l->setMargin(0);

@ -182,7 +182,7 @@ public slots:
*/ */
void setText(const TQString &); void setText(const TQString &);
TQSize tqsizeHint() const; TQSize sizeHint() const;
protected: protected:
KMultiTabBar::KMultiTabBarPosition m_position; KMultiTabBar::KMultiTabBarPosition m_position;

@ -39,7 +39,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contr, int bright, TQWidget *
grid->setSpacing(5); grid->setSpacing(5);
TQLabel* hueText = new TQLabel(i18n("Hue"), page); TQLabel* hueText = new TQLabel(i18n("Hue"), page);
hueText->tqsetAlignment(AlignRight); hueText->setAlignment(AlignRight);
m_hueSlider = new TQSlider(Qt::Horizontal, page); m_hueSlider = new TQSlider(Qt::Horizontal, page);
m_hueSlider->setRange(-1000, 1000); m_hueSlider->setRange(-1000, 1000);
m_hueSlider->setSteps(10, 100); m_hueSlider->setSteps(10, 100);
@ -49,7 +49,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contr, int bright, TQWidget *
grid->addWidget(m_hueSlider, 0, 1); grid->addWidget(m_hueSlider, 0, 1);
TQLabel* satText = new TQLabel(i18n("Saturation"), page); TQLabel* satText = new TQLabel(i18n("Saturation"), page);
satText->tqsetAlignment(AlignRight); satText->setAlignment(AlignRight);
m_satSlider = new TQSlider(Qt::Horizontal, page); m_satSlider = new TQSlider(Qt::Horizontal, page);
m_satSlider->setRange(-1000, 1000); m_satSlider->setRange(-1000, 1000);
m_satSlider->setSteps(10, 100); m_satSlider->setSteps(10, 100);
@ -59,7 +59,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contr, int bright, TQWidget *
grid->addWidget(m_satSlider, 1, 1); grid->addWidget(m_satSlider, 1, 1);
TQLabel* contrastText = new TQLabel(i18n("Contrast"), page); TQLabel* contrastText = new TQLabel(i18n("Contrast"), page);
contrastText->tqsetAlignment(AlignRight); contrastText->setAlignment(AlignRight);
m_contrastSlider = new TQSlider(Qt::Horizontal, page); m_contrastSlider = new TQSlider(Qt::Horizontal, page);
m_contrastSlider->setRange(-1000, 1000); m_contrastSlider->setRange(-1000, 1000);
m_contrastSlider->setSteps(10, 100); m_contrastSlider->setSteps(10, 100);
@ -69,7 +69,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contr, int bright, TQWidget *
grid->addWidget(m_contrastSlider, 2, 1); grid->addWidget(m_contrastSlider, 2, 1);
TQLabel* brightText = new TQLabel(i18n("Brightness"), page); TQLabel* brightText = new TQLabel(i18n("Brightness"), page);
brightText->tqsetAlignment(AlignRight); brightText->setAlignment(AlignRight);
m_brightSlider = new TQSlider(Qt::Horizontal, page); m_brightSlider = new TQSlider(Qt::Horizontal, page);
m_brightSlider->setRange(-1000, 1000); m_brightSlider->setRange(-1000, 1000);
m_brightSlider->setSteps(10, 100); m_brightSlider->setSteps(10, 100);

@ -78,12 +78,12 @@ DeinterlaceQuality::DeinterlaceQuality(TQWidget* filterDialog, TQWidget *parent,
connect(m_customBox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotCustomBoxToggled(bool))); connect(m_customBox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotCustomBoxToggled(bool)));
m_customConfigButton = new KPushButton(i18n("Configure tvtime Deinterlace Plugin..."), mainWidget); m_customConfigButton = new KPushButton(i18n("Configure tvtime Deinterlace Plugin..."), mainWidget);
m_customConfigButton->tqsetSizePolicy(TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed)); m_customConfigButton->setSizePolicy(TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed));
grid->addWidget(m_customConfigButton, 7, 1); grid->addWidget(m_customConfigButton, 7, 1);
connect(m_customConfigButton, TQT_SIGNAL(clicked()), filterDialog, TQT_SLOT(show())); connect(m_customConfigButton, TQT_SIGNAL(clicked()), filterDialog, TQT_SLOT(show()));
TQLabel* note = new TQLabel(i18n("* <i>May require a patched 2.4 kernel (like RedHat one) or 2.6 kernel.</i>"), mainWidget); TQLabel* note = new TQLabel(i18n("* <i>May require a patched 2.4 kernel (like RedHat one) or 2.6 kernel.</i>"), mainWidget);
note->tqsetAlignment(TQLabel::WordBreak | TQLabel::AlignVCenter); note->setAlignment(TQLabel::WordBreak | TQLabel::AlignVCenter);
grid->addMultiCellWidget(note, 9, 9, 0, 1); grid->addMultiCellWidget(note, 9, 9, 0, 1);
} }

@ -721,7 +721,7 @@ void KXineWidget::timerEvent( TQTimerEvent* tevent )
} }
case TIMER_EVENT_NEW_STATUS: case TIMER_EVENT_NEW_STATUS:
{ {
emit signalXinetqStatus(m_statusString); emit signalXineStatus(m_statusString);
break; break;
} }
case TIMER_EVENT_CHANGE_CURSOR: case TIMER_EVENT_CHANGE_CURSOR:
@ -1109,7 +1109,7 @@ bool KXineWidget::initXine()
if (isXineReady()) if (isXineReady())
return true; return true;
emit signalXinetqStatus(i18n("Init xine...")); emit signalXineStatus(i18n("Init xine..."));
globalPosChanged(); /* get global pos of the window */ globalPosChanged(); /* get global pos of the window */
/**** INIT XINE DISPLAY ****/ /**** INIT XINE DISPLAY ****/
@ -1377,7 +1377,7 @@ bool KXineWidget::initXine()
debugOut("xine init successful"); debugOut("xine init successful");
emit signalXinetqStatus(i18n("Ready")); emit signalXineStatus(i18n("Ready"));
emit signalXineReady(); emit signalXineReady();
/** something to play? **/ /** something to play? **/
@ -1508,7 +1508,7 @@ bool KXineWidget::playDvb()
m_posTimer.start(1000); m_posTimer.start(1000);
emit signalXinePlaying(); emit signalXinePlaying();
emit signalXinetqStatus(i18n("Playing")); emit signalXineStatus(i18n("Playing"));
return true; return true;
} }
@ -1882,7 +1882,7 @@ bool KXineWidget::openDvb()
} }
else fprintf(stderr,"xine pipe opened %s\n", m_trackURL.ascii()); else fprintf(stderr,"xine pipe opened %s\n", m_trackURL.ascii());
m_trackURL = "DVB"; m_trackURL = "DVB";
emit signalXinetqStatus(i18n("DVB: opening...")); emit signalXineStatus(i18n("DVB: opening..."));
TQTimer::singleShot( 0, this, TQT_SLOT(playDvb()) ); TQTimer::singleShot( 0, this, TQT_SLOT(playDvb()) );
return true; return true;
@ -1936,7 +1936,7 @@ void KXineWidget::slotPlay()
m_queue.remove(m_queue.find(m_trackURL)); m_queue.remove(m_queue.find(m_trackURL));
if (m_trackURL != m_logoFile) if (m_trackURL != m_logoFile)
emit signalXinetqStatus(i18n("Opening...")); emit signalXineStatus(i18n("Opening..."));
/* check for external subtitle file or save url */ /* check for external subtitle file or save url */
m_trackSubtitleURL = TQString(); m_trackSubtitleURL = TQString();
@ -2053,7 +2053,7 @@ void KXineWidget::slotPlay()
CodecUtf8 = TQTextCodec::codecForName("UTF-8"); CodecUtf8 = TQTextCodec::codecForName("UTF-8");
TQString infotag; TQString infotag;
infotag = TQString::tqfromLatin1(xine_get_meta_info(m_xineStream, XINE_META_INFO_TITLE)); infotag = TQString::fromLatin1(xine_get_meta_info(m_xineStream, XINE_META_INFO_TITLE));
if (currentUtf8Locale) if (currentUtf8Locale)
m_trackTitle = infotag; m_trackTitle = infotag;
@ -2068,9 +2068,9 @@ void KXineWidget::slotPlay()
TQString trackArtist=NULL; TQString trackArtist=NULL;
TQString trackAlbum=NULL; TQString trackAlbum=NULL;
TQString trackComment=NULL; TQString trackComment=NULL;
trackArtist = TQString::tqfromLatin1(xine_get_meta_info(m_xineStream, XINE_META_INFO_ARTIST)); trackArtist = TQString::fromLatin1(xine_get_meta_info(m_xineStream, XINE_META_INFO_ARTIST));
trackAlbum = TQString::tqfromLatin1(xine_get_meta_info(m_xineStream, XINE_META_INFO_ALBUM)); trackAlbum = TQString::fromLatin1(xine_get_meta_info(m_xineStream, XINE_META_INFO_ALBUM));
trackComment = TQString::tqfromLatin1(xine_get_meta_info(m_xineStream, XINE_META_INFO_COMMENT)); trackComment = TQString::fromLatin1(xine_get_meta_info(m_xineStream, XINE_META_INFO_COMMENT));
if (currentUtf8Locale) if (currentUtf8Locale)
{ {
m_trackArtist = trackArtist; m_trackArtist = trackArtist;
@ -2157,9 +2157,9 @@ void KXineWidget::slotPlay()
{ {
emit signalXinePlaying(); emit signalXinePlaying();
if (hasSaveURL()) if (hasSaveURL())
emit signalXinetqStatus(i18n("Recording")); emit signalXineStatus(i18n("Recording"));
else else
emit signalXinetqStatus(i18n("Playing")); emit signalXineStatus(i18n("Playing"));
} }
} }
@ -2239,7 +2239,7 @@ void KXineWidget::sendXineError()
{ {
if (m_trackURL != m_logoFile) if (m_trackURL != m_logoFile)
{ {
emit signalXinetqStatus(i18n("Error")); emit signalXineStatus(i18n("Error"));
emit signalXineError(error); emit signalXineError(error);
} }
else else
@ -2671,7 +2671,7 @@ void KXineWidget::slotSetVolume(int vol)
//debugOut(TQString("Set audio mixer volume: %1").tqarg(vol)); //debugOut(TQString("Set audio mixer volume: %1").tqarg(vol));
xine_set_param(m_xineStream, XINE_PARAM_AUDIO_VOLUME, vol); xine_set_param(m_xineStream, XINE_PARAM_AUDIO_VOLUME, vol);
} }
emit signalXinetqStatus(i18n("Volume") + ": " + TQString::number(vol) +"%"); emit signalXineStatus(i18n("Volume") + ": " + TQString::number(vol) +"%");
} }
uint KXineWidget::getVolume() const uint KXineWidget::getVolume() const
@ -2707,12 +2707,12 @@ void KXineWidget::slotToggleMute()
if (xine_get_param(m_xineStream, muteParam)) if (xine_get_param(m_xineStream, muteParam))
{ {
xine_set_param(m_xineStream, muteParam, 0); /* mute off */ xine_set_param(m_xineStream, muteParam, 0); /* mute off */
emit signalXinetqStatus(i18n("Mute Off")); emit signalXineStatus(i18n("Mute Off"));
} }
else else
{ {
xine_set_param(m_xineStream, muteParam, 1); /* mute on */ xine_set_param(m_xineStream, muteParam, 1); /* mute on */
emit signalXinetqStatus(i18n("Mute On")); emit signalXineStatus(i18n("Mute On"));
} }
} }
@ -2867,7 +2867,7 @@ void KXineWidget::slotStop()
TQTimer::singleShot(0, this, TQT_SLOT(slotPlay())); TQTimer::singleShot(0, this, TQT_SLOT(slotPlay()));
} }
emit signalXinetqStatus(i18n("Stop")); emit signalXineStatus(i18n("Stop"));
} }
void KXineWidget::slotSetAudiocdDevice(const TQString& device) void KXineWidget::slotSetAudiocdDevice(const TQString& device)
@ -2997,7 +2997,7 @@ void KXineWidget::slotSpeedPause()
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_PAUSE); xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_PAUSE);
m_posTimer.stop(); m_posTimer.stop();
if (m_currentSpeed != Undefined) if (m_currentSpeed != Undefined)
emit signalXinetqStatus(i18n("Pause")); emit signalXineStatus(i18n("Pause"));
m_currentSpeed = Pause; m_currentSpeed = Pause;
} }
} }
@ -3007,7 +3007,7 @@ void KXineWidget::slotSpeedNormal()
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_NORMAL); xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_NORMAL);
m_posTimer.start(200); m_posTimer.start(200);
m_currentSpeed = Normal; m_currentSpeed = Normal;
emit signalXinetqStatus(i18n("Playing") + " "); emit signalXineStatus(i18n("Playing") + " ");
} }
void KXineWidget::slotSpeedFaster() void KXineWidget::slotSpeedFaster()
@ -3018,7 +3018,7 @@ void KXineWidget::slotSpeedFaster()
{ {
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_FAST_4); xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_FAST_4);
m_currentSpeed = Fast2; m_currentSpeed = Fast2;
emit signalXinetqStatus(i18n("Fast Forward %1").tqarg("x2")); emit signalXineStatus(i18n("Fast Forward %1").tqarg("x2"));
break; break;
} }
case Fast2: case Fast2:
@ -3035,14 +3035,14 @@ void KXineWidget::slotSpeedFaster()
{ {
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_2); xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_2);
m_currentSpeed = Slow1; m_currentSpeed = Slow1;
emit signalXinetqStatus(i18n("Slow Motion %1").tqarg("x1")); emit signalXineStatus(i18n("Slow Motion %1").tqarg("x1"));
break; break;
} }
default: default:
{ {
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_FAST_2); xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_FAST_2);
m_currentSpeed = Fast1; m_currentSpeed = Fast1;
emit signalXinetqStatus(i18n("Fast Forward %1").tqarg("x1")); emit signalXineStatus(i18n("Fast Forward %1").tqarg("x1"));
break; break;
} }
} }
@ -3056,7 +3056,7 @@ void KXineWidget::slotSpeedSlower()
{ {
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_4); xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_4);
m_currentSpeed = Slow2; m_currentSpeed = Slow2;
emit signalXinetqStatus(i18n("Slow Motion %1").tqarg("x2")); emit signalXineStatus(i18n("Slow Motion %1").tqarg("x2"));
break; break;
} }
case Slow2: case Slow2:
@ -3073,14 +3073,14 @@ void KXineWidget::slotSpeedSlower()
{ {
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_FAST_2); xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_FAST_2);
m_currentSpeed = Fast1; m_currentSpeed = Fast1;
emit signalXinetqStatus(i18n("Fast Forward %1").tqarg("x1")); emit signalXineStatus(i18n("Fast Forward %1").tqarg("x1"));
break; break;
} }
default: default:
{ {
xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_2); xine_set_param(m_xineStream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_2);
m_currentSpeed = Slow1; m_currentSpeed = Slow1;
emit signalXinetqStatus(i18n("Slow Motion %1").tqarg("x1")); emit signalXineStatus(i18n("Slow Motion %1").tqarg("x1"));
break; break;
} }
} }
@ -3343,31 +3343,31 @@ void KXineWidget::slotToggleDeinterlace()
void KXineWidget::slotAspectRatioAuto() void KXineWidget::slotAspectRatioAuto()
{ {
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_AUTO); xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_AUTO);
emit signalXinetqStatus(i18n("Aspect Ratio") + ": " + i18n("Auto")); emit signalXineStatus(i18n("Aspect Ratio") + ": " + i18n("Auto"));
} }
void KXineWidget::slotAspectRatio4_3() void KXineWidget::slotAspectRatio4_3()
{ {
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_4_3); xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_4_3);
emit signalXinetqStatus(i18n("Aspect Ratio") + ": " + i18n("4:3")); emit signalXineStatus(i18n("Aspect Ratio") + ": " + i18n("4:3"));
} }
void KXineWidget::slotAspectRatioAnamorphic() void KXineWidget::slotAspectRatioAnamorphic()
{ {
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_ANAMORPHIC); xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_ANAMORPHIC);
emit signalXinetqStatus(i18n("Aspect Ratio") + ": " + i18n("16:9")); emit signalXineStatus(i18n("Aspect Ratio") + ": " + i18n("16:9"));
} }
void KXineWidget::slotAspectRatioSquare() void KXineWidget::slotAspectRatioSquare()
{ {
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_SQUARE); xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_SQUARE);
emit signalXinetqStatus(i18n("Aspect Ratio") + ": " + i18n("1:1")); emit signalXineStatus(i18n("Aspect Ratio") + ": " + i18n("1:1"));
} }
void KXineWidget::slotAspectRatioDVB() void KXineWidget::slotAspectRatioDVB()
{ {
xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_DVB); xine_set_param(m_xineStream, XINE_PARAM_VO_ASPECT_RATIO, XINE_VO_ASPECT_DVB);
emit signalXinetqStatus(i18n("Aspect Ratio") + ": " + i18n("2.11:1")); emit signalXineStatus(i18n("Aspect Ratio") + ": " + i18n("2.11:1"));
} }
void KXineWidget::slotZoomOutX() void KXineWidget::slotZoomOutX()
@ -3376,7 +3376,7 @@ void KXineWidget::slotZoomOutX()
{ {
m_currentZoomX -= 5; m_currentZoomX -= 5;
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoomX); xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoomX);
emit signalXinetqStatus(i18n("Zoom X") + ": " + TQString::number(m_currentZoomX) + "%"); emit signalXineStatus(i18n("Zoom X") + ": " + TQString::number(m_currentZoomX) + "%");
} }
} }
@ -3386,7 +3386,7 @@ void KXineWidget::slotZoomInX()
{ {
m_currentZoomX += 5; m_currentZoomX += 5;
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoomX); xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoomX);
emit signalXinetqStatus(i18n("Zoom X") + ": " + TQString::number(m_currentZoomX) + "%"); emit signalXineStatus(i18n("Zoom X") + ": " + TQString::number(m_currentZoomX) + "%");
} }
} }
@ -3396,7 +3396,7 @@ void KXineWidget::slotZoomOutY()
{ {
m_currentZoomY -= 5; m_currentZoomY -= 5;
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoomY); xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoomY);
emit signalXinetqStatus(i18n("Zoom Y") + ": " + TQString::number(m_currentZoomY) + "%"); emit signalXineStatus(i18n("Zoom Y") + ": " + TQString::number(m_currentZoomY) + "%");
} }
} }
@ -3406,7 +3406,7 @@ void KXineWidget::slotZoomInY()
{ {
m_currentZoomY += 5; m_currentZoomY += 5;
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoomY); xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoomY);
emit signalXinetqStatus(i18n("Zoom Y") + ": " + TQString::number(m_currentZoomY) + "%"); emit signalXineStatus(i18n("Zoom Y") + ": " + TQString::number(m_currentZoomY) + "%");
} }
} }
@ -3418,7 +3418,7 @@ void KXineWidget::slotZoomOut()
m_currentZoomX = m_currentZoomY = m_currentZoom; m_currentZoomX = m_currentZoomY = m_currentZoom;
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoom); xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoom);
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoom); xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoom);
emit signalXinetqStatus(i18n("Zoom") + ": " + TQString::number(m_currentZoom) + "%"); emit signalXineStatus(i18n("Zoom") + ": " + TQString::number(m_currentZoom) + "%");
} }
} }
@ -3430,7 +3430,7 @@ void KXineWidget::slotZoomIn()
m_currentZoomX = m_currentZoomY = m_currentZoom; m_currentZoomX = m_currentZoomY = m_currentZoom;
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoom); xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_X, m_currentZoom);
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoom); xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, m_currentZoom);
emit signalXinetqStatus(i18n("Zoom") + ": " + TQString::number(m_currentZoom) + "%"); emit signalXineStatus(i18n("Zoom") + ": " + TQString::number(m_currentZoom) + "%");
} }
} }
@ -3440,7 +3440,7 @@ void KXineWidget::slotZoomOff()
xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, 100); xine_set_param(m_xineStream, XINE_PARAM_VO_ZOOM_Y, 100);
m_currentZoom = 100; m_currentZoom = 100;
m_currentZoomX = m_currentZoomY = m_currentZoom; m_currentZoomX = m_currentZoomY = m_currentZoom;
emit signalXinetqStatus(i18n("Zoom") + ": " + TQString::number(m_currentZoom) + "%"); emit signalXineStatus(i18n("Zoom") + ": " + TQString::number(m_currentZoom) + "%");
} }
TQTime KXineWidget::getLengthInfo() TQTime KXineWidget::getLengthInfo()
@ -3513,37 +3513,37 @@ void KXineWidget::getspuOffset(int& spuOffset) const
void KXineWidget::slotSetHue(int hue) void KXineWidget::slotSetHue(int hue)
{ {
xine_set_param(m_xineStream, XINE_PARAM_VO_HUE, hue); xine_set_param(m_xineStream, XINE_PARAM_VO_HUE, hue);
emit signalXinetqStatus(i18n("Hue") + ": " + TQString::number((hue*100)/65535) + "%"); emit signalXineStatus(i18n("Hue") + ": " + TQString::number((hue*100)/65535) + "%");
} }
void KXineWidget::slotSetSaturation(int sat) void KXineWidget::slotSetSaturation(int sat)
{ {
xine_set_param(m_xineStream, XINE_PARAM_VO_SATURATION, sat); xine_set_param(m_xineStream, XINE_PARAM_VO_SATURATION, sat);
emit signalXinetqStatus(i18n("Saturation") + ": " + TQString::number((sat*100)/65535) + "%"); emit signalXineStatus(i18n("Saturation") + ": " + TQString::number((sat*100)/65535) + "%");
} }
void KXineWidget::slotSetContrast(int contrast) void KXineWidget::slotSetContrast(int contrast)
{ {
xine_set_param(m_xineStream, XINE_PARAM_VO_CONTRAST, contrast); xine_set_param(m_xineStream, XINE_PARAM_VO_CONTRAST, contrast);
emit signalXinetqStatus(i18n("Contrast") + ": " + TQString::number((contrast*100)/65535) + "%"); emit signalXineStatus(i18n("Contrast") + ": " + TQString::number((contrast*100)/65535) + "%");
} }
void KXineWidget::slotSetBrightness(int bright) void KXineWidget::slotSetBrightness(int bright)
{ {
xine_set_param(m_xineStream, XINE_PARAM_VO_BRIGHTNESS, bright); xine_set_param(m_xineStream, XINE_PARAM_VO_BRIGHTNESS, bright);
emit signalXinetqStatus(i18n("Brightness") + ": " + TQString::number((bright*100)/65535) + "%"); emit signalXineStatus(i18n("Brightness") + ": " + TQString::number((bright*100)/65535) + "%");
} }
void KXineWidget::slotSetAVOffset(int av) void KXineWidget::slotSetAVOffset(int av)
{ {
xine_set_param(m_xineStream, XINE_PARAM_AV_OFFSET, av); xine_set_param(m_xineStream, XINE_PARAM_AV_OFFSET, av);
emit signalXinetqStatus(i18n("Audio/Video Offset") + ": " + TQString::number(av/90) + i18n("msec")); emit signalXineStatus(i18n("Audio/Video Offset") + ": " + TQString::number(av/90) + i18n("msec"));
} }
void KXineWidget::slotSetSpuOffset(int spu) void KXineWidget::slotSetSpuOffset(int spu)
{ {
xine_set_param(m_xineStream, XINE_PARAM_SPU_OFFSET, spu); xine_set_param(m_xineStream, XINE_PARAM_SPU_OFFSET, spu);
emit signalXinetqStatus(i18n("Subtitle Offset") + ": " + TQString::number(spu/90) + i18n("msec")); emit signalXineStatus(i18n("Subtitle Offset") + ": " + TQString::number(spu/90) + i18n("msec"));
} }

@ -192,7 +192,7 @@ signals:
void signalXineFatal(const TQString& message); /** initXine() not successfull! **/ void signalXineFatal(const TQString& message); /** initXine() not successfull! **/
void signalXineError(const TQString& message); void signalXineError(const TQString& message);
void signalXineMessage(const TQString& message); void signalXineMessage(const TQString& message);
void signalXinetqStatus(const TQString& status); void signalXineStatus(const TQString& status);
void signalXineReady(); void signalXineReady();
void signalXinePlaying(); void signalXinePlaying();

@ -50,7 +50,7 @@ PostFilter::PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t*
xine_post_in_t* inputAPI = NULL; xine_post_in_t* inputAPI = NULL;
m_groupBox = new TQGroupBox(name, parent); m_groupBox = new TQGroupBox(name, parent);
m_groupBox->tqsetSizePolicy(TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed)); m_groupBox->setSizePolicy(TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed));
TQGridLayout* grid = new TQGridLayout(m_groupBox, 2, 2); TQGridLayout* grid = new TQGridLayout(m_groupBox, 2, 2);
grid->setMargin( 20 ); grid->setMargin( 20 );
grid->setSpacing( 5 ); grid->setSpacing( 5 );
@ -147,7 +147,7 @@ PostFilter::PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t*
} }
descr = new TQLabel(TQString::fromUtf8(m_xinePostParameter->description ), m_groupBox); descr = new TQLabel(TQString::fromUtf8(m_xinePostParameter->description ), m_groupBox);
descr->tqsetAlignment(TQLabel::WordBreak | TQLabel::AlignVCenter); descr->setAlignment(TQLabel::WordBreak | TQLabel::AlignVCenter);
grid->addWidget(descr, row, 1); grid->addWidget(descr, row, 1);
row++; row++;
m_xinePostParameter++; m_xinePostParameter++;
@ -157,14 +157,14 @@ PostFilter::PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t*
grid->addMultiCellWidget(sep, row, row, 0, 1); grid->addMultiCellWidget(sep, row, row, 0, 1);
row++; row++;
KPushButton* deleteButton = new KPushButton(i18n("Delete Filter"), m_groupBox); KPushButton* deleteButton = new KPushButton(i18n("Delete Filter"), m_groupBox);
deleteButton->tqsetSizePolicy (TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed)); deleteButton->setSizePolicy (TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed));
connect(deleteButton, TQT_SIGNAL(clicked()), this, TQT_SLOT( slotDeletePressed())); connect(deleteButton, TQT_SIGNAL(clicked()), this, TQT_SLOT( slotDeletePressed()));
grid->addWidget(deleteButton, row, 0); grid->addWidget(deleteButton, row, 0);
if(inputAPI) if(inputAPI)
{ {
KPushButton* helpButton = new KPushButton(i18n("Help"), m_groupBox); KPushButton* helpButton = new KPushButton(i18n("Help"), m_groupBox);
helpButton->tqsetSizePolicy(TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed)); helpButton->setSizePolicy(TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed));
connect(helpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotHelpPressed())); connect(helpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotHelpPressed()));
grid->addWidget(helpButton, row, 1); grid->addWidget(helpButton, row, 1);
} }

@ -48,7 +48,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
videoGrid->setMargin(10); videoGrid->setMargin(10);
TQLabel* hueText = new TQLabel(i18n("Hue"), videoGroup); TQLabel* hueText = new TQLabel(i18n("Hue"), videoGroup);
hueText->tqsetAlignment(AlignRight); hueText->setAlignment(AlignRight);
m_hueSlider = new TQSlider(Qt::Horizontal, videoGroup); m_hueSlider = new TQSlider(Qt::Horizontal, videoGroup);
m_hueSlider->setRange(0, 65535); m_hueSlider->setRange(0, 65535);
m_hueSlider->setSteps(10, 1000); m_hueSlider->setSteps(10, 1000);
@ -58,7 +58,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
videoGrid->addWidget(m_hueSlider, 0, 1); videoGrid->addWidget(m_hueSlider, 0, 1);
TQLabel* satText = new TQLabel(i18n("Saturation"), videoGroup); TQLabel* satText = new TQLabel(i18n("Saturation"), videoGroup);
satText->tqsetAlignment(AlignRight); satText->setAlignment(AlignRight);
m_satSlider = new TQSlider(Qt::Horizontal, videoGroup); m_satSlider = new TQSlider(Qt::Horizontal, videoGroup);
m_satSlider->setRange(0, 65535); m_satSlider->setRange(0, 65535);
m_satSlider->setSteps(10, 1000); m_satSlider->setSteps(10, 1000);
@ -68,7 +68,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
videoGrid->addWidget(m_satSlider, 1, 1); videoGrid->addWidget(m_satSlider, 1, 1);
TQLabel* contrastText = new TQLabel(i18n("Contrast"), videoGroup); TQLabel* contrastText = new TQLabel(i18n("Contrast"), videoGroup);
contrastText->tqsetAlignment(AlignRight); contrastText->setAlignment(AlignRight);
m_contrastSlider = new TQSlider(Qt::Horizontal, videoGroup); m_contrastSlider = new TQSlider(Qt::Horizontal, videoGroup);
m_contrastSlider->setRange(0, 65535); m_contrastSlider->setRange(0, 65535);
m_contrastSlider->setSteps(10, 1000); m_contrastSlider->setSteps(10, 1000);
@ -78,7 +78,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
videoGrid->addWidget(m_contrastSlider, 2, 1); videoGrid->addWidget(m_contrastSlider, 2, 1);
TQLabel* brightText = new TQLabel(i18n("Brightness"), videoGroup); TQLabel* brightText = new TQLabel(i18n("Brightness"), videoGroup);
brightText->tqsetAlignment(AlignRight); brightText->setAlignment(AlignRight);
m_brightSlider = new TQSlider(Qt::Horizontal, videoGroup); m_brightSlider = new TQSlider(Qt::Horizontal, videoGroup);
m_brightSlider->setRange(0, 65535); m_brightSlider->setRange(0, 65535);
m_brightSlider->setSteps(10, 1000); m_brightSlider->setSteps(10, 1000);
@ -88,7 +88,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
videoGrid->addWidget(m_brightSlider, 3, 1); videoGrid->addWidget(m_brightSlider, 3, 1);
TQLabel* avOffsetText = new TQLabel(i18n("Audio/Video Offset"), videoGroup); TQLabel* avOffsetText = new TQLabel(i18n("Audio/Video Offset"), videoGroup);
avOffsetText->tqsetAlignment(AlignRight); avOffsetText->setAlignment(AlignRight);
m_avOffsetSlider = new TQSlider(Qt::Horizontal, videoGroup); m_avOffsetSlider = new TQSlider(Qt::Horizontal, videoGroup);
m_avOffsetSlider->setRange(-90000, 90000); // +/- 1 sec m_avOffsetSlider->setRange(-90000, 90000); // +/- 1 sec
m_avOffsetSlider->setSteps(100, 10000); m_avOffsetSlider->setSteps(100, 10000);
@ -98,7 +98,7 @@ VideoSettings::VideoSettings(int hue, int sat, int contrast, int bright,
videoGrid->addWidget(m_avOffsetSlider, 4, 1); videoGrid->addWidget(m_avOffsetSlider, 4, 1);
TQLabel* spuOffsetText = new TQLabel(i18n("Subtitle Offset"), videoGroup); TQLabel* spuOffsetText = new TQLabel(i18n("Subtitle Offset"), videoGroup);
spuOffsetText->tqsetAlignment(AlignRight); spuOffsetText->setAlignment(AlignRight);
m_spuOffsetSlider = new TQSlider(Qt::Horizontal, videoGroup); m_spuOffsetSlider = new TQSlider(Qt::Horizontal, videoGroup);
m_spuOffsetSlider->setRange(-90000, 90000); // +/- 1 sec m_spuOffsetSlider->setRange(-90000, 90000); // +/- 1 sec
m_spuOffsetSlider->setSteps(100, 10000); m_spuOffsetSlider->setSteps(100, 10000);

@ -1058,7 +1058,7 @@ void XinePart::slotMessage(const TQString& message)
KMessageBox::information(0, msg, i18n("xine Message")); KMessageBox::information(0, msg, i18n("xine Message"));
} }
void XinePart::slottqStatus(const TQString& status) void XinePart::slotStatus(const TQString& status)
{ {
emit setStatusBarText(status); emit setStatusBarText(status);
if ((status != i18n("Ready")) && (status != i18n("Playing"))) if ((status != i18n("Ready")) && (status != i18n("Playing")))
@ -1442,7 +1442,7 @@ void XinePart::initActions()
(m_playTime, i18n("Short click: Toggle Timer Forward/Backward\nLong click: Toggle Timer OSD")); (m_playTime, i18n("Short click: Toggle Timer Forward/Backward\nLong click: Toggle Timer OSD"));
TQFontMetrics met(KGlobalSettings::generalFont()); TQFontMetrics met(KGlobalSettings::generalFont());
m_playTime->setFixedWidth(met.width("-55:55:55") + 6); m_playTime->setFixedWidth(met.width("-55:55:55") + 6);
m_playTime->tqsetSizePolicy(TQSizePolicy (TQSizePolicy::Fixed, TQSizePolicy::Fixed)); m_playTime->setSizePolicy(TQSizePolicy (TQSizePolicy::Fixed, TQSizePolicy::Fixed));
m_playTime->setFocusPolicy(TQ_NoFocus); m_playTime->setFocusPolicy(TQ_NoFocus);
new KWidgetAction(m_playTime, i18n("Playtime"), 0, 0, 0, actionCollection(), "player_playtime"); new KWidgetAction(m_playTime, i18n("Playtime"), 0, 0, 0, actionCollection(), "player_playtime");
connect(m_playTime, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotButtonTimerPressed())); connect(m_playTime, TQT_SIGNAL(pressed()), TQT_TQOBJECT(this), TQT_SLOT(slotButtonTimerPressed()));
@ -1473,7 +1473,7 @@ void XinePart::initConnections()
this, TQT_SLOT(slotChannelInfo(const TQStringList&, const TQStringList&, int, int ))); this, TQT_SLOT(slotChannelInfo(const TQStringList&, const TQStringList&, int, int )));
connect(m_xine, TQT_SIGNAL(signalXinePlaying()), TQT_TQOBJECT(this), TQT_SLOT(slotTrackPlaying())); connect(m_xine, TQT_SIGNAL(signalXinePlaying()), TQT_TQOBJECT(this), TQT_SLOT(slotTrackPlaying()));
connect(m_xine, TQT_SIGNAL(signalNewPosition(int, const TQTime&)), TQT_TQOBJECT(this), TQT_SLOT(slotNewPosition(int, const TQTime&))); connect(m_xine, TQT_SIGNAL(signalNewPosition(int, const TQTime&)), TQT_TQOBJECT(this), TQT_SLOT(slotNewPosition(int, const TQTime&)));
connect(m_xine, TQT_SIGNAL(signalXinetqStatus(const TQString&)), TQT_TQOBJECT(this), TQT_SLOT(slottqStatus(const TQString&))); connect(m_xine, TQT_SIGNAL(signalXineStatus(const TQString&)), TQT_TQOBJECT(this), TQT_SLOT(slotStatus(const TQString&)));
connect(m_xine, TQT_SIGNAL(signalXineError(const TQString&)), TQT_TQOBJECT(this), TQT_SLOT(slotError(const TQString&))); connect(m_xine, TQT_SIGNAL(signalXineError(const TQString&)), TQT_TQOBJECT(this), TQT_SLOT(slotError(const TQString&)));
connect(m_xine, TQT_SIGNAL(signalXineMessage(const TQString&)), TQT_TQOBJECT(this), TQT_SLOT(slotMessage(const TQString&))); connect(m_xine, TQT_SIGNAL(signalXineMessage(const TQString&)), TQT_TQOBJECT(this), TQT_SLOT(slotMessage(const TQString&)));
connect(m_xine, TQT_SIGNAL(signalPlaybackFinished()), TQT_TQOBJECT(this), TQT_SLOT(slotPlaybackFinished())); connect(m_xine, TQT_SIGNAL(signalPlaybackFinished()), TQT_TQOBJECT(this), TQT_SLOT(slotPlaybackFinished()));

@ -169,7 +169,7 @@ private slots:
void slotConfigXine(); void slotConfigXine();
void slotError(const TQString&); void slotError(const TQString&);
void slotMessage(const TQString&); void slotMessage(const TQString&);
void slottqStatus(const TQString&); void slotStatus(const TQString&);
void slotNewTitle(); void slotNewTitle();
void slotNewLength(); void slotNewLength();
void slotNewFrameSize(); void slotNewFrameSize();
@ -206,7 +206,7 @@ private:
TQPoint m_oldPosition; TQPoint m_oldPosition;
TQTimer m_posCheckTimer; TQTimer m_posCheckTimer;
TQTimer m_osdTimerEnabler; /* Provide Long click on timer button */ TQTimer m_osdTimerEnabler; /* Provide Long click on timer button */
bool m_isOsdTimer; /* tqStatus of Osd Timer (on/off) */ bool m_isOsdTimer; /* Status of Osd Timer (on/off) */
int m_timerDirection; /* Counting Up or Down */ int m_timerDirection; /* Counting Up or Down */
int m_brightness, m_hue, m_contrast, m_saturation; int m_brightness, m_hue, m_contrast, m_saturation;

@ -132,7 +132,7 @@ XineConfigEntry::XineConfigEntry(TQWidget* parent, TQGridLayout* grid, int row,
m_keyName.remove( 0, m_keyName.find(".") + 1 ); m_keyName.remove( 0, m_keyName.find(".") + 1 );
TQLabel* description = new TQLabel(m_keyName + "\n" + TQString::fromLocal8Bit(entry->description), parent); TQLabel* description = new TQLabel(m_keyName + "\n" + TQString::fromLocal8Bit(entry->description), parent);
description->tqsetAlignment( TQLabel::WordBreak | TQLabel::AlignVCenter ); description->setAlignment( TQLabel::WordBreak | TQLabel::AlignVCenter );
grid->addWidget(description, row, 1); grid->addWidget(description, row, 1);
KSeparator* separator = new KSeparator(Qt::Horizontal, parent); KSeparator* separator = new KSeparator(Qt::Horizontal, parent);

@ -141,7 +141,7 @@ KaffeinePreferences::KaffeinePreferences() : KDialogBase(IconList,i18n("Kaffeine
gb = new TQGroupBox( "", misc ); gb = new TQGroupBox( "", misc );
grid = new TQGridLayout( gb, 1, 1, 20, 6 ); grid = new TQGridLayout( gb, 1, 1, 20, 6 );
KPushButton* clearRecent = new KPushButton( i18n("Clear"), gb); KPushButton* clearRecent = new KPushButton( i18n("Clear"), gb);
clearRecent->tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed)); clearRecent->setSizePolicy( TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed));
connect(clearRecent, TQT_SIGNAL(clicked()), this, TQT_SIGNAL(signalClearRecent())); connect(clearRecent, TQT_SIGNAL(clicked()), this, TQT_SIGNAL(signalClearRecent()));
grid->addWidget(clearRecent, 0, 0); grid->addWidget(clearRecent, 0, 0);
TQLabel* clearLabel = new TQLabel(i18n("Clear recent files list"), gb); TQLabel* clearLabel = new TQLabel(i18n("Clear recent files list"), gb);

@ -66,7 +66,7 @@ SLabel::SLabel( TQWidget *parent ) : TQLabel( parent )
void SLabel::paintEvent( TQPaintEvent *pe ) void SLabel::paintEvent( TQPaintEvent *pe )
{ {
TQLabel::paintEvent( pe ); TQLabel::paintEvent( pe );
TQColorGroup cg = parentWidget()->tqcolorGroup(); TQColorGroup cg = parentWidget()->colorGroup();
TQColor base = cg.base(); TQColor base = cg.base();
TQColor selection = cg.highlight(); TQColor selection = cg.highlight();
int r = (base.red() + selection.red()) / 2; int r = (base.red() + selection.red()) / 2;
@ -92,7 +92,7 @@ StartWindow::StartWindow(TQWidget* parent, const char* name) : TQWidget(parent,
panel = new TQWidget( this ); panel = new TQWidget( this );
panel->setPaletteBackgroundColor(TQColor("White")); panel->setPaletteBackgroundColor(TQColor("White"));
panel->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::MinimumExpanding ) ); panel->setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::MinimumExpanding ) );
buttons.setAutoDelete( true ); buttons.setAutoDelete( true );
} }
@ -118,7 +118,7 @@ void StartWindow::registerTarget( const TQString& uiName, const TQString& pixNam
btn->setTextPosition( TQToolButton::Under ); btn->setTextPosition( TQToolButton::Under );
btn->setUsesTextLabel( true ); btn->setUsesTextLabel( true );
btn->setIconSet( KGlobal::iconLoader()->loadIconSet(pixName, KIcon::Panel) ); btn->setIconSet( KGlobal::iconLoader()->loadIconSet(pixName, KIcon::Panel) );
TQSize size = btn->tqsizeHint(); TQSize size = btn->sizeHint();
size.setHeight( size.height()+5 ); size.setHeight( size.height()+5 );
btn->resize( size ); btn->resize( size );
connect( btn, TQT_SIGNAL(executed(const TQString&)), this, TQT_SIGNAL(execTarget(const TQString&)) ); connect( btn, TQT_SIGNAL(executed(const TQString&)), this, TQT_SIGNAL(execTarget(const TQString&)) );

@ -72,7 +72,7 @@ SystemTray::SystemTray(TQWidget *parent, const char *name ) : KSystemTray(parent
m_osd = new TitleLabel; m_osd = new TitleLabel;
m_osd->setFrameStyle(TQFrame::Panel | TQFrame::Plain); m_osd->setFrameStyle(TQFrame::Panel | TQFrame::Plain);
m_osd->setLineWidth(1); m_osd->setLineWidth(1);
m_osd->tqsetAlignment(SingleLine); m_osd->setAlignment(SingleLine);
connect(&m_hideTimer, TQT_SIGNAL(timeout()), TQT_TQOBJECT(this), TQT_SLOT(slotHideOSD())); connect(&m_hideTimer, TQT_SIGNAL(timeout()), TQT_TQOBJECT(this), TQT_SLOT(slotHideOSD()));
setPixmap(KGlobal::iconLoader()->loadIcon("kaffeine", KIcon::Panel, 22)); setPixmap(KGlobal::iconLoader()->loadIcon("kaffeine", KIcon::Panel, 22));

Loading…
Cancel
Save