Rename old tq methods that no longer need a unique name

pull/1/head
Timothy Pearson 13 years ago
parent 6df9eac4b9
commit 8d4453deaa

@ -37,7 +37,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -54,7 +54,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>40</height> <height>40</height>
@ -85,7 +85,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>40</height> <height>40</height>
@ -102,7 +102,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>
@ -129,7 +129,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>11</width> <width>11</width>
<height>20</height> <height>20</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>11</width> <width>11</width>
<height>20</height> <height>20</height>
@ -184,7 +184,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -236,7 +236,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>

@ -50,7 +50,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>5</height> <height>5</height>
@ -259,7 +259,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>

@ -135,13 +135,13 @@ void AlsaSoundConfiguration::slotCaptureCardSelected(const TQString &cardname)
delete m_groupMixerSubFrame; delete m_groupMixerSubFrame;
m_groupMixerSubFrame = new TQFrame(m_groupMixerScrollView->viewport()); m_groupMixerSubFrame = new TQFrame(m_groupMixerScrollView->viewport());
m_groupMixerSubFrame->tqsetSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Maximum); m_groupMixerSubFrame->setSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Maximum);
m_groupMixerScrollView->addChild(m_groupMixerSubFrame); m_groupMixerScrollView->addChild(m_groupMixerSubFrame);
int rows = 1; int rows = 1;
int cols = (all_list.count()+rows-1)/rows; int cols = (all_list.count()+rows-1)/rows;
m_groupMixerLayout = new TQGridLayout( m_groupMixerSubFrame, rows, cols, 0, 0 ); m_groupMixerLayout = new TQGridLayout( m_groupMixerSubFrame, rows, cols, 0, 0 );
m_groupMixerLayout->tqsetAlignment( TQt::AlignBottom ); m_groupMixerLayout->setAlignment( TQt::AlignBottom );
int idx = 0; int idx = 0;
for (TQValueListConstIterator<TQString> it = all_list.begin(); it != all_list.end(); ++it, ++idx) { for (TQValueListConstIterator<TQString> it = all_list.begin(); it != all_list.end(); ++it, ++idx) {

@ -183,7 +183,7 @@ void ErrorLog::hideEvent(TQHideEvent *e)
bool ErrorLog::logError (const TQString &s) bool ErrorLog::logError (const TQString &s)
{ {
m_teErrors->append("<i>" + TQDateTime::tqcurrentDateTime().toString(Qt::ISODate) + "</i> " + s + "\n"); m_teErrors->append("<i>" + TQDateTime::currentDateTime().toString(Qt::ISODate) + "</i> " + s + "\n");
if (init_done) { if (init_done) {
showPage(PAGE_ID_ERROR); showPage(PAGE_ID_ERROR);
show(); show();
@ -193,19 +193,19 @@ bool ErrorLog::logError (const TQString &s)
bool ErrorLog::logWarning(const TQString &s) bool ErrorLog::logWarning(const TQString &s)
{ {
m_teWarnings->append("<i>" + TQDateTime::tqcurrentDateTime().toString(Qt::ISODate) + "</i> " + s + "\n"); m_teWarnings->append("<i>" + TQDateTime::currentDateTime().toString(Qt::ISODate) + "</i> " + s + "\n");
return true; return true;
} }
bool ErrorLog::logInfo (const TQString &s) bool ErrorLog::logInfo (const TQString &s)
{ {
m_teInfos->append("<i>" + TQDateTime::tqcurrentDateTime().toString(Qt::ISODate) + "</i> " + s + "\n"); m_teInfos->append("<i>" + TQDateTime::currentDateTime().toString(Qt::ISODate) + "</i> " + s + "\n");
return true; return true;
} }
bool ErrorLog::logDebug (const TQString &s) bool ErrorLog::logDebug (const TQString &s)
{ {
m_teDebug->append("<i>" + TQDateTime::tqcurrentDateTime().toString(Qt::ISODate) + "</i> " + s + "\n"); m_teDebug->append("<i>" + TQDateTime::currentDateTime().toString(Qt::ISODate) + "</i> " + s + "\n");
return true; return true;
} }

@ -104,9 +104,9 @@ bool ButtonFlowLayout::hasHeightForWidth() const
return TRUE; return TRUE;
} }
TQSize ButtonFlowLayout::tqsizeHint() const TQSize ButtonFlowLayout::sizeHint() const
{ {
return tqminimumSize(); return minimumSize();
} }
TQSizePolicy::ExpandData ButtonFlowLayout::expanding() const TQSizePolicy::ExpandData ButtonFlowLayout::expanding() const
@ -154,8 +154,8 @@ int ButtonFlowLayout::doLayout( const TQRect &r, bool testonly )
it.toFirst(); it.toFirst();
while ( (o=it.current()) != 0 ) { while ( (o=it.current()) != 0 ) {
++it; ++it;
buttonWidth = TQMAX( buttonWidth, o->tqsizeHint().width() ); buttonWidth = TQMAX( buttonWidth, o->sizeHint().width() );
buttonHeight = TQMAX( buttonHeight, o->tqsizeHint().height() ); buttonHeight = TQMAX( buttonHeight, o->sizeHint().height() );
} }
// calculate the optimal width // calculate the optimal width
@ -217,19 +217,19 @@ int ButtonFlowLayout::doLayout( const TQRect &r, bool testonly )
} }
TQSize ButtonFlowLayout::tqminimumSize() const TQSize ButtonFlowLayout::minimumSize() const
{ {
return tqminimumSize(tqgeometry().size()); return minimumSize(tqgeometry().size());
} }
TQSize ButtonFlowLayout::tqminimumSize(const TQSize &r) const TQSize ButtonFlowLayout::minimumSize(const TQSize &r) const
{ {
TQSize s(0, 0); TQSize s(0, 0);
for (TQPtrListIterator<TQLayoutItem> it(list); it.current(); ++it) { for (TQPtrListIterator<TQLayoutItem> it(list); it.current(); ++it) {
TQLayoutItem *o = it.current(); TQLayoutItem *o = it.current();
s = s.expandedTo( o->tqsizeHint()); //tqminimumSize() ); s = s.expandedTo( o->sizeHint()); //minimumSize() );
} }
s.setHeight(heightForWidth(r.width())); s.setHeight(heightForWidth(r.width()));

@ -41,9 +41,9 @@ public:
void addItem( TQLayoutItem *item); void addItem( TQLayoutItem *item);
bool hasHeightForWidth() const; bool hasHeightForWidth() const;
int heightForWidth( int ) const; int heightForWidth( int ) const;
TQSize tqsizeHint() const; TQSize sizeHint() const;
TQSize tqminimumSize() const; TQSize minimumSize() const;
TQSize tqminimumSize(const TQSize &r) const; // tqminimumSize is dependent from width TQSize minimumSize(const TQSize &r) const; // minimumSize is dependent from width
TQLayoutIterator iterator(); TQLayoutIterator iterator();
TQSizePolicy::ExpandData expanding() const; TQSizePolicy::ExpandData expanding() const;

@ -303,7 +303,7 @@ void QuickBar::rebuildGUI()
else else
b->setText(m_showShortName ? rs.shortName() : rs.name()); b->setText(m_showShortName ? rs.shortName() : rs.name());
b->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Preferred)); b->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Preferred));
TQToolTip::add(b, rs.longName()); TQToolTip::add(b, rs.longName());
if (isVisible()) b->show(); if (isVisible()) b->show();
@ -367,7 +367,7 @@ void QuickBar::setGeometry (int x, int y, int w, int h)
{ {
if (m_layout) { if (m_layout) {
TQSize marginSize(m_layout->margin()*2, m_layout->margin()*2); TQSize marginSize(m_layout->margin()*2, m_layout->margin()*2);
setMinimumSize(m_layout->tqminimumSize(TQSize(w, h) - marginSize) + marginSize); setMinimumSize(m_layout->minimumSize(TQSize(w, h) - marginSize) + marginSize);
} }
TQWidget::setGeometry (x, y, w, h); TQWidget::setGeometry (x, y, w, h);
} }
@ -381,10 +381,10 @@ void QuickBar::setGeometry (const TQRect &r)
void QuickBar::resizeEvent (TQResizeEvent *e) void QuickBar::resizeEvent (TQResizeEvent *e)
{ {
// tqminimumSize might change because of the flow tqlayout // minimumSize might change because of the flow tqlayout
if (m_layout) { if (m_layout) {
TQSize marginSize(m_layout->margin()*2, m_layout->margin()*2); TQSize marginSize(m_layout->margin()*2, m_layout->margin()*2);
setMinimumSize(m_layout->tqminimumSize(e->size() - marginSize) + marginSize); setMinimumSize(m_layout->minimumSize(e->size() - marginSize) + marginSize);
} }
TQWidget::resizeEvent (e); TQWidget::resizeEvent (e);

@ -48,16 +48,16 @@ DisplayConfiguration::DisplayConfiguration(TQWidget *parent)
TQLabel *l2 = new TQLabel(i18n("Inactive Text"), bg); TQLabel *l2 = new TQLabel(i18n("Inactive Text"), bg);
TQLabel *l3 = new TQLabel(i18n("Background Color"), bg); TQLabel *l3 = new TQLabel(i18n("Background Color"), bg);
l1->tqsetAlignment(TQLabel::AlignCenter); l1->setAlignment(TQLabel::AlignCenter);
l2->tqsetAlignment(TQLabel::AlignCenter); l2->setAlignment(TQLabel::AlignCenter);
l3->tqsetAlignment(TQLabel::AlignCenter); l3->setAlignment(TQLabel::AlignCenter);
l1->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed)); l1->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
l2->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed)); l2->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
l3->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed)); l3->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
m_btnActive ->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding)); m_btnActive ->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
m_btnInactive->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding)); m_btnInactive->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
m_btnBkgnd ->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding)); m_btnBkgnd ->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
m_btnActive ->setMinimumSize(TQSize(40, 40)); m_btnActive ->setMinimumSize(TQSize(40, 40));
m_btnInactive->setMinimumSize(TQSize(40, 40)); m_btnInactive->setMinimumSize(TQSize(40, 40));
@ -72,7 +72,7 @@ DisplayConfiguration::DisplayConfiguration(TQWidget *parent)
m_fontChooser = new KFontChooser(this, NULL, false, TQStringList(), true, 4); m_fontChooser = new KFontChooser(this, NULL, false, TQStringList(), true, 4);
m_fontChooser->setFont(queryDisplayFont()); m_fontChooser->setFont(queryDisplayFont());
m_fontChooser->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding)); m_fontChooser->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
TQVBoxLayout *l = new TQVBoxLayout(this, 10); TQVBoxLayout *l = new TQVBoxLayout(this, 10);
l->addWidget(bg); l->addWidget(bg);

