summaryrefslogtreecommitdiffstats
path: root/src/document/RosegardenGUIDoc.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-01-22 18:11:56 +0900
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2025-02-03 14:04:22 +0000
commitf44cabe8c88eec154ea9a457b749c5fcd9bed4c3 (patch)
treebca8f3c429d932cb22fb4fe93edb35335f28717c /src/document/RosegardenGUIDoc.cpp
parent06042c0471231bf41b46d4a8744393137beac468 (diff)
downloadrosegarden-f44cabe8c88eec154ea9a457b749c5fcd9bed4c3.tar.gz
rosegarden-f44cabe8c88eec154ea9a457b749c5fcd9bed4c3.zip
Use tdeApp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/document/RosegardenGUIDoc.cpp')
-rw-r--r--src/document/RosegardenGUIDoc.cpp16
1 files changed, 8 insertions, 8 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;