diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:49:11 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:49:11 -0600 |
commit | 83fbc82a101309e171089f0d5ed080f82a367345 (patch) | |
tree | c7b61083b6e2d4bfceaace9a7f018181ea36afec /kmid/kmidclient.cpp | |
parent | b248983f92b865ef74636ab5a673ae3a88f79c20 (diff) | |
download | tdemultimedia-83fbc82a101309e171089f0d5ed080f82a367345.tar.gz tdemultimedia-83fbc82a101309e171089f0d5ed080f82a367345.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kmid/kmidclient.cpp')
-rw-r--r-- | kmid/kmidclient.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kmid/kmidclient.cpp b/kmid/kmidclient.cpp index 706e7cbf..ce4a18fd 100644 --- a/kmid/kmidclient.cpp +++ b/kmid/kmidclient.cpp @@ -35,7 +35,7 @@ #include <tqlabel.h> #include <tqfile.h> #include <tqcombobox.h> -#include <tqlayout.h> +#include <layout.h> #include <kapplication.h> #include <kcharsets.h> @@ -96,7 +96,7 @@ kmidClient::kmidClient(TQWidget *parent, KActionCollection *ac, const char *name connect (timebar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(slotSeek(int))); timetags = new QSliderTime(timebar,this); - timetags->setMinimumSize(timetags->tqsizeHint()); + timetags->setMinimumSize(timetags->sizeHint()); qlabelTempo= new TQLabel(i18n("Tempo:"), this,"tempolabel", TQLabel::NoFrame); @@ -108,7 +108,7 @@ kmidClient::kmidClient(TQWidget *parent, KActionCollection *ac, const char *name tempoLCD->setRange(3,999); tempoLCD->setDefaultValue(120); tempoLCD->setUserSetDefaultValue(true); - tempoLCD->setMinimumSize(tempoLCD->tqsizeHint()); + tempoLCD->setMinimumSize(tempoLCD->sizeHint()); connect(tempoLCD,TQT_SIGNAL(valueChanged(double)),this,TQT_SLOT(slotSetTempo(double))); comboSongs = new TQComboBox(FALSE, this,"Songs"); @@ -290,10 +290,10 @@ int kmidClient::openFile(const char *filename) switch (r) { case (-1) : errormsg = - i18n("The file %1 does not exist or cannot be opened.").tqarg(filename); + i18n("The file %1 does not exist or cannot be opened.").arg(filename); break; case (-2) : errormsg = - i18n("The file %1 is not a MIDI file.").tqarg(filename);break; + i18n("The file %1 is not a MIDI file.").arg(filename);break; case (-3) : errormsg = i18n("Ticks per quarter note is negative. Please send this file to larrosa@kde.org");break; case (-4) : errormsg = @@ -301,7 +301,7 @@ int kmidClient::openFile(const char *filename) case (-5) : errormsg = i18n("This file is corrupted or not well built.");break; case (-6) : errormsg = - i18n("%1 is not a regular file.").tqarg(filename);break; + i18n("%1 is not a regular file.").arg(filename);break; default : errormsg = i18n("Unknown error message");break; } KMessageBox::error(this, errormsg); @@ -310,10 +310,10 @@ int kmidClient::openFile(const char *filename) midifile_opened=0L; timebar->setRange(0,240000); timebar->setValue(0); - timetags->tqrepaint(TRUE); + timetags->repaint(TRUE); kdispt->ClearEv(); - kdispt->tqrepaint(TRUE); - tqtopLevelWidget()->setCaption("KMid"); + kdispt->repaint(TRUE); + topLevelWidget()->setCaption("KMid"); return -1; } @@ -327,7 +327,7 @@ int kmidClient::openFile(const char *filename) // noteArray=player->parseNotes(); noteArray=player->noteArray(); timebar->setRange(0,(int)(player->information()->millisecsTotal)); - timetags->tqrepaint(TRUE); + timetags->repaint(TRUE); kdispt->ClearEv(); spev=player->specialEvents(); while (spev) @@ -343,7 +343,7 @@ int kmidClient::openFile(const char *filename) kdispt->CursorToHome(); // kdispt->updateScrollBars(); emit mustRechooseTextEvent(); - kdispt->tqrepaint(TRUE); + kdispt->repaint(TRUE); tempoLCD->display(tempoToMetronomeTempo(m_kMid.pctl->tempo)); currentTempo=tempoLCD->getValue(); tempoLCD->setDefaultValue(tempoToMetronomeTempo(m_kMid.pctl->tempo)*m_kMid.pctl->ratioTempo); @@ -353,7 +353,7 @@ int kmidClient::openFile(const char *filename) char *capt=new char[strlen(fn)+20]; sprintf(capt,"KMid - %s",fn); delete fn; - tqtopLevelWidget()->setCaption(capt); + topLevelWidget()->setCaption(capt); delete capt; timebar->setValue(0); @@ -1129,7 +1129,7 @@ void kmidClient::repaintText(int type) { kdispt->ChangeTypeOfTextEvents(type); typeoftextevents=type; - kdispt->tqrepaint(TRUE); + kdispt->repaint(TRUE); } int kmidClient::ChooseTypeOfTextEvents(void) @@ -1265,12 +1265,12 @@ void kmidClient::slotSelectSong(int i) player->removeSong(); timebar->setRange(0,240000); timebar->setValue(0); - timetags->tqrepaint(TRUE); + timetags->repaint(TRUE); kdispt->ClearEv(); - kdispt->tqrepaint(TRUE); + kdispt->repaint(TRUE); comboSongs->clear(); - comboSongs->tqrepaint(TRUE); - tqtopLevelWidget()->setCaption("KMid"); + comboSongs->repaint(TRUE); + topLevelWidget()->setCaption("KMid"); return; } @@ -1487,7 +1487,7 @@ void kmidClient::slotSetTempo(double value) timebar->setRange(0,(int)(player->information()->millisecsTotal)); timebar->setValue(pausedatmillisec); - timetags->tqrepaint(TRUE); + timetags->repaint(TRUE); kdispt->ClearEv(false); @@ -1522,9 +1522,9 @@ void kmidClient::downloadFinished(KIO::Job *) kapp->exit_loop(); } -TQSize kmidClient::tqsizeHint() const +TQSize kmidClient::sizeHint() const { - TQSize sh = TQWidget::tqsizeHint(); + TQSize sh = TQWidget::sizeHint(); return sh.expandedTo(TQSize(560,420)); } |