diff options
Diffstat (limited to 'src/document/RosegardenGUIDoc.cpp')
-rw-r--r-- | src/document/RosegardenGUIDoc.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/document/RosegardenGUIDoc.cpp b/src/document/RosegardenGUIDoc.cpp index 71c3c2a..9f2bcd6 100644 --- a/src/document/RosegardenGUIDoc.cpp +++ b/src/document/RosegardenGUIDoc.cpp @@ -117,11 +117,11 @@ namespace Rosegarden using namespace BaseProperties; -RosegardenGUIDoc::RosegardenGUIDoc(TQWidget *tqparent, +RosegardenGUIDoc::RosegardenGUIDoc(TQWidget *parent, AudioPluginManager *pluginManager, bool skipAutoload, const char *name) - : TQObject(tqparent, name), + : TQObject(parent, name), m_modified(false), m_autoSaved(false), m_audioPreviewThread(&m_audioFileManager), @@ -321,7 +321,7 @@ bool RosegardenGUIDoc::saveIfModified() return completed; - RosegardenGUIApp *win = (RosegardenGUIApp *)tqparent(); + RosegardenGUIApp *win = (RosegardenGUIApp *)parent(); int wantSave = KMessageBox::warningYesNoCancel (win, @@ -584,7 +584,7 @@ bool RosegardenGUIDoc::openDocument(const TQString& filename, ProgressDialog progressDlg(i18n("Reading file..."), 100, - (TQWidget*)tqparent()); + (TQWidget*)parent()); connect(&progressDlg, TQT_SIGNAL(cancelClicked()), &m_audioFileManager, TQT_SLOT(slotStopPreview())); @@ -1224,7 +1224,7 @@ bool RosegardenGUIDoc::saveDocumentActual(const TQString& filename, progressDlg = new ProgressDialog(i18n("Saving file..."), 100, - (TQWidget*)tqparent()); + (TQWidget*)parent()); progress = progressDlg->progressBar(); progressDlg->setMinimumDuration(500); @@ -1232,7 +1232,7 @@ bool RosegardenGUIDoc::saveDocumentActual(const TQString& filename, } else { - progress = ((RosegardenGUIApp *)tqparent())->getProgressBar(); + progress = ((RosegardenGUIApp *)parent())->getProgressBar(); } // Send out Composition (this includes Tracks, Instruments, Tempo @@ -1556,7 +1556,7 @@ void RosegardenGUIDoc::saveSegment(TQTextStream& outStream, Segment *segment, bool RosegardenGUIDoc::isSequencerRunning() { - RosegardenGUIApp* parentApp = dynamic_cast<RosegardenGUIApp*>(tqparent()); + RosegardenGUIApp* parentApp = dynamic_cast<RosegardenGUIApp*>(parent()); if (!parentApp) { RG_DEBUG << "RosegardenGUIDoc::isSequencerRunning() : parentApp == 0\n"; return false; @@ -2317,7 +2317,7 @@ RosegardenGUIDoc::syncDevices() } delete proc; - RosegardenGUIApp *app = (RosegardenGUIApp*)tqparent(); + RosegardenGUIApp *app = (RosegardenGUIApp*)parent(); app->slotSequencerExited(0); return ; } @@ -2786,7 +2786,7 @@ RosegardenGUIDoc::finalizeAudioFile(InstrumentId iid) // Create a progress dialog // ProgressDialog *progressDlg = new ProgressDialog - (i18n("Generating audio preview..."), 100, (TQWidget*)tqparent()); + (i18n("Generating audio preview..."), 100, (TQWidget*)parent()); progressDlg->setAutoClose(false); progressDlg->setAutoReset(false); progressDlg->show(); @@ -3070,7 +3070,7 @@ RosegardenGUIDoc::clearAllPlugins() Clipboard* RosegardenGUIDoc::getClipboard() { - RosegardenGUIApp *app = (RosegardenGUIApp*)tqparent(); + RosegardenGUIApp *app = (RosegardenGUIApp*)parent(); return app->getClipboard(); } |