@ -162,10 +162,10 @@ RadioView::RadioView(const TQString &name)
btnSnooze->setIconSet(SmallIconSet("kradio_zzz")); btnSnooze->setIconSet(SmallIconSet("kradio_zzz"));
btnPlugins->setIconSet(SmallIconSet("kradio_plugins")); btnPlugins->setIconSet(SmallIconSet("kradio_plugins"));
widgetStacks[clsRadioSound] ->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred)); widgetStacks[clsRadioSound] ->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred));
widgetStacks[clsRadioDisplay]->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Preferred)); widgetStacks[clsRadioDisplay]->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Preferred));
widgetStacks[clsRadioSeek] ->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed)); widgetStacks[clsRadioSeek] ->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed));
comboStations ->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed)); comboStations ->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed));
comboStations->setMinimumHeight(28); comboStations->setMinimumHeight(28);

@ -185,11 +185,11 @@ bool RadioViewFrequencyRadio::setDisplayColors(const TQColor &activeText,
if (parentWidget() && parentWidget()->backgroundPixmap() ){ if (parentWidget() && parentWidget()->backgroundPixmap() ){
KPixmapIO io; KPixmapIO io;
TQImage i = io.convertToImage(*parentWidget()->backgroundPixmap()); TQImage i = io.convertToImage(*parentWidget()->backgroundPixmap());
KImageEffect::fade(i, 0.5, tqcolorGroup().color(TQColorGroup::Dark)); KImageEffect::fade(i, 0.5, colorGroup().color(TQColorGroup::Dark));
setPaletteBackgroundPixmap(io.convertToPixmap(i)); setPaletteBackgroundPixmap(io.convertToPixmap(i));
setBackgroundOrigin(WindowOrigin); setBackgroundOrigin(WindowOrigin);
} else { } else {
setBackgroundColor(tqcolorGroup().color(TQColorGroup::Button)); setBackgroundColor(colorGroup().color(TQColorGroup::Button));
} }
if (change) if (change)
@ -320,10 +320,10 @@ void RadioViewFrequencyRadio::drawContents(TQPainter *paint)
xx_sg = r.x() + margin, xx_sg = r.x() + margin,
xy_sg = r.y() + margin; xy_sg = r.y() + margin;
TQPen activePen (tqcolorGroup().color(TQColorGroup::Text), penw); TQPen activePen (colorGroup().color(TQColorGroup::Text), penw);
TQPen inactivePen (tqcolorGroup().color(TQColorGroup::Mid), penw); TQPen inactivePen (colorGroup().color(TQColorGroup::Mid), penw);
TQBrush activeBrush = tqcolorGroup().brush(TQColorGroup::Text); TQBrush activeBrush = colorGroup().brush(TQColorGroup::Text);
TQBrush inactiveBrush = tqcolorGroup().brush(TQColorGroup::Mid); TQBrush inactiveBrush = colorGroup().brush(TQColorGroup::Mid);
// draw stereo symbol // draw stereo symbol
paint->setPen( (m_stereo && m_power) ? activePen : inactivePen); paint->setPen( (m_stereo && m_power) ? activePen : inactivePen);

@ -122,7 +122,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>10</height> <height>10</height>
@ -358,7 +358,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -395,7 +395,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -415,7 +415,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>10</width> <width>10</width>
<height>5</height> <height>5</height>
@ -434,7 +434,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>10</height> <height>10</height>
@ -481,7 +481,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>20</height> <height>20</height>
@ -541,7 +541,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>20</height> <height>20</height>
@ -683,7 +683,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>

@ -484,7 +484,7 @@ void RadioConfiguration::slotStorePresets()
void RadioConfiguration::slotLastChangeNow() void RadioConfiguration::slotLastChangeNow()
{ {
slotSetDirty(); slotSetDirty();
editLastChange->setDateTime(TQDateTime::tqcurrentDateTime()); editLastChange->setDateTime(TQDateTime::currentDateTime());
} }

@ -126,7 +126,7 @@ bool RecordingEncodingMP3::openOutput(const TQString &output)
if (!m_error) { if (!m_error) {
id3tag_init(m_LAMEFlags); id3tag_init(m_LAMEFlags);
id3tag_add_v2(m_LAMEFlags); id3tag_add_v2(m_LAMEFlags);
TQString title = m_RadioStation->name() + TQString().sprintf(" - %s", (TQDateTime::tqcurrentDateTime().toString(Qt::ISODate)).ascii()); TQString title = m_RadioStation->name() + TQString().sprintf(" - %s", (TQDateTime::currentDateTime().toString(Qt::ISODate)).ascii());
TQString comment = i18n("Recorded by KRadio"); TQString comment = i18n("Recorded by KRadio");
size_t l = title.length() + comment.length() + 10; size_t l = title.length() + comment.length() + 10;
m_ID3Tags = new char[l]; m_ID3Tags = new char[l];

@ -176,7 +176,7 @@ bool RecordingEncodingOgg::openOutput(const TQString &output)
vorbis_comment_init (&vc); vorbis_comment_init (&vc);
vorbis_comment_add_tag_new(&vc, "creator", "KRadio" VERSION); vorbis_comment_add_tag_new(&vc, "creator", "KRadio" VERSION);
vorbis_comment_add_tag_new(&vc, "title", m_RadioStation->longName().utf8()); vorbis_comment_add_tag_new(&vc, "title", m_RadioStation->longName().utf8());
vorbis_comment_add_tag_new(&vc, "date", TQDateTime::tqcurrentDateTime().toString(Qt::ISODate)); vorbis_comment_add_tag_new(&vc, "date", TQDateTime::currentDateTime().toString(Qt::ISODate));
vorbis_analysis_headerout(&m_VorbisDSP, &vc, vorbis_analysis_headerout(&m_VorbisDSP, &vc,
&header_main, &header_comments, &header_codebooks); &header_main, &header_comments, &header_codebooks);

@ -66,7 +66,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>141</width> <width>141</width>
<height>20</height> <height>20</height>
@ -107,7 +107,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>141</width> <width>141</width>
<height>20</height> <height>20</height>
@ -222,7 +222,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>5</height> <height>5</height>
@ -263,7 +263,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>225</width> <width>225</width>
<height>20</height> <height>20</height>
@ -321,7 +321,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>225</width> <width>225</width>
<height>20</height> <height>20</height>
@ -454,7 +454,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>225</width> <width>225</width>
<height>20</height> <height>20</height>
@ -473,7 +473,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>5</height> <height>5</height>
@ -563,7 +563,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>
@ -623,7 +623,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>380</width> <width>380</width>
<height>20</height> <height>20</height>
@ -688,7 +688,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>

@ -50,7 +50,7 @@ RecordingDataMonitor::RecordingDataMonitor(TQWidget *parent, const char *name)
setColors(TQColor(20, 244, 20), setColors(TQColor(20, 244, 20),
TQColor(10, 117, 10)); TQColor(10, 117, 10));
tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding)); setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
} }
@ -107,10 +107,10 @@ void RecordingDataMonitor::internalDrawContents(TQPainter &painter, bool repaint
if (m_channels <= 0) return; if (m_channels <= 0) return;
TQRect r = contentsRect(); TQRect r = contentsRect();
TQPen activePen (tqcolorGroup().color(TQColorGroup::Text), 1); TQPen activePen (colorGroup().color(TQColorGroup::Text), 1);
TQPen inactivePen (tqcolorGroup().color(TQColorGroup::Mid), 1); TQPen inactivePen (colorGroup().color(TQColorGroup::Mid), 1);
TQBrush activeBrush = tqcolorGroup().brush(TQColorGroup::Text); TQBrush activeBrush = colorGroup().brush(TQColorGroup::Text);
TQBrush inactiveBrush = tqcolorGroup().brush(TQColorGroup::Mid); TQBrush inactiveBrush = colorGroup().brush(TQColorGroup::Mid);
TQBrush yellowBrush(TQColor(255,255,0)); TQBrush yellowBrush(TQColor(255,255,0));
TQBrush orangeBrush(TQColor(255,192,0)); TQBrush orangeBrush(TQColor(255,192,0));
TQBrush redBrush (TQColor(255,0, 0)); TQBrush redBrush (TQColor(255,0, 0));
@ -223,11 +223,11 @@ bool RecordingDataMonitor::setColors(const TQColor &activeText,
if (parentWidget() && parentWidget()->backgroundPixmap() ){ if (parentWidget() && parentWidget()->backgroundPixmap() ){
KPixmapIO io; KPixmapIO io;
TQImage i = io.convertToImage(*parentWidget()->backgroundPixmap()); TQImage i = io.convertToImage(*parentWidget()->backgroundPixmap());
KImageEffect::fade(i, 0.5, tqcolorGroup().color(TQColorGroup::Dark)); KImageEffect::fade(i, 0.5, colorGroup().color(TQColorGroup::Dark));
setPaletteBackgroundPixmap(io.convertToPixmap(i)); setPaletteBackgroundPixmap(io.convertToPixmap(i));
setBackgroundOrigin(WindowOrigin); setBackgroundOrigin(WindowOrigin);
} else { } else {
setBackgroundColor(tqcolorGroup().color(TQColorGroup::Button)); setBackgroundColor(colorGroup().color(TQColorGroup::Button));
} }
return true; return true;

@ -43,7 +43,7 @@ RecordingMonitor::RecordingMonitor(const TQString &name)
l0->addWidget( new TQLabel(i18n("SoundStream"), this), 0, 0); l0->addWidget( new TQLabel(i18n("SoundStream"), this), 0, 0);
l0->addWidget(m_comboSoundStreamSelector = new KComboBox( this), 0, 1); l0->addWidget(m_comboSoundStreamSelector = new KComboBox( this), 0, 1);
l0->addWidget( new TQLabel(i18n("Status"), this), 1, 0); l0->addWidget( new TQLabel(i18n("Status"), this), 1, 0);
l0->addWidget(m_labeltqStatus = new TQLabel(i18n("<undefined>"), this), 1, 1); l0->addWidget(m_labelStatus = new TQLabel(i18n("<undefined>"), this), 1, 1);
l0->addWidget( new TQLabel(i18n("Recording File"), this), 2, 0); l0->addWidget( new TQLabel(i18n("Recording File"), this), 2, 0);
l0->addWidget(m_labelFileName = new TQLabel(i18n("<undefined>"), this), 2, 1); l0->addWidget(m_labelFileName = new TQLabel(i18n("<undefined>"), this), 2, 1);
l0->addWidget( new TQLabel(i18n("File Size"), this), 3, 0); l0->addWidget( new TQLabel(i18n("File Size"), this), 3, 0);
@ -369,7 +369,7 @@ void RecordingMonitor::slotStreamSelected(int idx)
m_labelTime ->setEnabled(true); m_labelTime ->setEnabled(true);
m_labelRate ->setEnabled(true); m_labelRate ->setEnabled(true);
m_labelFileName ->setEnabled(true); m_labelFileName ->setEnabled(true);
m_labeltqStatus ->setEnabled(true); m_labelStatus ->setEnabled(true);
} else { } else {
m_dataMonitor ->setEnabled(false); m_dataMonitor ->setEnabled(false);
m_labelSize ->setEnabled(false); m_labelSize ->setEnabled(false);
@ -377,7 +377,7 @@ void RecordingMonitor::slotStreamSelected(int idx)
m_labelTime ->setEnabled(false); m_labelTime ->setEnabled(false);
m_labelRate ->setEnabled(false); m_labelRate ->setEnabled(false);
m_labelFileName ->setEnabled(false); m_labelFileName ->setEnabled(false);
m_labeltqStatus ->setEnabled(false); m_labelStatus ->setEnabled(false);
} }
m_currentStream = id; m_currentStream = id;
m_recording = false; m_recording = false;

