Rename old tq methods that no longer need a unique name

(cherry picked from commit 6687cd2515)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent ee22425fa7
commit b33c045301

@ -810,7 +810,7 @@ void KeyIcon::drawButton (TQPainter *p) {
int y = (height()-locked.height())/2; int y = (height()-locked.height())/2;
int o = 0; int o = 0;
if (isLocked || isLatched) { if (isLocked || isLatched) {
qDrawShadePanel (p, 0, 0, width(), height(), tqcolorGroup(), true, 1, NULL); qDrawShadePanel (p, 0, 0, width(), height(), colorGroup(), true, 1, NULL);
p->fillRect (1,1,width()-2,height()-2, KGlobalSettings::highlightColor()); p->fillRect (1,1,width()-2,height()-2, KGlobalSettings::highlightColor());
if (strcmp(modifierKeys[keyId].icon, "")) if (strcmp(modifierKeys[keyId].icon, ""))
p->drawPixmap (x+1,y+1, latched); p->drawPixmap (x+1,y+1, latched);
@ -818,7 +818,7 @@ void KeyIcon::drawButton (TQPainter *p) {
o = 1; o = 1;
} }
else { else {
qDrawShadePanel (p, 0, 0, width(), height(), tqcolorGroup(), false, 1, NULL); qDrawShadePanel (p, 0, 0, width(), height(), colorGroup(), false, 1, NULL);
if (strcmp(modifierKeys[keyId].icon, "")) if (strcmp(modifierKeys[keyId].icon, ""))
p->drawPixmap (x,y, unlatched); p->drawPixmap (x,y, unlatched);
black = KGlobalSettings::textColor(); black = KGlobalSettings::textColor();
@ -1068,12 +1068,12 @@ void TimeoutIcon::drawButton (TQPainter *p) {
StatusIcon::StatusIcon (const TQString &text, TQWidget *parent, const char *name) StatusIcon::StatusIcon (const TQString &text, TQWidget *parent, const char *name)
: TQPushButton (text, parent, name) { : TQPushButton (text, parent, name) {
tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Ignored)); setSizePolicy(TQSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Ignored));
} }
StatusIcon::~StatusIcon () { StatusIcon::~StatusIcon () {
} }
TQSize StatusIcon::tqminimumSizeHint () const { TQSize StatusIcon::minimumSizeHint () const {
return TQSize (0,0); return TQSize (0,0);
} }

@ -40,7 +40,7 @@ public:
StatusIcon (const TQString &text, TQWidget *parent, const char *name=0); StatusIcon (const TQString &text, TQWidget *parent, const char *name=0);
~StatusIcon (); ~StatusIcon ();
TQSize tqminimumSizeHint () const; TQSize minimumSizeHint () const;
}; };
typedef TQPtrList<StatusIcon> IconList; typedef TQPtrList<StatusIcon> IconList;

