diff options
author | Michele Calgaro <[email protected]> | 2025-01-22 18:06:32 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2025-02-03 23:01:10 +0900 |
commit | a1169ddf04628c0e3c3fcfbfa83f0d3df4512fc7 (patch) | |
tree | 4912d69e025e1d7e6ad08070b66b7dd23570f479 /src/k3b.cpp | |
parent | e65868ce1125ff4eec7d22e5ef767ce7168bea78 (diff) | |
download | k3b-a1169ddf04628c0e3c3fcfbfa83f0d3df4512fc7.tar.gz k3b-a1169ddf04628c0e3c3fcfbfa83f0d3df4512fc7.zip |
Use tdeApp
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/k3b.cpp')
-rw-r--r-- | src/k3b.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/k3b.cpp b/src/k3b.cpp index fb9d6aa..ee8404a 100644 --- a/src/k3b.cpp +++ b/src/k3b.cpp @@ -154,7 +154,7 @@ K3bMainWindow::K3bMainWindow() setPlainCaption( i18n("K3b - The CD and DVD Kreator") ); - m_config = kapp->config(); + m_config = tdeApp->config(); /////////////////////////////////////////////////////////////////// // call inits to invoke all other construction parts @@ -380,7 +380,7 @@ void K3bMainWindow::initView() { // setup main docking things mainDock = createDockWidget( "project_view", SmallIcon("idea"), 0, - kapp->makeStdCaption( i18n("Project View") ), i18n("Project View") ); + tdeApp->makeStdCaption( i18n("Project View") ), i18n("Project View") ); mainDock->setDockSite( KDockWidget::DockCorner ); mainDock->setEnableDocking( KDockWidget::DockNone ); setView( mainDock ); @@ -419,7 +419,7 @@ void K3bMainWindow::initView() // --- Directory Dock -------------------------------------------------------------------------- m_dirTreeDock = createDockWidget( "directory_tree", SmallIcon("folder"), 0, - kapp->makeStdCaption( i18n("Sidepanel") ), i18n("Sidepanel") ); + tdeApp->makeStdCaption( i18n("Sidepanel") ), i18n("Sidepanel") ); m_dirTreeDock->setEnableDocking( KDockWidget::DockCorner ); K3bFileTreeView* sidePanel = new K3bFileTreeView( m_dirTreeDock ); @@ -433,7 +433,7 @@ void K3bMainWindow::initView() // --- Contents Dock --------------------------------------------------------------------------- m_contentsDock = createDockWidget( "contents_view", SmallIcon("idea"), 0, - kapp->makeStdCaption( i18n("Contents View") ), i18n("Contents View") ); + tdeApp->makeStdCaption( i18n("Contents View") ), i18n("Contents View") ); m_contentsDock->setEnableDocking( KDockWidget::DockCorner ); m_dirView = new K3bDirView( sidePanel/*->fileTreeView()*/, m_contentsDock ); m_contentsDock->setWidget( m_dirView ); @@ -616,7 +616,7 @@ void K3bMainWindow::readOptions() void K3bMainWindow::saveProperties( TDEConfig* c ) { // 1. put saved projects in the config - // 2. save every modified project in "~/.trinity/share/apps/k3b/sessions/" + KApp->sessionId() + // 2. save every modified project in "~/.trinity/share/apps/k3b/sessions/" + TDEApp->sessionId() // 3. save the url of the project (might be something like "AudioCD1") in the config // 4. save the status of every project (modified/saved) @@ -673,7 +673,7 @@ void K3bMainWindow::readProperties( TDEConfig* c ) // 1. read all projects from the config // 2. simply open all of themg // 3. reset the saved urls and the modified state - // 4. delete "~/.trinity/share/apps/k3b/sessions/" + KApp->sessionId() + // 4. delete "~/.trinity/share/apps/k3b/sessions/" + TDEApp->sessionId() TQString saveDir = TDEGlobal::dirs()->saveLocation( "appdata", "sessions/" + tqApp->sessionId() + "/", true ); @@ -795,7 +795,7 @@ bool K3bMainWindow::queryClose() // if we are closed by the session manager everything is fine since we store the // current state in saveProperties // - if( kapp->sessionSaving() ) + if( tdeApp->sessionSaving() ) return true; // FIXME: do not close the docs here. Just ask for them to be saved and return false |