@ -105,7 +105,7 @@ protected:
TQLabel *m_labelTime; TQLabel *m_labelTime;
TQLabel *m_labelRate; TQLabel *m_labelRate;
TQLabel *m_labelFileName; TQLabel *m_labelFileName;
TQLabel *m_labeltqStatus; TQLabel *m_labelStatus;
TQPushButton *m_btnStartStop; TQPushButton *m_btnStartStop;
KComboBox *m_comboSoundStreamSelector; KComboBox *m_comboSoundStreamSelector;

@ -529,7 +529,7 @@ bool Recording::startEncoder(SoundStreamID ssid, const RecordingConfig &cfg)
TQString station = rs ? rs->name() + "-" : ""; TQString station = rs ? rs->name() + "-" : "";
station.replace(TQRegExp("[/*?]"), "_"); station.replace(TQRegExp("[/*?]"), "_");
TQDate date = TQDate::tqcurrentDate(); TQDate date = TQDate::currentDate();
TQTime time = TQTime::currentTime(); TQTime time = TQTime::currentTime();
TQString sdate; TQString sdate;

@ -142,13 +142,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
@ -173,13 +173,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
@ -202,7 +202,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>10</width> <width>10</width>
<height>10</height> <height>10</height>
@ -221,13 +221,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
@ -252,13 +252,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
@ -293,13 +293,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
@ -324,13 +324,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
@ -353,7 +353,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>10</width> <width>10</width>
<height>10</height> <height>10</height>
@ -372,13 +372,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
@ -403,13 +403,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>30</height> <height>30</height>
@ -658,7 +658,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>140</width> <width>140</width>
<height>20</height> <height>20</height>
@ -675,7 +675,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>140</width> <width>140</width>
<height>20</height> <height>20</height>
@ -692,7 +692,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>140</width> <width>140</width>
<height>20</height> <height>20</height>
@ -709,7 +709,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>140</width> <width>140</width>
<height>20</height> <height>20</height>
@ -726,7 +726,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>140</width> <width>140</width>
<height>20</height> <height>20</height>