@ -247,7 +247,7 @@ void KmagApp::initActions()
void KmagApp::initView() void KmagApp::initView()
{ {
m_zoomView = new KMagZoomView( this, "ZoomView" ); m_zoomView = new KMagZoomView( this, "ZoomView" );
m_zoomView->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, m_zoomView->sizePolicy().hasHeightForWidth() ) ); m_zoomView->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, m_zoomView->sizePolicy().hasHeightForWidth() ) );
m_zoomView->setFrameShape( TQFrame::StyledPanel ); m_zoomView->setFrameShape( TQFrame::StyledPanel );
m_zoomView->setFrameShadow( TQFrame::Raised ); m_zoomView->setFrameShadow( TQFrame::Raised );
@ -550,7 +550,7 @@ void KmagApp::saveZoomPixmap()
bool toggled(false); bool toggled(false);
// stop refresh temporarily // stop refresh temporarily
if (m_zoomView->getRefreshtqStatus()) { if (m_zoomView->getRefreshStatus()) {
slotToggleRefresh(); slotToggleRefresh();
toggled = true; toggled = true;
} }
@ -597,7 +597,7 @@ void KmagApp::saveZoomPixmap()
void KmagApp::slotToggleRefresh() void KmagApp::slotToggleRefresh()
{ {
m_zoomView->toggleRefresh(); m_zoomView->toggleRefresh();
if(m_zoomView->getRefreshtqStatus()) { if(m_zoomView->getRefreshStatus()) {
refreshSwitch->setIcon("stop.png"); refreshSwitch->setIcon("stop.png");
refreshSwitch->setText(i18n("Stop")); refreshSwitch->setText(i18n("Stop"));
refreshSwitch->setToolTip(i18n("Click to stop window update")); refreshSwitch->setToolTip(i18n("Click to stop window update"));
@ -810,7 +810,7 @@ void KmagApp::slotFilePrint()
#endif #endif
// stop refresh temporarily // stop refresh temporarily
if (m_zoomView->getRefreshtqStatus()) { if (m_zoomView->getRefreshStatus()) {
slotToggleRefresh(); slotToggleRefresh();
toggled = true; toggled = true;
} }

@ -255,7 +255,7 @@ void KMagZoomView::drawContents ( TQPainter * p, int clipx, int clipy, int clipw
if (m_invert) { if (m_invert) {
TQImage zoomedImage; TQImage zoomedImage;
zoomedImage = zoomedPixmap.convertToImage(); zoomedImage = zoomedPixmap.convertToImage();
zoomedImage.tqinvertPixels (false); zoomedImage.invertPixels (false);
p->drawImage (TQPoint (clipx-contentsX(), clipy-contentsY()), zoomedImage, zoomedImage.rect(), p->drawImage (TQPoint (clipx-contentsX(), clipy-contentsY()), zoomedImage, zoomedImage.rect(),
TQt::ThresholdDither | TQt::ThresholdAlphaDither | TQt::AvoidDither); TQt::ThresholdDither | TQt::ThresholdAlphaDither | TQt::AvoidDither);
} else { } else {
@ -751,7 +751,7 @@ void KMagZoomView::grabFrame()
intersection &= TQRegion (selRect, TQRegion::Rectangle); intersection &= TQRegion (selRect, TQRegion::Rectangle);
// We don't want to overpaint other windows that happen to be on top // We don't want to overpaint other windows that happen to be on top
obscuredRegion (intersection, tqtopLevelWidget()->winId(), m_selRect.winId()); obscuredRegion (intersection, topLevelWidget()->winId(), m_selRect.winId());
intersection.translate (-selRect.x(), -selRect.y()); intersection.translate (-selRect.x(), -selRect.y());
TQPainter painter (&m_grabbedPixmap, true); TQPainter painter (&m_grabbedPixmap, true);

@ -61,7 +61,7 @@ class KMagZoomView : public TQScrollView
TQPixmap getPixmap(); TQPixmap getPixmap();
/// Returns the state of the refresh switch /// Returns the state of the refresh switch
bool getRefreshtqStatus() const { return m_refreshSwitch; }; bool getRefreshStatus() const { return m_refreshSwitch; };
/// Returns teh status of followMouse /// Returns teh status of followMouse
bool getFollowMouse() const { return m_followMouse; }; bool getFollowMouse() const { return m_followMouse; };

@ -29,7 +29,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>30</height> <height>30</height>
@ -65,7 +65,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -239,7 +239,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>31</width> <width>31</width>
<height>20</height> <height>20</height>
@ -314,7 +314,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>8</width> <width>8</width>
<height>8</height> <height>8</height>
@ -365,7 +365,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>241</width> <width>241</width>
<height>20</height> <height>20</height>

@ -477,15 +477,15 @@ const char *PhraseBookDrag::format (int i) const {
return xmlphrasebook.format(i/3); return xmlphrasebook.format(i/3);
} }
TQByteArray PhraseBookDrag::tqencodedData (const char* mime) const { TQByteArray PhraseBookDrag::encodedData (const char* mime) const {
TQCString m(mime); TQCString m(mime);
m = m.lower(); m = m.lower();
if (m.contains("xml-phrasebook")) if (m.contains("xml-phrasebook"))
return xmlphrasebook.tqencodedData(mime); return xmlphrasebook.encodedData(mime);
else if (m.contains("xml")) else if (m.contains("xml"))
return xml.tqencodedData(mime); return xml.encodedData(mime);
else else
return plain.tqencodedData(mime); return plain.encodedData(mime);
} }
bool PhraseBookDrag::canDecode (const TQMimeSource* e) { bool PhraseBookDrag::canDecode (const TQMimeSource* e) {

@ -157,7 +157,7 @@ public:
virtual void setBook (PhraseBook *book); virtual void setBook (PhraseBook *book);
const char *format (int i) const; const char *format (int i) const;
virtual TQByteArray tqencodedData (const char *) const; virtual TQByteArray encodedData (const char *) const;
static bool canDecode (const TQMimeSource *e); static bool canDecode (const TQMimeSource *e);
static bool decode (const TQMimeSource *e, PhraseBook *book); static bool decode (const TQMimeSource *e, PhraseBook *book);

@ -47,6 +47,6 @@ void PhraseListItem::paint (TQPainter *p) {
if (drawCursor()) { if (drawCursor()) {
TQRect r (0, 0, listBox()->maxItemWidth(), height (listBox())); TQRect r (0, 0, listBox()->maxItemWidth(), height (listBox()));
listBox()->tqstyle().tqdrawPrimitive (TQStyle::PE_FocusRect, p, r, listBox()->tqstyle().tqdrawPrimitive (TQStyle::PE_FocusRect, p, r,
listBox()->tqcolorGroup()); listBox()->colorGroup());
} }
} }

@ -225,10 +225,10 @@ void Speech::speak(TQString command, bool stdIn, const TQString &text, const TQS
} }
void Speech::receivedStdout (KProcess *, char *buffer, int buflen) { void Speech::receivedStdout (KProcess *, char *buffer, int buflen) {
kdDebug() << TQString::tqfromLatin1(buffer, buflen) + "\n"; kdDebug() << TQString::fromLatin1(buffer, buflen) + "\n";
} }
void Speech::receivedStderr (KProcess *, char *buffer, int buflen) { void Speech::receivedStderr (KProcess *, char *buffer, int buflen) {
kdDebug() << TQString::tqfromLatin1(buffer, buflen) + "\n"; kdDebug() << TQString::fromLatin1(buffer, buflen) + "\n";
} }
void Speech::wroteStdin(KProcess *) { void Speech::wroteStdin(KProcess *) {

@ -15,7 +15,7 @@ void CreationSourceDetailsUI::init() {
TQWhatsThis::add (languageButton, i18n("With this combo box you decide which language should be associated with the new dictionary.")); TQWhatsThis::add (languageButton, i18n("With this combo box you decide which language should be associated with the new dictionary."));
loadLanguageList(languageButton); loadLanguageList(languageButton);
languageButton->insertLanguage("??", i18n("Other"), TQString::tqfromLatin1("l10n/"), TQString()); languageButton->insertLanguage("??", i18n("Other"), TQString::fromLatin1("l10n/"), TQString());
connect (languageButton, TQT_SIGNAL(activated(int)), this, TQT_SLOT(languageButton_activated(int))); connect (languageButton, TQT_SIGNAL(activated(int)), this, TQT_SLOT(languageButton_activated(int)));
} }
@ -28,7 +28,7 @@ void CreationSourceDetailsUI::languageButton_activated (int) {
languageButton->setCurrentItem(customLanguage); languageButton->setCurrentItem(customLanguage);
} }
else { else {
languageButton->insertLanguage(customLanguage, i18n("without name"), TQString::tqfromLatin1("l10n/"), TQString()); languageButton->insertLanguage(customLanguage, i18n("without name"), TQString::fromLatin1("l10n/"), TQString());
languageButton->setCurrentItem(customLanguage); languageButton->setCurrentItem(customLanguage);
} }
} }

@ -120,7 +120,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>40</height> <height>40</height>

@ -132,12 +132,12 @@ void KLanguageButton::insertSubmenu( const TQString &text, const TQString &tag,
void KLanguageButton::insertLanguage( const TQString& path, const TQString& name, void KLanguageButton::insertLanguage( const TQString& path, const TQString& name,
const TQString& sub, const TQString &submenu, int index ) const TQString& sub, const TQString &submenu, int index )
{ {
TQString output = name + TQString::tqfromLatin1( " (" ) + path + TQString output = name + TQString::fromLatin1( " (" ) + path +
TQString::tqfromLatin1( ")" ); TQString::fromLatin1( ")" );
#if 0 #if 0
// Nooooo ! Country != language // Nooooo ! Country != language
TQPixmap flag( locate( "locale", sub + path + TQPixmap flag( locate( "locale", sub + path +
TQString::tqfromLatin1( "/flag.png" ) ) ); TQString::fromLatin1( "/flag.png" ) ) );
#endif #endif
insertItem( output, path, submenu, index ); insertItem( output, path, submenu, index );
} }
@ -182,8 +182,8 @@ void KLanguageButton::clear()
{ {
if ( i < 0 || i >= count() ) if ( i < 0 || i >= count() )
return; return;
TQString output = name + TQString::tqfromLatin1( " (" ) + tag( i ) + TQString output = name + TQString::fromLatin1( " (" ) + tag( i ) +
TQString::tqfromLatin1( ")" ); TQString::fromLatin1( ")" );
changeItem( output, i ); changeItem( output, i );
}*/ }*/

@ -31,18 +31,18 @@
TQString languageName (TQString languageCode) { TQString languageName (TQString languageCode) {
TQString filename = KGlobal::dirs()->findResource("locale", TQString filename = KGlobal::dirs()->findResource("locale",
languageCode + TQString::tqfromLatin1("/entry.desktop")); languageCode + TQString::fromLatin1("/entry.desktop"));
KSimpleConfig entry(filename); KSimpleConfig entry(filename);
entry.setGroup(TQString::tqfromLatin1("KCM Locale")); entry.setGroup(TQString::fromLatin1("KCM Locale"));
return entry.readEntry(TQString::tqfromLatin1("Name"), i18n("without name")); return entry.readEntry(TQString::fromLatin1("Name"), i18n("without name"));
} }
void loadLanguageList(KLanguageButton *combo) void loadLanguageList(KLanguageButton *combo)
// This function was taken from kdebase/kcontrol/kdm/kdm-appear.cpp // This function was taken from kdebase/kcontrol/kdm/kdm-appear.cpp
{ {
TQStringList langlist = KGlobal::dirs()->findAllResources("locale", TQStringList langlist = KGlobal::dirs()->findAllResources("locale",
TQString::tqfromLatin1("*/entry.desktop")); TQString::fromLatin1("*/entry.desktop"));
langlist.sort(); langlist.sort();
for ( TQStringList::ConstIterator it = langlist.begin(); for ( TQStringList::ConstIterator it = langlist.begin();
it != langlist.end(); ++it ) it != langlist.end(); ++it )
@ -52,9 +52,9 @@ void loadLanguageList(KLanguageButton *combo)
TQString nid = fpath.mid(index + 1); TQString nid = fpath.mid(index + 1);
KSimpleConfig entry(*it); KSimpleConfig entry(*it);
entry.setGroup(TQString::tqfromLatin1("KCM Locale")); entry.setGroup(TQString::fromLatin1("KCM Locale"));
TQString name = entry.readEntry(TQString::tqfromLatin1("Name"), i18n("without name")); TQString name = entry.readEntry(TQString::fromLatin1("Name"), i18n("without name"));
combo->insertLanguage(nid, name, TQString::tqfromLatin1("l10n/"), TQString()); combo->insertLanguage(nid, name, TQString::fromLatin1("l10n/"), TQString());
} }
if (KGlobal::locale()) if (KGlobal::locale())

@ -141,7 +141,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>240</height> <height>240</height>

@ -15,7 +15,7 @@ void WordCompletionUI::init() {
TQWhatsThis::add (languageButton, i18n("With this combo box you select the language associated with the selected dictionary.")); TQWhatsThis::add (languageButton, i18n("With this combo box you select the language associated with the selected dictionary."));
loadLanguageList(languageButton); loadLanguageList(languageButton);
languageButton->insertLanguage("??", i18n("Other"), TQString::tqfromLatin1("l10n/"), TQString()); languageButton->insertLanguage("??", i18n("Other"), TQString::fromLatin1("l10n/"), TQString());
connect (languageButton, TQT_SIGNAL(activated(int)), this, TQT_SLOT(languageButton_activated(int))); connect (languageButton, TQT_SIGNAL(activated(int)), this, TQT_SLOT(languageButton_activated(int)));
} }
@ -28,7 +28,7 @@ void WordCompletionUI::languageButton_activated (int) {
languageButton->setCurrentItem(customLanguage); languageButton->setCurrentItem(customLanguage);
} }
else { else {
languageButton->insertLanguage(customLanguage, i18n("without name"), TQString::tqfromLatin1("l10n/"), TQString()); languageButton->insertLanguage(customLanguage, i18n("without name"), TQString::fromLatin1("l10n/"), TQString());
languageButton->setCurrentItem(customLanguage); languageButton->setCurrentItem(customLanguage);
} }
} }

@ -71,11 +71,11 @@ public:
void setLanguage (TQString languageCode) { void setLanguage (TQString languageCode) {
TQString filename = KGlobal::dirs()->findResource("locale", TQString filename = KGlobal::dirs()->findResource("locale",
languageCode + TQString::tqfromLatin1("/entry.desktop")); languageCode + TQString::fromLatin1("/entry.desktop"));
KSimpleConfig entry(filename); KSimpleConfig entry(filename);
entry.setGroup(TQString::tqfromLatin1("KCM Locale")); entry.setGroup(TQString::fromLatin1("KCM Locale"));
TQString name = entry.readEntry(TQString::tqfromLatin1("Name"), i18n("without name")); TQString name = entry.readEntry(TQString::fromLatin1("Name"), i18n("without name"));
setLanguage (name + " (" + languageCode + ")", languageCode); setLanguage (name + " (" + languageCode + ")", languageCode);
} }
@ -136,7 +136,7 @@ void WordCompletionWidget::load() {
config->readEntry("Name"), config->readEntry("Name"),
languageTag); languageTag);
if (!languageButton->containsTag(languageTag)) if (!languageButton->containsTag(languageTag))
languageButton->insertLanguage(languageTag, i18n("without name"), TQString::tqfromLatin1("l10n/"), TQString()); languageButton->insertLanguage(languageTag, i18n("without name"), TQString::fromLatin1("l10n/"), TQString());
} }
// Clean up disc space // Clean up disc space
@ -200,7 +200,7 @@ void WordCompletionWidget::addDictionary() {
newDictionaryFiles += filename; newDictionaryFiles += filename;
TQString languageTag = wizard->language(); TQString languageTag = wizard->language();
if (!languageButton->containsTag(languageTag)) { if (!languageButton->containsTag(languageTag)) {
languageButton->insertLanguage(languageTag, i18n("without name"), TQString::tqfromLatin1("l10n/"), TQString()); languageButton->insertLanguage(languageTag, i18n("without name"), TQString::fromLatin1("l10n/"), TQString());
} }
KListViewItem *item = new DictionaryListItem (dictionaryList, KListViewItem *item = new DictionaryListItem (dictionaryList,
filename, wizard->name(), languageTag); filename, wizard->name(), languageTag);

@ -228,7 +228,7 @@ WordMap parseFiles (TQStringList files, TQTextStream::Encoding encoding, TQTextC
if (steps != 0 && progress*100/steps > percent) { if (steps != 0 && progress*100/steps > percent) {
percent = progress*100/steps; percent = progress*100/steps;
pdlg->progressBar()->setProgress(percent); pdlg->progressBar()->setProgress(percent);
tqApp->tqprocessEvents (20); tqApp->processEvents (20);
} }
} }
return map; return map;
@ -237,7 +237,7 @@ WordMap parseFiles (TQStringList files, TQTextStream::Encoding encoding, TQTextC
WordMap mergeFiles (TQMap<TQString,int> files, KProgressDialog *pdlg) { WordMap mergeFiles (TQMap<TQString,int> files, KProgressDialog *pdlg) {
pdlg->setLabel (i18n("Merging dictionaries...")); pdlg->setLabel (i18n("Merging dictionaries..."));
pdlg->show(); pdlg->show();
tqApp->tqprocessEvents (20); tqApp->processEvents (20);
int progress = 0; int progress = 0;
int steps = files.count(); int steps = files.count();
@ -269,7 +269,7 @@ WordMap mergeFiles (TQMap<TQString,int> files, KProgressDialog *pdlg) {
if (steps != 0 && progress*100/steps > percent) { if (steps != 0 && progress*100/steps > percent) {
percent = progress*100/steps; percent = progress*100/steps;
pdlg->progressBar()->setProgress(percent); pdlg->progressBar()->setProgress(percent);
tqApp->tqprocessEvents (20); tqApp->processEvents (20);
} }
} }
@ -290,7 +290,7 @@ WordMap mergeFiles (TQMap<TQString,int> files, KProgressDialog *pdlg) {
WordMap parseKDEDoc (TQString language, KProgressDialog *pdlg) { WordMap parseKDEDoc (TQString language, KProgressDialog *pdlg) {
pdlg->setLabel (i18n("Parsing the KDE documentation...")); pdlg->setLabel (i18n("Parsing the KDE documentation..."));
pdlg->show(); pdlg->show();
tqApp->tqprocessEvents (20); tqApp->processEvents (20);
TQStringList files = KApplication::kApplication()->dirs()->findAllResources ("html", language + "/*.docbook", true, true); TQStringList files = KApplication::kApplication()->dirs()->findAllResources ("html", language + "/*.docbook", true, true);
if ((files.count() == 0) && (language.length() == 5)) { if ((files.count() == 0) && (language.length() == 5)) {
@ -304,7 +304,7 @@ WordMap parseKDEDoc (TQString language, KProgressDialog *pdlg) {
WordMap parseFile (TQString filename, TQTextStream::Encoding encoding, TQTextCodec *codec, KProgressDialog *pdlg) { WordMap parseFile (TQString filename, TQTextStream::Encoding encoding, TQTextCodec *codec, KProgressDialog *pdlg) {
pdlg->setLabel (i18n("Parsing file...")); pdlg->setLabel (i18n("Parsing file..."));
pdlg->show(); pdlg->show();
tqApp->tqprocessEvents (20); tqApp->processEvents (20);
TQStringList files = filename; TQStringList files = filename;
@ -314,7 +314,7 @@ WordMap parseFile (TQString filename, TQTextStream::Encoding encoding, TQTextCod
WordMap parseDir (TQString directory, TQTextStream::Encoding encoding, TQTextCodec *codec, KProgressDialog *pdlg) { WordMap parseDir (TQString directory, TQTextStream::Encoding encoding, TQTextCodec *codec, KProgressDialog *pdlg) {
pdlg->setLabel (i18n("Parsing directory...")); pdlg->setLabel (i18n("Parsing directory..."));
pdlg->show(); pdlg->show();
tqApp->tqprocessEvents (20); tqApp->processEvents (20);
TQStringList directories; TQStringList directories;
directories += directory; directories += directory;
@ -504,7 +504,7 @@ WordMap spellCheck (WordMap map, TQString dictionary, KProgressDialog *pdlg) {
pdlg->setLabel (i18n("Performing spell check...")); pdlg->setLabel (i18n("Performing spell check..."));
pdlg->progressBar()->setTotalSteps(100); pdlg->progressBar()->setTotalSteps(100);
pdlg->progressBar()->setProgress(0); pdlg->progressBar()->setProgress(0);
tqApp->tqprocessEvents (20); tqApp->processEvents (20);
int progress = 0; int progress = 0;
int steps = 0; int steps = 0;
int percent = 0; int percent = 0;
@ -535,7 +535,7 @@ WordMap spellCheck (WordMap map, TQString dictionary, KProgressDialog *pdlg) {
if (steps != 0 && progress*100/steps > percent) { if (steps != 0 && progress*100/steps > percent) {
percent = progress*100/steps; percent = progress*100/steps;
pdlg->progressBar()->setProgress(percent); pdlg->progressBar()->setProgress(percent);
tqApp->tqprocessEvents (20); tqApp->processEvents (20);
} }
} }
} }

@ -20,7 +20,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>300</height> <height>300</height>
@ -56,7 +56,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>260</height> <height>260</height>
@ -161,7 +161,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>260</height> <height>260</height>
@ -260,7 +260,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>260</height> <height>260</height>
@ -359,7 +359,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>260</height> <height>260</height>
@ -458,7 +458,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>260</height> <height>260</height>
@ -587,7 +587,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>180</width> <width>180</width>
<height>20</height> <height>20</height>
@ -598,7 +598,7 @@
<property name="name"> <property name="name">
<cstring>OK_Button</cstring> <cstring>OK_Button</cstring>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>60</width> <width>60</width>
<height>0</height> <height>0</height>

@ -67,7 +67,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>
@ -95,7 +95,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>

@ -81,7 +81,7 @@ int KTTSDLib::getActions()
} }
int KTTSDLib::gettqStatus() const int KTTSDLib::getStatus() const
{ {
return TTS::AUDIOFILE; return TTS::AUDIOFILE;
} }

@ -93,7 +93,7 @@ public:
void sayText(); void sayText();
int gettqStatus() const; int getStatus() const;
void stop(); void stop();

@ -20,7 +20,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>100</width> <width>100</width>
<height>200</height> <height>200</height>

@ -23,7 +23,7 @@
<property name="name"> <property name="name">
<cstring>TextEdit</cstring> <cstring>TextEdit</cstring>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>400</width> <width>400</width>
<height>200</height> <height>200</height>

@ -927,7 +927,7 @@ void DocTreeViewImpl::slotNewDate()
date->setText(3, TQString("%1").tqarg(newIndex).rightJustify(8,'0') ); date->setText(3, TQString("%1").tqarg(newIndex).rightJustify(8,'0') );
// get current date // get current date
TQString today; TQString today;
today = KGlobal::locale()->formatDate(TQDate::tqcurrentDate(Qt::LocalTime), true); today = KGlobal::locale()->formatDate(TQDate::currentDate(Qt::LocalTime), true);
date->setText( 1, today); date->setText( 1, today);
date->setValue( KSayItGlobal::RAWDATA, today ); date->setValue( KSayItGlobal::RAWDATA, today );
date->setValue( KSayItGlobal::RTFDATA, today ); date->setValue( KSayItGlobal::RTFDATA, today );

@ -50,7 +50,7 @@
<property name="name"> <property name="name">
<cstring>listBox_Available</cstring> <cstring>listBox_Available</cstring>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>150</width> <width>150</width>
<height>170</height> <height>170</height>
@ -77,7 +77,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>
@ -88,7 +88,7 @@
<property name="name"> <property name="name">
<cstring>toolButton_add</cstring> <cstring>toolButton_add</cstring>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>32767</height> <height>32767</height>
@ -105,7 +105,7 @@
<property name="name"> <property name="name">
<cstring>toolButton_remove</cstring> <cstring>toolButton_remove</cstring>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>32767</height> <height>32767</height>
@ -128,7 +128,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>
@ -157,7 +157,7 @@
<property name="name"> <property name="name">
<cstring>listBox_Active</cstring> <cstring>listBox_Active</cstring>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>150</width> <width>150</width>
<height>170</height> <height>170</height>
@ -189,7 +189,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>

@ -322,12 +322,12 @@ void KSayItApp::initView()
{ {
// create the main widget // create the main widget
view = new KSayItViewImpl(this); view = new KSayItViewImpl(this);
view->setMinimumSize(view->tqsizeHint()); view->setMinimumSize(view->sizeHint());
setCentralWidget(view); setCentralWidget(view);
// connections // connections
connect( view, TQT_SIGNAL(signalEnableCopyCut(bool)), connect( view, TQT_SIGNAL(signalEnableCopyCut(bool)),
TQT_TQOBJECT(this), TQT_SLOT(slotEnableCopyCut(bool))); TQT_TQOBJECT(this), TQT_SLOT(slotEnableCopyCut(bool)));
connect( view, TQT_SIGNAL(signalShowtqStatus(const TQString &)), connect( view, TQT_SIGNAL(signalShowStatus(const TQString &)),
TQT_TQOBJECT(this), TQT_SLOT(slotStatusMsg(const TQString &))); TQT_TQOBJECT(this), TQT_SLOT(slotStatusMsg(const TQString &)));
connect( view, TQT_SIGNAL(signalSetCaption(const TQString &)), connect( view, TQT_SIGNAL(signalSetCaption(const TQString &)),
TQT_TQOBJECT(this), TQT_SLOT(slotSetCaption(const TQString &))); TQT_TQOBJECT(this), TQT_SLOT(slotSetCaption(const TQString &)));

@ -41,7 +41,7 @@ public:
signals: signals:
void signalSetCaption(const TQString &caption); void signalSetCaption(const TQString &caption);
void signalShowtqStatus(const TQString &status); void signalShowStatus(const TQString &status);
void signalEnableCopyCut(bool enable); void signalEnableCopyCut(bool enable);
/** Emitted when the text in the TextEditor view cahnges. /** Emitted when the text in the TextEditor view cahnges.

@ -88,7 +88,7 @@ void VoiceSetupDlg::initFXPage()
connect( this, TQT_SIGNAL(signalReloadFX()), fxDialog, TQT_SLOT(slotReload()) ); connect( this, TQT_SIGNAL(signalReloadFX()), fxDialog, TQT_SLOT(slotReload()) );
// Disable/enable FX-Setup depending on TTS-libs capability // Disable/enable FX-Setup depending on TTS-libs capability
int status = m_kttslib->gettqStatus() & TTS::AUDIOFILE; int status = m_kttslib->getStatus() & TTS::AUDIOFILE;
if ( status ){ if ( status ){
m_fxPage->setEnabled(true); m_fxPage->setEnabled(true);
} else { } else {
@ -105,7 +105,7 @@ void VoiceSetupDlg::slotPageChanged(TQWidget *page)
if ( page != m_fxPage ) if ( page != m_fxPage )
return; return;
int status = m_kttslib->gettqStatus() & TTS::AUDIOFILE; int status = m_kttslib->getStatus() & TTS::AUDIOFILE;
if ( status ){ if ( status ){
m_fxPage->setEnabled(true); m_fxPage->setEnabled(true);
} else { } else {
@ -120,7 +120,7 @@ void VoiceSetupDlg::slotOk()
{ {
kdDebug(100200) << "+++ entering VoiceSetupDlg::slotOK()" << endl; kdDebug(100200) << "+++ entering VoiceSetupDlg::slotOK()" << endl;
int status = m_kttslib->gettqStatus(); int status = m_kttslib->getStatus();
if ( (status & TTS::AUDIOFILE) == 0 ){ if ( (status & TTS::AUDIOFILE) == 0 ){
emit signalRemoveAllFX(); emit signalRemoveAllFX();
} }

@ -64,7 +64,7 @@ SbdConf::SbdConf( TQWidget *parent, const char *name, const TQStringList& /*args
// Create configuration widget. // Create configuration widget.
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "SbdConfigWidgetLayout"); KDialog::spacingHint(), "SbdConfigWidgetLayout");
tqlayout->tqsetAlignment (TQt::AlignTop); tqlayout->setAlignment (TQt::AlignTop);
m_widget = new SbdConfWidget(this, "SbdConfigWidget"); m_widget = new SbdConfWidget(this, "SbdConfigWidget");
tqlayout->addWidget(m_widget); tqlayout->addWidget(m_widget);

@ -21,7 +21,7 @@
<verstretch>255</verstretch> <verstretch>255</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>

@ -69,7 +69,7 @@ StringReplacerConf::StringReplacerConf( TQWidget *parent, const char *name, cons
// Create configuration widget. // Create configuration widget.
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "StringReplacerConfigWidgetLayout"); KDialog::spacingHint(), "StringReplacerConfigWidgetLayout");
tqlayout->tqsetAlignment (TQt::AlignTop); tqlayout->setAlignment (TQt::AlignTop);
m_widget = new StringReplacerConfWidget(this, "StringReplacerConfigWidget"); m_widget = new StringReplacerConfWidget(this, "StringReplacerConfigWidget");
tqlayout->addWidget(m_widget); tqlayout->addWidget(m_widget);
m_widget->substLView->setSortColumn(-1); m_widget->substLView->setSortColumn(-1);

@ -427,7 +427,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>

@ -57,7 +57,7 @@ TalkerChooserConf::TalkerChooserConf( TQWidget *parent, const char *name, const
// Create configuration widget. // Create configuration widget.
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "TalkerChooserConfigWidgetLayout"); KDialog::spacingHint(), "TalkerChooserConfigWidgetLayout");
tqlayout->tqsetAlignment (TQt::AlignTop); tqlayout->setAlignment (TQt::AlignTop);
m_widget = new TalkerChooserConfWidget(this, "TalkerChooserConfigWidget"); m_widget = new TalkerChooserConfWidget(this, "TalkerChooserConfigWidget");
tqlayout->addWidget(m_widget); tqlayout->addWidget(m_widget);

@ -51,7 +51,7 @@ XmlTransformerConf::XmlTransformerConf( TQWidget *parent, const char *name, cons
// Create configuration widget. // Create configuration widget.
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "XmlTransformerConfWidgetLayout"); KDialog::spacingHint(), "XmlTransformerConfWidgetLayout");
tqlayout->tqsetAlignment (TQt::AlignTop); tqlayout->setAlignment (TQt::AlignTop);
m_widget = new XmlTransformerConfWidget(this, "XmlTransformerConfigWidget"); m_widget = new XmlTransformerConfWidget(this, "XmlTransformerConfigWidget");
tqlayout->addWidget(m_widget); tqlayout->addWidget(m_widget);

@ -373,13 +373,13 @@ void XmlTransformerProc::slotProcessExited(KProcess*)
void XmlTransformerProc::slotReceivedStdout(KProcess*, char* /*buffer*/, int /*buflen*/) void XmlTransformerProc::slotReceivedStdout(KProcess*, char* /*buffer*/, int /*buflen*/)
{ {
// TQString buf = TQString::tqfromLatin1(buffer, buflen); // TQString buf = TQString::fromLatin1(buffer, buflen);
// kdDebug() << "XmlTransformerProc::slotReceivedStdout: Received from xsltproc: " << buf << endl; // kdDebug() << "XmlTransformerProc::slotReceivedStdout: Received from xsltproc: " << buf << endl;
} }
void XmlTransformerProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) void XmlTransformerProc::slotReceivedStderr(KProcess*, char* buffer, int buflen)
{ {
TQString buf = TQString::tqfromLatin1(buffer, buflen); TQString buf = TQString::fromLatin1(buffer, buflen);
kdDebug() << "XmlTransformerProc::slotReceivedStderr: Received error from xsltproc: " << buf << endl; kdDebug() << "XmlTransformerProc::slotReceivedStderr: Received error from xsltproc: " << buf << endl;
} }

@ -80,7 +80,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>351</width> <width>351</width>
<height>21</height> <height>21</height>
@ -115,7 +115,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>25</width> <width>25</width>
<height>20</height> <height>20</height>
@ -132,7 +132,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>30</width> <width>30</width>
<height>20</height> <height>20</height>
@ -149,7 +149,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>30</width> <width>30</width>
<height>20</height> <height>20</height>
@ -166,7 +166,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>25</width> <width>25</width>
<height>20</height> <height>20</height>

@ -2093,7 +2093,7 @@ void KCMKttsMgr::configureFilter()
true, true,
true); true);
m_configDlg->setInitialSize(TQSize(600, 450), false); m_configDlg->setInitialSize(TQSize(600, 450), false);
m_loadedFilterPlugIn->setMinimumSize(m_loadedFilterPlugIn->tqminimumSizeHint()); m_loadedFilterPlugIn->setMinimumSize(m_loadedFilterPlugIn->minimumSizeHint());
m_loadedFilterPlugIn->show(); m_loadedFilterPlugIn->show();
m_configDlg->setMainWidget(m_loadedFilterPlugIn); m_configDlg->setMainWidget(m_loadedFilterPlugIn);
m_configDlg->setHelp("configure-filter", "kttsd"); m_configDlg->setHelp("configure-filter", "kttsd");

@ -83,7 +83,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>
@ -108,7 +108,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -149,7 +149,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -407,7 +407,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>
@ -576,7 +576,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>
@ -780,7 +780,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>
@ -975,7 +975,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>
@ -1053,7 +1053,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>11</height> <height>11</height>
@ -1229,7 +1229,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>180</height> <height>180</height>
@ -1391,7 +1391,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>
@ -1408,7 +1408,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>90</width> <width>90</width>
<height>20</height> <height>20</height>

@ -61,10 +61,10 @@ SelectEvent::SelectEvent(TQWidget* parent, const char* name, WFlags fl, const TQ
if ( !relativePath.isEmpty() ) if ( !relativePath.isEmpty() )
{ {
KConfig* config = new KConfig(relativePath, true, false, "data"); KConfig* config = new KConfig(relativePath, true, false, "data");
config->setGroup( TQString::tqfromLatin1("!Global!") ); config->setGroup( TQString::fromLatin1("!Global!") );
TQString icon = config->readEntry(TQString::tqfromLatin1("IconName"), TQString icon = config->readEntry(TQString::fromLatin1("IconName"),
TQString::tqfromLatin1("misc")); TQString::fromLatin1("misc"));
TQString description = config->readEntry( TQString::tqfromLatin1("Comment"), TQString description = config->readEntry( TQString::fromLatin1("Comment"),
i18n("No description available") ); i18n("No description available") );
delete config; delete config;
int index = relativePath.find( '/' ); int index = relativePath.find( '/' );
@ -89,7 +89,7 @@ void SelectEvent::slotEventSrcComboBox_activated(int index)
eventsListView->clear(); eventsListView->clear();
TQListViewItem* item = 0; TQListViewItem* item = 0;
TQString eventSrc = m_eventSrcNames[index]; TQString eventSrc = m_eventSrcNames[index];
TQString configFilename = eventSrc + TQString::tqfromLatin1( "/eventsrc" ); TQString configFilename = eventSrc + TQString::fromLatin1( "/eventsrc" );
KConfig* config = new KConfig( configFilename, true, false, "data" ); KConfig* config = new KConfig( configFilename, true, false, "data" );
TQStringList eventNames = config->groupList(); TQStringList eventNames = config->groupList();
uint eventNamesCount = eventNames.count(); uint eventNamesCount = eventNames.count();
@ -99,8 +99,8 @@ void SelectEvent::slotEventSrcComboBox_activated(int index)
if ( eventName != "!Global!" ) if ( eventName != "!Global!" )
{ {
config->setGroup( eventName ); config->setGroup( eventName );
TQString eventDesc = config->readEntry( TQString::tqfromLatin1( "Comment" ), TQString eventDesc = config->readEntry( TQString::fromLatin1( "Comment" ),
config->readEntry( TQString::tqfromLatin1( "Name" ))); config->readEntry( TQString::fromLatin1( "Name" )));
if ( !item ) if ( !item )
item = new KListViewItem( eventsListView, eventDesc, eventName ); item = new KListViewItem( eventsListView, eventDesc, eventName );
else else

@ -134,7 +134,7 @@ int TalkerMgr::loadPlugIns(KConfig* config)
} else { } else {
// Synchronous plugins are run in a separate thread. // Synchronous plugins are run in a separate thread.
// Init will start the thread and it will immediately go to sleep. // Init will start the thread and it will immediately go to sleep.
TQString threadedPlugInName = TQString::tqfromLatin1("threaded") + desktopEntryName; TQString threadedPlugInName = TQString::fromLatin1("threaded") + desktopEntryName;
ThreadedPlugIn* speechThread = new ThreadedPlugIn(speech, ThreadedPlugIn* speechThread = new ThreadedPlugIn(speech,
this, threadedPlugInName.latin1()); this, threadedPlugInName.latin1());
speechThread->init(config, "Talker_" + talkerCode); speechThread->init(config, "Talker_" + talkerCode);

@ -163,7 +163,7 @@ KttsJobMgrPart::KttsJobMgrPart(TQWidget *parent, const char *name) :
hbox3->setSpacing(6); hbox3->setSpacing(6);
// Do not let button box stretch vertically. // Do not let button box stretch vertically.
m_buttonBox->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed)); m_buttonBox->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed));
// All the buttons with "job_" at start of their names will be enabled/disabled when a job is // All the buttons with "job_" at start of their names will be enabled/disabled when a job is
// selected in the Job List View. // selected in the Job List View.
@ -274,7 +274,7 @@ KttsJobMgrPart::KttsJobMgrPart(TQWidget *parent, const char *name) :
// Create a label for current sentence. // Create a label for current sentence.
TQLabel* currentSentenceLabel = new TQLabel(sentenceVBox); TQLabel* currentSentenceLabel = new TQLabel(sentenceVBox);
currentSentenceLabel->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed)); currentSentenceLabel->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed));
currentSentenceLabel->setText(i18n("Current Sentence")); currentSentenceLabel->setText(i18n("Current Sentence"));
// Create a box to contain the current sentence. // Create a box to contain the current sentence.
@ -518,7 +518,7 @@ void KttsJobMgrPart::slot_speak_clipboard()
{ {
if (supportsMarkup(NULL, KSpeech::mtHtml)) if (supportsMarkup(NULL, KSpeech::mtHtml))
{ {
TQByteArray d = data->tqencodedData("text/html"); TQByteArray d = data->encodedData("text/html");
text = TQString(d); text = TQString(d);
} }
} }
@ -526,7 +526,7 @@ void KttsJobMgrPart::slot_speak_clipboard()
{ {
if (supportsMarkup(NULL, KSpeech::mtSsml)) if (supportsMarkup(NULL, KSpeech::mtSsml))
{ {
TQByteArray d = data->tqencodedData("text/ssml"); TQByteArray d = data->encodedData("text/ssml");
text = TQString(d); text = TQString(d);
} }
} }

@ -155,7 +155,7 @@ KttsToolTip::KttsToolTip ( TQWidget* parent ) : TQToolTip(parent)
TQString status = "<qt><b>KTTSMgr</b> - "; TQString status = "<qt><b>KTTSMgr</b> - ";
status += i18n("<qt>Text-to-Speech Manager"); status += i18n("<qt>Text-to-Speech Manager");
status += "<br/><br/>"; status += "<br/><br/>";
status += kttsMgrTray->gettqStatus(); status += kttsMgrTray->getStatus();
status += "</qt>"; status += "</qt>";
tip(r, status); tip(r, status);
@ -257,7 +257,7 @@ TQString KttsMgrTray::stateToStr(int state)
} }
} }
TQString KttsMgrTray::gettqStatus() TQString KttsMgrTray::getStatus()
{ {
if (!isKttsdRunning()) return i18n("Text-to-Speech System is not running"); if (!isKttsdRunning()) return i18n("Text-to-Speech System is not running");
uint jobCount = getTextJobCount(); uint jobCount = getTextJobCount();

@ -55,7 +55,7 @@ class KttsMgrTray: public KSystemTray, public KSpeech_stub, virtual public KSpee
~KttsMgrTray(); ~KttsMgrTray();
void setExitWhenFinishedSpeaking(); void setExitWhenFinishedSpeaking();
TQString gettqStatus(); TQString getStatus();
protected: protected:
// ASYNC textStarted(const TQCString& appId, uint jobNum); // ASYNC textStarted(const TQCString& appId, uint jobNum);

@ -148,9 +148,9 @@ static void notifypresent_init()
*/ */
/*static*/ TQString NotifyEvent::getEventSrcName(const TQString& eventSrc, TQString& iconName) /*static*/ TQString NotifyEvent::getEventSrcName(const TQString& eventSrc, TQString& iconName)
{ {
TQString configFilename = eventSrc + TQString::tqfromLatin1( "/eventsrc" ); TQString configFilename = eventSrc + TQString::fromLatin1( "/eventsrc" );
KConfig* config = new KConfig( configFilename, true, false, "data" ); KConfig* config = new KConfig( configFilename, true, false, "data" );
config->setGroup( TQString::tqfromLatin1( "!Global!" ) ); config->setGroup( TQString::fromLatin1( "!Global!" ) );
TQString appDesc = config->readEntry( "Comment", i18n("No description available") ); TQString appDesc = config->readEntry( "Comment", i18n("No description available") );
iconName = config->readEntry( "IconName" ); iconName = config->readEntry( "IconName" );
delete config; delete config;
@ -163,13 +163,13 @@ static void notifypresent_init()
/*static*/ TQString NotifyEvent::getEventName(const TQString& eventSrc, const TQString& event) /*static*/ TQString NotifyEvent::getEventName(const TQString& eventSrc, const TQString& event)
{ {
TQString eventName; TQString eventName;
TQString configFilename = eventSrc + TQString::tqfromLatin1( "/eventsrc" ); TQString configFilename = eventSrc + TQString::fromLatin1( "/eventsrc" );
KConfig* config = new KConfig( configFilename, true, false, "data" ); KConfig* config = new KConfig( configFilename, true, false, "data" );
if ( config->hasGroup( event ) ) if ( config->hasGroup( event ) )
{ {
config->setGroup( event ); config->setGroup( event );
eventName = config->readEntry( TQString::tqfromLatin1( "Comment" ), eventName = config->readEntry( TQString::fromLatin1( "Comment" ),
config->readEntry( TQString::tqfromLatin1( "Name" ))); config->readEntry( TQString::fromLatin1( "Name" )));
} }
delete config; delete config;
return eventName; return eventName;

@ -93,7 +93,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>30</width> <width>30</width>
<height>20</height> <height>20</height>
@ -442,7 +442,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>30</width> <width>30</width>
<height>20</height> <height>20</height>

@ -50,7 +50,7 @@ CommandConf::CommandConf( TQWidget* parent, const char* name, const TQStringList
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "CommandConfigWidgetLayout"); KDialog::spacingHint(), "CommandConfigWidgetLayout");
tqlayout->tqsetAlignment (TQt::AlignTop); tqlayout->setAlignment (TQt::AlignTop);
m_widget = new CommandConfWidget(this, "CommandConfigWidget"); m_widget = new CommandConfWidget(this, "CommandConfigWidget");
tqlayout->addWidget(m_widget); tqlayout->addWidget(m_widget);

@ -101,7 +101,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>201</width> <width>201</width>
<height>20</height> <height>20</height>
@ -187,7 +187,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>30</height> <height>30</height>

@ -382,13 +382,13 @@ void CommandProc::slotProcessExited(KProcess*)
void CommandProc::slotReceivedStdout(KProcess*, char* buffer, int buflen) void CommandProc::slotReceivedStdout(KProcess*, char* buffer, int buflen)
{ {
TQString buf = TQString::tqfromLatin1(buffer, buflen); TQString buf = TQString::fromLatin1(buffer, buflen);
kdDebug() << "CommandProc::slotReceivedStdout: Received output from Command: " << buf << endl; kdDebug() << "CommandProc::slotReceivedStdout: Received output from Command: " << buf << endl;
} }
void CommandProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) void CommandProc::slotReceivedStderr(KProcess*, char* buffer, int buflen)
{ {
TQString buf = TQString::tqfromLatin1(buffer, buflen); TQString buf = TQString::fromLatin1(buffer, buflen);
kdDebug() << "CommandProc::slotReceivedStderr: Received error from Command: " << buf << endl; kdDebug() << "CommandProc::slotReceivedStderr: Received error from Command: " << buf << endl;
} }

@ -57,7 +57,7 @@ EposConf::EposConf( TQWidget* parent, const char* name, const TQStringList& /*ar
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "EposConfigWidgetLayout"); KDialog::spacingHint(), "EposConfigWidgetLayout");
tqlayout->tqsetAlignment (TQt::AlignTop); tqlayout->setAlignment (TQt::AlignTop);
m_widget = new EposConfWidget(this, "EposConfigWidget"); m_widget = new EposConfWidget(this, "EposConfigWidget");
tqlayout->addWidget(m_widget); tqlayout->addWidget(m_widget);

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

@ -326,13 +326,13 @@ void EposProc::slotProcessExited(KProcess*)
void EposProc::slotReceivedStdout(KProcess*, char* buffer, int buflen) void EposProc::slotReceivedStdout(KProcess*, char* buffer, int buflen)
{ {
TQString buf = TQString::tqfromLatin1(buffer, buflen); TQString buf = TQString::fromLatin1(buffer, buflen);
kdDebug() << "EposProc::slotReceivedStdout: Received output from Epos: " << buf << endl; kdDebug() << "EposProc::slotReceivedStdout: Received output from Epos: " << buf << endl;
} }
void EposProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) void EposProc::slotReceivedStderr(KProcess*, char* buffer, int buflen)
{ {
TQString buf = TQString::tqfromLatin1(buffer, buflen); TQString buf = TQString::fromLatin1(buffer, buflen);
kdDebug() << "EposProc::slotReceivedStderr: Received error from Epos: " << buf << endl; kdDebug() << "EposProc::slotReceivedStderr: Received error from Epos: " << buf << endl;
} }

@ -67,7 +67,7 @@ FestivalIntConf::FestivalIntConf( TQWidget* parent, const char* name, const TQSt
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "FestivalIntConfigWidgetLayout"); KDialog::spacingHint(), "FestivalIntConfigWidgetLayout");
tqlayout->tqsetAlignment (TQt::AlignTop); tqlayout->setAlignment (TQt::AlignTop);
m_widget = new FestivalIntConfWidget(this, "FestivalIntConfigWidget"); m_widget = new FestivalIntConfWidget(this, "FestivalIntConfigWidget");
tqlayout->addWidget(m_widget); tqlayout->addWidget(m_widget);

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

@ -500,7 +500,7 @@ void FestivalIntProc::slotProcessExited(KProcess*)
void FestivalIntProc::slotReceivedStdout(KProcess*, char* buffer, int buflen) void FestivalIntProc::slotReceivedStdout(KProcess*, char* buffer, int buflen)
{ {
TQString buf = TQString::tqfromLatin1(buffer, buflen); TQString buf = TQString::fromLatin1(buffer, buflen);
// kdDebug() << "FestivalIntProc::slotReceivedStdout: Received from Festival: " << buf << endl; // kdDebug() << "FestivalIntProc::slotReceivedStdout: Received from Festival: " << buf << endl;
bool promptSeen = (buf.contains("festival>") > 0); bool promptSeen = (buf.contains("festival>") > 0);
bool emitQueryVoicesFinished = false; bool emitQueryVoicesFinished = false;
@ -569,7 +569,7 @@ void FestivalIntProc::slotReceivedStdout(KProcess*, char* buffer, int buflen)
void FestivalIntProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) void FestivalIntProc::slotReceivedStderr(KProcess*, char* buffer, int buflen)
{ {
TQString buf = TQString::tqfromLatin1(buffer, buflen); TQString buf = TQString::fromLatin1(buffer, buflen);
kdDebug() << "FestivalIntProc::slotReceivedStderr: Received error from Festival: " << buf << endl; kdDebug() << "FestivalIntProc::slotReceivedStderr: Received error from Festival: " << buf << endl;
} }

@ -51,7 +51,7 @@ FliteConf::FliteConf( TQWidget* parent, const char* name, const TQStringList& /*
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "FliteConfigWidgetLayout"); KDialog::spacingHint(), "FliteConfigWidgetLayout");
tqlayout->tqsetAlignment (TQt::AlignTop); tqlayout->setAlignment (TQt::AlignTop);
m_widget = new FliteConfWidget(this, "FliteConfigWidget"); m_widget = new FliteConfWidget(this, "FliteConfigWidget");
tqlayout->addWidget(m_widget); tqlayout->addWidget(m_widget);

@ -41,7 +41,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>
@ -160,7 +160,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>221</width> <width>221</width>
<height>20</height> <height>20</height>

@ -218,13 +218,13 @@ void FliteProc::slotProcessExited(KProcess*)
void FliteProc::slotReceivedStdout(KProcess*, char* buffer, int buflen) void FliteProc::slotReceivedStdout(KProcess*, char* buffer, int buflen)
{ {
TQString buf = TQString::tqfromLatin1(buffer, buflen); TQString buf = TQString::fromLatin1(buffer, buflen);
kdDebug() << "FliteProc::slotReceivedStdout: Received output from Flite: " << buf << endl; kdDebug() << "FliteProc::slotReceivedStdout: Received output from Flite: " << buf << endl;
} }
void FliteProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) void FliteProc::slotReceivedStderr(KProcess*, char* buffer, int buflen)
{ {
TQString buf = TQString::tqfromLatin1(buffer, buflen); TQString buf = TQString::fromLatin1(buffer, buflen);
kdDebug() << "FliteProc::slotReceivedStderr: Received error from Flite: " << buf << endl; kdDebug() << "FliteProc::slotReceivedStderr: Received error from Flite: " << buf << endl;
} }

@ -49,7 +49,7 @@ FreeTTSConf::FreeTTSConf( TQWidget* parent, const char* name, const TQStringList
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "FreeTTSConfigWidgetLayout"); KDialog::spacingHint(), "FreeTTSConfigWidgetLayout");
tqlayout->tqsetAlignment (TQt::AlignTop); tqlayout->setAlignment (TQt::AlignTop);
m_widget = new FreeTTSConfWidget(this, "FreeTTSConfigWidget"); m_widget = new FreeTTSConfWidget(this, "FreeTTSConfigWidget");
tqlayout->addWidget(m_widget); tqlayout->addWidget(m_widget);

@ -38,7 +38,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>
@ -164,7 +164,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>410</width> <width>410</width>
<height>20</height> <height>20</height>

@ -206,12 +206,12 @@ void FreeTTSProc::slotProcessExited(KProcess*) {
} }
void FreeTTSProc::slotReceivedStdout(KProcess*, char* buffer, int buflen) { void FreeTTSProc::slotReceivedStdout(KProcess*, char* buffer, int buflen) {
TQString buf = TQString::tqfromLatin1(buffer, buflen); TQString buf = TQString::fromLatin1(buffer, buflen);
kdDebug() << "FreeTTSProc::slotReceivedStdout: Received output from FreeTTS: " << buf << endl; kdDebug() << "FreeTTSProc::slotReceivedStdout: Received output from FreeTTS: " << buf << endl;
} }
void FreeTTSProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) { void FreeTTSProc::slotReceivedStderr(KProcess*, char* buffer, int buflen) {
TQString buf = TQString::tqfromLatin1(buffer, buflen); TQString buf = TQString::fromLatin1(buffer, buflen);
kdDebug() << "FreeTTSProc::slotReceivedStderr: Received error from FreeTTS: " << buf << endl; kdDebug() << "FreeTTSProc::slotReceivedStderr: Received error from FreeTTS: " << buf << endl;
} }

@ -207,7 +207,7 @@ HadifixConf::HadifixConf( TQWidget* parent, const char* name, const TQStringList
PlugInConf( parent, name ){ PlugInConf( parent, name ){
// kdDebug() << "HadifixConf::HadifixConf: Running" << endl; // kdDebug() << "HadifixConf::HadifixConf: Running" << endl;
TQVBoxLayout *tqlayout = new TQVBoxLayout (this, KDialog::marginHint(), KDialog::spacingHint(), "CommandConfigWidgetLayout"); TQVBoxLayout *tqlayout = new TQVBoxLayout (this, KDialog::marginHint(), KDialog::spacingHint(), "CommandConfigWidgetLayout");
tqlayout->tqsetAlignment (TQt::AlignTop); tqlayout->setAlignment (TQt::AlignTop);
d = new HadifixConfPrivate(); d = new HadifixConfPrivate();
d->configWidget = new HadifixConfigUI (this, "configWidget"); d->configWidget = new HadifixConfigUI (this, "configWidget");

@ -525,7 +525,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>240</width> <width>240</width>
<height>20</height> <height>20</height>

@ -389,11 +389,11 @@ HadifixProc::VoiceGender HadifixProc::determineGender(TQString mbrola, TQString
} }
void HadifixProc::receivedStdout (KProcess *, char *buffer, int buflen) { void HadifixProc::receivedStdout (KProcess *, char *buffer, int buflen) {
stdOut += TQString::tqfromLatin1(buffer, buflen); stdOut += TQString::fromLatin1(buffer, buflen);
} }
void HadifixProc::receivedStderr (KProcess *, char *buffer, int buflen) { void HadifixProc::receivedStderr (KProcess *, char *buffer, int buflen) {
stdErr += TQString::tqfromLatin1(buffer, buflen); stdErr += TQString::fromLatin1(buffer, buflen);
} }
/** /**

Loading…
Cancel
Save