diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-22 18:11:56 +0900 |
|---|---|---|
| committer | TDE Gitea <gitea@mirror.git.trinitydesktop.org> | 2025-02-03 14:04:22 +0000 |
| commit | f44cabe8c88eec154ea9a457b749c5fcd9bed4c3 (patch) | |
| tree | bca8f3c429d932cb22fb4fe93edb35335f28717c /src/document | |
| parent | 06042c0471231bf41b46d4a8744393137beac468 (diff) | |
| download | rosegarden-f44cabe8c88eec154ea9a457b749c5fcd9bed4c3.tar.gz rosegarden-f44cabe8c88eec154ea9a457b749c5fcd9bed4c3.zip | |
Use tdeApp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/document')
| -rw-r--r-- | src/document/RosegardenGUIDoc.cpp | 16 | ||||
| -rw-r--r-- | src/document/io/LilyPondExporter.cpp | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/document/RosegardenGUIDoc.cpp b/src/document/RosegardenGUIDoc.cpp index 1208ccd..db5a922 100644 --- a/src/document/RosegardenGUIDoc.cpp +++ b/src/document/RosegardenGUIDoc.cpp @@ -167,7 +167,7 @@ RosegardenGUIDoc::~RosegardenGUIDoc() unsigned int RosegardenGUIDoc::getAutoSavePeriod() const { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup(GeneralOptionsConfigGroup); return config->readUnsignedNumEntry("autosaveinterval", 60); } @@ -281,7 +281,7 @@ TQString RosegardenGUIDoc::getAutoSaveFileName() if (filename.isEmpty()) filename = TQDir::currentDirPath() + "/" + getTitle(); - TQString autoSaveFileName = kapp->tempSaveName(filename); + TQString autoSaveFileName = tdeApp->tempSaveName(filename); return autoSaveFileName; } @@ -1102,7 +1102,7 @@ void RosegardenGUIDoc::initialiseStudio() // Now commit all the remaining changes StudioControl::setStudioObjectProperties(ids, properties, values); - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup(SequencerOptionsConfigGroup); bool faderOuts = config->readBoolEntry("audiofaderouts", false); @@ -1961,7 +1961,7 @@ RosegardenGUIDoc::insertRecordedMidi(const MappedComposition &mC) if (haveNotes) { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup(GeneralOptionsConfigGroup); int tracking = config->readUnsignedNumEntry("recordtracking", 0); @@ -2327,9 +2327,9 @@ RosegardenGUIDoc::syncDevices() // when changed in the configuration dialog. static bool setTimer = false; if (!setTimer) { - kapp->config()->setGroup(SequencerOptionsConfigGroup); + tdeApp->config()->setGroup(SequencerOptionsConfigGroup); TQString currentTimer = getCurrentTimer(); - currentTimer = kapp->config()->readEntry("timer", currentTimer); + currentTimer = tdeApp->config()->readEntry("timer", currentTimer); setCurrentTimer(currentTimer); setTimer = true; } @@ -2369,8 +2369,8 @@ RosegardenGUIDoc::syncDevices() // Force update of view on current track selection // - kapp->config()->setGroup(GeneralOptionsConfigGroup); - bool opt = kapp->config()->readBoolEntry("Show Track labels", true); + tdeApp->config()->setGroup(GeneralOptionsConfigGroup); + bool opt = tdeApp->config()->readBoolEntry("Show Track labels", true); TrackLabel::InstrumentTrackLabels labels = TrackLabel::ShowInstrument; if (opt) labels = TrackLabel::ShowTrack; diff --git a/src/document/io/LilyPondExporter.cpp b/src/document/io/LilyPondExporter.cpp index 40d9e38..d1fbac3 100644 --- a/src/document/io/LilyPondExporter.cpp +++ b/src/document/io/LilyPondExporter.cpp @@ -120,7 +120,7 @@ void LilyPondExporter::readConfigVariables(void) { // grab config info - TDEConfig *cfg = kapp->config(); + TDEConfig *cfg = tdeApp->config(); cfg->setGroup(NotationViewConfigGroup); m_paperSize = cfg->readUnsignedNumEntry("lilypapersize", PAPER_A4); |