@ -62,7 +62,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>
@ -273,7 +273,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>100</height> <height>100</height>
@ -358,7 +358,7 @@
<property name="name"> <property name="name">
<cstring>pixmapAlarmStation</cstring> <cstring>pixmapAlarmStation</cstring>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -378,7 +378,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>

@ -371,7 +371,7 @@ void TimeControlConfiguration::slotAlarmSelectChanged(int idx)
void TimeControlConfiguration::slotNewAlarm() void TimeControlConfiguration::slotNewAlarm()
{ {
TQDateTime dt(TQDateTime::tqcurrentDateTime()); TQDateTime dt(TQDateTime::currentDateTime());
Alarm a(dt, false, false); Alarm a(dt, false, false);
alarms.push_back(a); alarms.push_back(a);
listAlarms->insertItem(a.alarmTime().toString()); listAlarms->insertItem(a.alarmTime().toString());

@ -102,7 +102,7 @@ bool TimeControl::setCountdownSeconds(int n)
bool TimeControl::startCountdown() bool TimeControl::startCountdown()
{ {
m_countdownEnd = TQDateTime::tqcurrentDateTime().addSecs(m_countdownSeconds); m_countdownEnd = TQDateTime::currentDateTime().addSecs(m_countdownSeconds);
m_countdownTimer.start(m_countdownSeconds * 1000, true); m_countdownTimer.start(m_countdownSeconds * 1000, true);
notifyCountdownStarted(getCountdownEnd()); notifyCountdownStarted(getCountdownEnd());
@ -134,7 +134,7 @@ TQDateTime TimeControl::getNextAlarmTime() const
const Alarm *TimeControl::getNextAlarm () const const Alarm *TimeControl::getNextAlarm () const
{ {
TQDateTime now = TQDateTime::tqcurrentDateTime(), TQDateTime now = TQDateTime::currentDateTime(),
next; next;
const Alarm *retval = NULL; const Alarm *retval = NULL;
@ -180,7 +180,7 @@ void TimeControl::slotQTimerAlarmTimeout()
notifyAlarm(*m_waitingFor); notifyAlarm(*m_waitingFor);
} }
TQDateTime now = TQDateTime::tqcurrentDateTime(); TQDateTime now = TQDateTime::currentDateTime();
Alarm const *n = getNextAlarm(); Alarm const *n = getNextAlarm();
TQDateTime na = getNextAlarmTime(); TQDateTime na = getNextAlarmTime();

@ -40,7 +40,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>30</width> <width>30</width>
<height>21</height> <height>21</height>
@ -57,7 +57,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>104</width> <width>104</width>
<height>21</height> <height>21</height>
@ -133,7 +133,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>26</width> <width>26</width>
<height>26</height> <height>26</height>
@ -166,7 +166,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>30</width> <width>30</width>
<height>21</height> <height>21</height>
@ -183,7 +183,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>30</width> <width>30</width>
<height>21</height> <height>21</height>
@ -202,7 +202,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>61</height> <height>61</height>

@ -53,7 +53,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>21</height> <height>21</height>
@ -86,7 +86,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>21</height> <height>21</height>
@ -103,7 +103,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>21</height> <height>21</height>
@ -120,7 +120,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>21</height> <height>21</height>
@ -137,7 +137,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>21</height> <height>21</height>
@ -154,7 +154,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>152</width> <width>152</width>
<height>21</height> <height>21</height>
@ -292,7 +292,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>5</width> <width>5</width>
<height>5</height> <height>5</height>
@ -549,7 +549,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>5</height> <height>5</height>
@ -615,7 +615,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>
@ -643,7 +643,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -705,7 +705,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>
@ -733,7 +733,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -795,7 +795,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>
@ -823,7 +823,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -874,7 +874,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>33</height> <height>33</height>
@ -911,7 +911,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>33</height> <height>33</height>

@ -45,8 +45,8 @@ class KRadioAboutTabWidget : public TQTabWidget
{ {
public: public:
KRadioAboutTabWidget( TQWidget* parent ) : TQTabWidget( parent ) {} KRadioAboutTabWidget( TQWidget* parent ) : TQTabWidget( parent ) {}
TQSize tqsizeHint() const { TQSize sizeHint() const {
return TQTabWidget::tqsizeHint().expandedTo( tabBar()->tqsizeHint() + TQSize(4,4) ); return TQTabWidget::sizeHint().expandedTo( tabBar()->sizeHint() + TQSize(4,4) );
} }
}; };
@ -75,7 +75,7 @@ KRadioAboutWidget::KRadioAboutWidget(const KAboutData &aboutData, int layoutType
if( layoutType & AbtTitle ) if( layoutType & AbtTitle )
{ {
mTitleLabel = new TQLabel( this, "title" ); mTitleLabel = new TQLabel( this, "title" );
mTitleLabel->tqsetAlignment(AlignCenter); mTitleLabel->setAlignment(AlignCenter);
mTopLayout->addWidget( mTitleLabel ); mTopLayout->addWidget( mTitleLabel );
mTopLayout->addSpacing( KDialog::spacingHint() ); mTopLayout->addSpacing( KDialog::spacingHint() );
} }
@ -190,9 +190,9 @@ void KRadioAboutWidget::show( void )
TQWidget::show(); TQWidget::show();
} }
TQSize KRadioAboutWidget::tqsizeHint( void ) const TQSize KRadioAboutWidget::sizeHint( void ) const
{ {
return tqminimumSize().expandedTo( TQSize( TQWidget::tqsizeHint().width(), 0 ) ); return minimumSize().expandedTo( TQSize( TQWidget::sizeHint().width(), 0 ) );
} }
void KRadioAboutWidget::fontChange( const TQFont &/*oldFont*/ ) void KRadioAboutWidget::fontChange( const TQFont &/*oldFont*/ )
@ -449,10 +449,10 @@ void KRadioAboutWidget::setProduct( const TQString &appName,
mIconLabel->setPixmap( kapp->icon() ); mIconLabel->setPixmap( kapp->icon() );
TQString msg1 = i18n("%1 %2 (Using KDE %3)").tqarg(appName). TQString msg1 = i18n("%1 %2 (Using KDE %3)").tqarg(appName).
arg(TQString::tqfromLatin1(KRADIO_VERSION)). arg(TQString::fromLatin1(KRADIO_VERSION)).
arg(TQString::tqfromLatin1(TDE_VERSION_STRING)); arg(TQString::fromLatin1(TDE_VERSION_STRING));
TQString msg2 = !year.isEmpty() ? i18n("%1 %2, %3").tqarg('©').tqarg(year). TQString msg2 = !year.isEmpty() ? i18n("%1 %2, %3").tqarg('©').tqarg(year).
arg(author) : TQString::tqfromLatin1(""); arg(author) : TQString::fromLatin1("");
mVersionLabel->setText( msg1 ); mVersionLabel->setText( msg1 );
mAuthorLabel->setText( msg2 ); mAuthorLabel->setText( msg2 );
@ -563,7 +563,7 @@ void KRadioAboutWidget::setAboutData(const KAboutData &_aboutData)
TQLabel *label = new TQLabel(KAboutData::aboutTranslationTeam(), TQLabel *label = new TQLabel(KAboutData::aboutTranslationTeam(),
translatorPage); translatorPage);
label->adjustSize(); label->adjustSize();
label->setMinimumSize(label->tqsizeHint()); label->setMinimumSize(label->sizeHint());
translatorPage->addWidget(label); translatorPage->addWidget(label);
} }

@ -64,7 +64,7 @@ Alarm::~Alarm()
TQDateTime Alarm::nextAlarm(bool ignoreEnable) const TQDateTime Alarm::nextAlarm(bool ignoreEnable) const
{ {
TQDateTime now = TQDateTime::tqcurrentDateTime(), TQDateTime now = TQDateTime::currentDateTime(),
alarm = m_time; alarm = m_time;
if (m_daily) { if (m_daily) {
alarm.setDate (now.date()); alarm.setDate (now.date());

@ -41,7 +41,7 @@ IErrorLog::~IErrorLog()
int IErrorLogClient::sendLogError(const TQString &s) const int IErrorLogClient::sendLogError(const TQString &s) const
{ {
kdDebug() << TQString(i18n("%1 Error: %2\n")) kdDebug() << TQString(i18n("%1 Error: %2\n"))
.tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate)) .tqarg(TQDateTime::currentDateTime().toString(Qt::ISODate))
.tqarg(s); .tqarg(s);
IF_SEND_MESSAGE(logError(s)); IF_SEND_MESSAGE(logError(s));
} }
@ -50,7 +50,7 @@ int IErrorLogClient::sendLogError(const TQString &s) const
int IErrorLogClient::sendLogWarning(const TQString &s) const int IErrorLogClient::sendLogWarning(const TQString &s) const
{ {
kdDebug() << TQString(i18n("%1 Warning: %2\n")) kdDebug() << TQString(i18n("%1 Warning: %2\n"))
.tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate)) .tqarg(TQDateTime::currentDateTime().toString(Qt::ISODate))
.tqarg(s); .tqarg(s);
IF_SEND_MESSAGE(logWarning(s)); IF_SEND_MESSAGE(logWarning(s));
} }
@ -59,7 +59,7 @@ int IErrorLogClient::sendLogWarning(const TQString &s) const
int IErrorLogClient::sendLogInfo(const TQString &s) const int IErrorLogClient::sendLogInfo(const TQString &s) const
{ {
kdDebug() << TQString(i18n("%1 Information: %2\n")) kdDebug() << TQString(i18n("%1 Information: %2\n"))
.tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate)) .tqarg(TQDateTime::currentDateTime().toString(Qt::ISODate))
.tqarg(s); .tqarg(s);
IF_SEND_MESSAGE(logInfo(s)); IF_SEND_MESSAGE(logInfo(s));
} }
@ -68,7 +68,7 @@ int IErrorLogClient::sendLogInfo(const TQString &s) const
int IErrorLogClient::sendLogDebug(const TQString &s) const int IErrorLogClient::sendLogDebug(const TQString &s) const
{ {
kdDebug() << TQString(i18n("%1 Debug: %2\n")) kdDebug() << TQString(i18n("%1 Debug: %2\n"))
.tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate)) .tqarg(TQDateTime::currentDateTime().toString(Qt::ISODate))
.tqarg(s); .tqarg(s);
IF_SEND_MESSAGE(logDebug(s)); IF_SEND_MESSAGE(logDebug(s));
} }
@ -76,7 +76,7 @@ int IErrorLogClient::sendLogDebug(const TQString &s) const
void IErrorLogClient::staticLogError (const TQString &s) void IErrorLogClient::staticLogError (const TQString &s)
{ {
kdDebug() << TQString(i18n("%1 Error: %2\n")) kdDebug() << TQString(i18n("%1 Error: %2\n"))
.tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate)) .tqarg(TQDateTime::currentDateTime().toString(Qt::ISODate))
.tqarg(s); .tqarg(s);
if (staticLogger) if (staticLogger)
staticLogger->logError(s); staticLogger->logError(s);
@ -85,7 +85,7 @@ void IErrorLogClient::staticLogError (const TQString &s)
void IErrorLogClient::staticLogWarning(const TQString &s) void IErrorLogClient::staticLogWarning(const TQString &s)
{ {
kdDebug() << TQString(i18n("%1 Warning: %2\n")) kdDebug() << TQString(i18n("%1 Warning: %2\n"))
.tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate)) .tqarg(TQDateTime::currentDateTime().toString(Qt::ISODate))
.tqarg(s); .tqarg(s);
if (staticLogger) if (staticLogger)
staticLogger->logWarning(s); staticLogger->logWarning(s);
@ -94,7 +94,7 @@ void IErrorLogClient::staticLogWarning(const TQString &s)
void IErrorLogClient::staticLogInfo (const TQString &s) void IErrorLogClient::staticLogInfo (const TQString &s)
{ {
kdDebug() << TQString(i18n("%1 Information: %2\n")) kdDebug() << TQString(i18n("%1 Information: %2\n"))
.tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate)) .tqarg(TQDateTime::currentDateTime().toString(Qt::ISODate))
.tqarg(s); .tqarg(s);
if (staticLogger) if (staticLogger)
staticLogger->logInfo(s); staticLogger->logInfo(s);
@ -103,7 +103,7 @@ void IErrorLogClient::staticLogInfo (const TQString &s)
void IErrorLogClient::staticLogDebug (const TQString &s) void IErrorLogClient::staticLogDebug (const TQString &s)
{ {
kdDebug() << TQString(i18n("%1 Debug: %2\n")) kdDebug() << TQString(i18n("%1 Debug: %2\n"))
.tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate)) .tqarg(TQDateTime::currentDateTime().toString(Qt::ISODate))
.tqarg(s); .tqarg(s);
if (staticLogger) if (staticLogger)
staticLogger->logDebug(s); staticLogger->logDebug(s);

