summaryrefslogtreecommitdiffstats
path: root/kolourpaint/kpmainwindow_file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kolourpaint/kpmainwindow_file.cpp')
-rw-r--r--kolourpaint/kpmainwindow_file.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kolourpaint/kpmainwindow_file.cpp b/kolourpaint/kpmainwindow_file.cpp
index bc408f2c..d9da99d2 100644
--- a/kolourpaint/kpmainwindow_file.cpp
+++ b/kolourpaint/kpmainwindow_file.cpp
@@ -67,41 +67,41 @@ void kpMainWindow::setupFileMenuActions ()
#endif
TDEActionCollection *ac = actionCollection ();
- m_actionNew = KStdAction::openNew (TQT_TQOBJECT(this), TQT_SLOT (slotNew ()), ac);
- m_actionOpen = KStdAction::open (TQT_TQOBJECT(this), TQT_SLOT (slotOpen ()), ac);
+ m_actionNew = KStdAction::openNew (this, TQ_SLOT (slotNew ()), ac);
+ m_actionOpen = KStdAction::open (this, TQ_SLOT (slotOpen ()), ac);
- m_actionOpenRecent = KStdAction::openRecent (TQT_TQOBJECT(this), TQT_SLOT (slotOpenRecent (const KURL &)), ac);
- m_actionOpenRecent->loadEntries (kapp->config ());
+ m_actionOpenRecent = KStdAction::openRecent (this, TQ_SLOT (slotOpenRecent (const KURL &)), ac);
+ m_actionOpenRecent->loadEntries (tdeApp->config ());
#if DEBUG_KP_MAIN_WINDOW
kdDebug () << "\trecent URLs=" << m_actionOpenRecent->items () << endl;
#endif
- m_actionSave = KStdAction::save (TQT_TQOBJECT(this), TQT_SLOT (slotSave ()), ac);
- m_actionSaveAs = KStdAction::saveAs (TQT_TQOBJECT(this), TQT_SLOT (slotSaveAs ()), ac);
+ m_actionSave = KStdAction::save (this, TQ_SLOT (slotSave ()), ac);
+ m_actionSaveAs = KStdAction::saveAs (this, TQ_SLOT (slotSaveAs ()), ac);
m_actionExport = new TDEAction (i18n ("E&xport..."), 0,
- TQT_TQOBJECT(this), TQT_SLOT (slotExport ()), ac, "file_export");
+ this, TQ_SLOT (slotExport ()), ac, "file_export");
m_actionScan = new TDEAction (i18n ("Scan..."), SmallIcon ("scanner"), 0,
- TQT_TQOBJECT(this), TQT_SLOT (slotScan ()), ac, "file_scan");
+ this, TQ_SLOT (slotScan ()), ac, "file_scan");
- //m_actionRevert = KStdAction::revert (this, TQT_SLOT (slotRevert ()), ac);
+ //m_actionRevert = KStdAction::revert (this, TQ_SLOT (slotRevert ()), ac);
m_actionReload = new TDEAction (i18n ("Reloa&d"), TDEStdAccel::reload (),
- TQT_TQOBJECT(this), TQT_SLOT (slotReload ()), ac, "file_revert");
+ this, TQ_SLOT (slotReload ()), ac, "file_revert");
slotEnableReload ();
- m_actionPrint = KStdAction::print (TQT_TQOBJECT(this), TQT_SLOT (slotPrint ()), ac);
- m_actionPrintPreview = KStdAction::printPreview (TQT_TQOBJECT(this), TQT_SLOT (slotPrintPreview ()), ac);
+ m_actionPrint = KStdAction::print (this, TQ_SLOT (slotPrint ()), ac);
+ m_actionPrintPreview = KStdAction::printPreview (this, TQ_SLOT (slotPrintPreview ()), ac);
- m_actionMail = KStdAction::mail (TQT_TQOBJECT(this), TQT_SLOT (slotMail ()), ac);
+ m_actionMail = KStdAction::mail (this, TQ_SLOT (slotMail ()), ac);
m_actionSetAsWallpaperCentered = new TDEAction (i18n ("Set as Wa&llpaper (Centered)"), 0,
- TQT_TQOBJECT(this), TQT_SLOT (slotSetAsWallpaperCentered ()), ac, "file_set_as_wallpaper_centered");
+ this, TQ_SLOT (slotSetAsWallpaperCentered ()), ac, "file_set_as_wallpaper_centered");
m_actionSetAsWallpaperTiled = new TDEAction (i18n ("Set as Wallpaper (&Tiled)"), 0,
- TQT_TQOBJECT(this), TQT_SLOT (slotSetAsWallpaperTiled ()), ac, "file_set_as_wallpaper_tiled");
+ this, TQ_SLOT (slotSetAsWallpaperTiled ()), ac, "file_set_as_wallpaper_tiled");
- m_actionClose = KStdAction::close (TQT_TQOBJECT(this), TQT_SLOT (slotClose ()), ac);
- m_actionQuit = KStdAction::quit (TQT_TQOBJECT(this), TQT_SLOT (slotQuit ()), ac);
+ m_actionClose = KStdAction::close (this, TQ_SLOT (slotClose ()), ac);
+ m_actionQuit = KStdAction::quit (this, TQ_SLOT (slotQuit ()), ac);
m_scanDialog = 0;
@@ -146,7 +146,7 @@ void kpMainWindow::addRecentURL (const KURL &url)
return;
- TDEConfig *cfg = kapp->config ();
+ TDEConfig *cfg = tdeApp->config ();
// TDEConfig::readEntry() does not actually reread from disk, hence doesn't
// realise what other processes have done e.g. Settings / Show Path
@@ -232,9 +232,9 @@ TQSize kpMainWindow::defaultDocSize () const
{
// TDEConfig::readEntry() does not actually reread from disk, hence doesn't
// realise what other processes have done e.g. Settings / Show Path
- kapp->config ()->reparseConfiguration ();
+ tdeApp->config ()->reparseConfiguration ();
- TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupGeneral);
+ TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupGeneral);
TDEConfigBase *cfg = cfgGroupSaver.config ();
TQSize docSize = cfg->readSizeEntry (kpSettingLastDocSize);
@@ -261,7 +261,7 @@ void kpMainWindow::saveDefaultDocSize (const TQSize &size)
kdDebug () << "\tCONFIG: saving Last Doc Size = " << size << endl;
#endif
- TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupGeneral);
+ TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupGeneral);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingLastDocSize, size);
@@ -451,8 +451,8 @@ void kpMainWindow::slotScan ()
#if DEBUG_KP_MAIN_WINDOW
kdDebug () << "\tcreated scanDialog=" << m_scanDialog << endl;
#endif
- connect (m_scanDialog, TQT_SIGNAL (finalImage (const TQImage &, int)),
- TQT_SLOT (slotScanned (const TQImage &, int)));
+ connect (m_scanDialog, TQ_SIGNAL (finalImage (const TQImage &, int)),
+ TQ_SLOT (slotScanned (const TQImage &, int)));
}
@@ -605,11 +605,11 @@ KURL kpMainWindow::askForSaveURL (const TQString &caption,
#define SETUP_READ_CFG() \
if (!reparsedConfiguration) \
{ \
- kapp->config ()->reparseConfiguration (); \
+ tdeApp->config ()->reparseConfiguration (); \
reparsedConfiguration = true; \
} \
\
- TDEConfigGroupSaver cfgGroupSaver (kapp->config (), forcedSaveOptionsGroup); \
+ TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), forcedSaveOptionsGroup); \
TDEConfigBase *cfg = cfgGroupSaver.config ();
@@ -704,8 +704,8 @@ KURL kpMainWindow::askForSaveURL (const TQString &caption,
if (localOnly)
fd.setMode (KFile::File | KFile::LocalOnly);
- connect (&fd, TQT_SIGNAL (filterChanged (const TQString &)),
- saveOptionsWidget, TQT_SLOT (setMimeType (const TQString &)));
+ connect (&fd, TQ_SIGNAL (filterChanged (const TQString &)),
+ saveOptionsWidget, TQ_SLOT (setMimeType (const TQString &)));
if (fd.exec ())
@@ -715,7 +715,7 @@ KURL kpMainWindow::askForSaveURL (const TQString &caption,
newSaveOptions.printDebug ("\tnewSaveOptions");
#endif
- TDEConfigGroupSaver cfgGroupSaver (kapp->config (), forcedSaveOptionsGroup);
+ TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), forcedSaveOptionsGroup);
TDEConfigBase *cfg = cfgGroupSaver.config ();
// Save options user forced - probably want to use them in future
@@ -1262,7 +1262,7 @@ void kpMainWindow::slotMail ()
}
}
- kapp->invokeMailer (
+ tdeApp->invokeMailer (
TQString()/*to*/,
TQString()/*cc*/,
TQString()/*bcc*/,