@ -94,7 +94,7 @@ class KRadioAboutWidget : public TQWidget
public: public:
KRadioAboutWidget(const KAboutData &abtData, int layoutType, TQWidget *parent = 0, char *name = 0); KRadioAboutWidget(const KAboutData &abtData, int layoutType, TQWidget *parent = 0, char *name = 0);
virtual void show( void ); virtual void show( void );
virtual TQSize tqsizeHint( void ) const; virtual TQSize sizeHint( void ) const;
void setAboutData(const KAboutData &abtData); void setAboutData(const KAboutData &abtData);

@ -266,7 +266,7 @@ KLibrary *KRadioApp::LoadLibrary (const TQString &library)
m_PluginInfos.insert(it.key(), PluginClassInfo (it.key(), *it, libinfo.init_func)); m_PluginInfos.insert(it.key(), PluginClassInfo (it.key(), *it, libinfo.init_func));
} }
} else { } else {
kdDebug() << TQDateTime::tqcurrentDateTime().toString(Qt::ISODate) kdDebug() << TQDateTime::currentDateTime().toString(Qt::ISODate)
<< " " << " "
<< i18n("Error: Loading Library %1 failed: %2") << i18n("Error: Loading Library %1 failed: %2")
.tqarg(library).tqarg(KLibLoader::self()->lastErrorMessage()) .tqarg(library).tqarg(KLibLoader::self()->lastErrorMessage())
@ -317,13 +317,13 @@ PluginBase *KRadioApp::CreatePlugin (PluginManager *manager, const TQString &cla
if (m_PluginInfos.contains(class_name)) { if (m_PluginInfos.contains(class_name)) {
retval = m_PluginInfos[class_name].CreateInstance(object_name); retval = m_PluginInfos[class_name].CreateInstance(object_name);
if (!retval) { if (!retval) {
kdDebug() << TQDateTime::tqcurrentDateTime().toString(Qt::ISODate) kdDebug() << TQDateTime::currentDateTime().toString(Qt::ISODate)
<< " " << " "
<< i18n("Error: Creation of instance \"%1\" of class %2 falied.").tqarg(object_name).tqarg(class_name) << i18n("Error: Creation of instance \"%1\" of class %2 falied.").tqarg(object_name).tqarg(class_name)
<< endl; << endl;
} }
} else { } else {
kdDebug() << TQDateTime::tqcurrentDateTime().toString(Qt::ISODate) kdDebug() << TQDateTime::currentDateTime().toString(Qt::ISODate)
<< " " << " "
<< i18n("Error: Cannot create instance \"%1\" of unknown class %2.").tqarg(object_name).tqarg(class_name) << i18n("Error: Cannot create instance \"%1\" of unknown class %2.").tqarg(object_name).tqarg(class_name)
<< endl; << endl;

@ -126,7 +126,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>87</height> <height>87</height>
@ -137,7 +137,7 @@
<property name="name"> <property name="name">
<cstring>btnRemovePluginInstance</cstring> <cstring>btnRemovePluginInstance</cstring>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>24</width> <width>24</width>
<height>24</height> <height>24</height>
@ -196,7 +196,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>55</height> <height>55</height>
@ -207,7 +207,7 @@
<property name="name"> <property name="name">
<cstring>btnNewPluginInstance</cstring> <cstring>btnNewPluginInstance</cstring>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>24</width> <width>24</width>
<height>24</height> <height>24</height>
@ -301,7 +301,7 @@
<property name="name"> <property name="name">
<cstring>btnRemoveLibrary</cstring> <cstring>btnRemoveLibrary</cstring>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>24</width> <width>24</width>
<height>24</height> <height>24</height>
@ -321,7 +321,7 @@
<property name="name"> <property name="name">
<cstring>btnAddLibrary</cstring> <cstring>btnAddLibrary</cstring>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>24</width> <width>24</width>
<height>24</height> <height>24</height>
@ -363,7 +363,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>61</height> <height>61</height>

@ -153,7 +153,7 @@ void PluginManager::insertPlugin(PluginBase *p)
if (p) { if (p) {
BlockProfiler profiler_cfg("PluginManager::insertPlugin - about/config"); BlockProfiler profiler_cfg("PluginManager::insertPlugin - about/config");
/*kdDebug() << TQDateTime::tqcurrentDateTime().toString(Qt::ISODate) /*kdDebug() << TQDateTime::currentDateTime().toString(Qt::ISODate)
<< " Debug: Adding Plugin: " << p->name() << "\n";*/ << " Debug: Adding Plugin: " << p->name() << "\n";*/
if (!m_configDialog) if (!m_configDialog)
@ -173,7 +173,7 @@ void PluginManager::insertPlugin(PluginBase *p)
// connect plugins with each other // connect plugins with each other
for (PluginIterator it(m_plugins); it.current(); ++it) { for (PluginIterator it(m_plugins); it.current(); ++it) {
if (it.current() != p) { if (it.current() != p) {
/*kdDebug() << TQDateTime::tqcurrentDateTime().toString(Qt::ISODate) /*kdDebug() << TQDateTime::currentDateTime().toString(Qt::ISODate)
<< " Debug: connecting with " << it.current()->name() << "\n";*/ << " Debug: connecting with " << it.current()->name() << "\n";*/
p->connectI(it.current()); p->connectI(it.current());
} }

@ -54,7 +54,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>100</width> <width>100</width>
<height>20</height> <height>20</height>
@ -79,7 +79,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>70</width> <width>70</width>
<height>20</height> <height>20</height>

@ -67,7 +67,7 @@ void StandardScanDialog::start()
if (!m_running) { if (!m_running) {
m_running = true; m_running = true;
m_stations.all().clear(); m_stations.all().clear();
m_startTime = TQDateTime::tqcurrentDateTime(); m_startTime = TQDateTime::currentDateTime();
m_oldPowerOn = queryIsPowerOn(); m_oldPowerOn = queryIsPowerOn();
m_oldStation = queryCurrentStation().copy(); m_oldStation = queryCurrentStation().copy();
sendToBeginning(); sendToBeginning();
@ -153,7 +153,7 @@ bool StandardScanDialog::noticeProgress (float f)
progressBar->setProgress((int)rint(f * 100)); progressBar->setProgress((int)rint(f * 100));
if (m_running) { if (m_running) {
int secs = m_startTime.secsTo(TQDateTime::tqcurrentDateTime()); int secs = m_startTime.secsTo(TQDateTime::currentDateTime());
int ms = (int)rint((1 - f) * (float) secs / f * 1000.0); int ms = (int)rint((1 - f) * (float) secs / f * 1000.0);
if (ms > 0 && ms < 86400000) // max one day if (ms > 0 && ms < 86400000) // max one day

@ -76,7 +76,7 @@ bool StationDragObject::decode (const TQMimeSource *e, TQStringList &stationIDs)
{ {
stationIDs.clear(); stationIDs.clear();
if (canDecode(e)) { if (canDecode(e)) {
const TQByteArray &tmp = e->tqencodedData(e->format(0)); const TQByteArray &tmp = e->encodedData(e->format(0));
TQString str = ""; TQString str = "";
for (unsigned int pos = 0; pos < tmp.size(); ++pos) { for (unsigned int pos = 0; pos < tmp.size(); ++pos) {
if (tmp[pos]) { if (tmp[pos]) {

@ -235,7 +235,7 @@ void StationList::merge(const StationList & other)
if (! m_metaData.comment.isEmpty()) if (! m_metaData.comment.isEmpty())
m_metaData.comment += "\n"; m_metaData.comment += "\n";
m_metaData.lastChange = TQDateTime::tqcurrentDateTime(); m_metaData.lastChange = TQDateTime::currentDateTime();
if (!metaData.maintainer.isEmpty()) if (!metaData.maintainer.isEmpty())
m_metaData.maintainer += (count() ? TQString(" / ") : TQString()) + metaData.maintainer; m_metaData.maintainer += (count() ? TQString(" / ") : TQString()) + metaData.maintainer;

@ -102,7 +102,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>
@ -129,7 +129,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>10</width> <width>10</width>
<height>20</height> <height>20</height>

@ -83,7 +83,7 @@ void ITimeControlClient::noticeConnectedI(cmplInterface *, bool /*pointer_valid*
noticeAlarmsChanged(queryAlarms()); noticeAlarmsChanged(queryAlarms());
noticeNextAlarmChanged(queryNextAlarm()); noticeNextAlarmChanged(queryNextAlarm());
TQDateTime end = queryCountdownEnd(); TQDateTime end = queryCountdownEnd();
if (end > TQDateTime::tqcurrentDateTime()) if (end > TQDateTime::currentDateTime())
noticeCountdownStarted(end); noticeCountdownStarted(end);
else else
noticeCountdownStopped(); noticeCountdownStopped();
@ -95,7 +95,7 @@ void ITimeControlClient::noticeDisconnectedI(cmplInterface *, bool /*pointer_val
noticeAlarmsChanged(queryAlarms()); noticeAlarmsChanged(queryAlarms());
noticeNextAlarmChanged(queryNextAlarm()); noticeNextAlarmChanged(queryNextAlarm());
TQDateTime end = queryCountdownEnd(); TQDateTime end = queryCountdownEnd();
if (end > TQDateTime::tqcurrentDateTime()) if (end > TQDateTime::currentDateTime())
noticeCountdownStarted(end); noticeCountdownStarted(end);
else else
noticeCountdownStopped(); noticeCountdownStopped();

Loading…
Cancel
Save