summaryrefslogtreecommitdiffstats
path: root/kalarm/functions.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit36a36a5c1015aa0d03f4515c401e907ddb9d6291 (patch)
tree0212ba6d2c749043134005a41f2bd0379619d40f /kalarm/functions.cpp
parent4c6f8d69e2d1501837affb472c4eb8fec4462240 (diff)
downloadtdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.tar.gz
tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/functions.cpp')
-rw-r--r--kalarm/functions.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kalarm/functions.cpp b/kalarm/functions.cpp
index 2c44e161f..d7a6383f2 100644
--- a/kalarm/functions.cpp
+++ b/kalarm/functions.cpp
@@ -498,7 +498,7 @@ UpdatetqStatus enableEvent(KAEvent& event, AlarmListView* selectionView, bool en
/******************************************************************************
* Display an error message about an error saving an event.
*/
-void displayUpdateError(TQWidget* tqparent, UpdatetqStatus, UpdateError code, int nAlarms)
+void displayUpdateError(TQWidget* parent, UpdatetqStatus, UpdateError code, int nAlarms)
{
TQString errmsg;
switch (code)
@@ -519,13 +519,13 @@ void displayUpdateError(TQWidget* tqparent, UpdatetqStatus, UpdateError code, in
errmsg = i18n("Error saving alarm template");
break;
}
- KMessageBox::error(tqparent, errmsg);
+ KMessageBox::error(parent, errmsg);
}
/******************************************************************************
* Display an error message corresponding to a specified alarm update error code.
*/
-void displayKOrgUpdateError(TQWidget* tqparent, KOrgUpdateError code, int nAlarms)
+void displayKOrgUpdateError(TQWidget* parent, KOrgUpdateError code, int nAlarms)
{
TQString errmsg;
switch (code)
@@ -542,7 +542,7 @@ void displayKOrgUpdateError(TQWidget* tqparent, KOrgUpdateError code, int nAlarm
: i18n("Unable to delete alarm from KOrganizer");
break;
}
- KMessageBox::error(tqparent, errmsg);
+ KMessageBox::error(parent, errmsg);
}
/******************************************************************************
@@ -628,16 +628,16 @@ TQValueList<KAEvent> templateList()
* Prompt the user to re-enable alarms if they are currently disabled, and if
* it's an email alarm, warn if no 'From' email address is configured.
*/
-void outputAlarmWarnings(TQWidget* tqparent, const KAEvent* event)
+void outputAlarmWarnings(TQWidget* parent, const KAEvent* event)
{
if (event && event->action() == KAEvent::EMAIL
&& Preferences::emailAddress().isEmpty())
- KMessageBox::information(tqparent, i18n("Please set the 'From' email address...",
+ KMessageBox::information(parent, i18n("Please set the 'From' email address...",
"%1\nPlease set it in the Preferences dialog.").tqarg(KAMail::i18n_NeedFromEmailAddress()));
if (!Daemon::monitoringAlarms())
{
- if (KMessageBox::warningYesNo(tqparent, i18n("Alarms are currently disabled.\nDo you want to enable alarms now?"),
+ if (KMessageBox::warningYesNo(parent, i18n("Alarms are currently disabled.\nDo you want to enable alarms now?"),
TQString(), i18n("Enable"), i18n("Keep Disabled"),
TQString::tqfromLatin1("EditEnableAlarms"))
== KMessageBox::Yes)
@@ -868,12 +868,12 @@ FileType fileType(const TQString& mimetype)
* Reply = URL selected. If none is selected, URL.isEmpty() is true.
*/
TQString browseFile(const TQString& caption, TQString& defaultDir, const TQString& initialFile,
- const TQString& filter, int mode, TQWidget* tqparent, const char* name)
+ const TQString& filter, int mode, TQWidget* parent, const char* name)
{
TQString initialDir = !initialFile.isEmpty() ? TQString(initialFile).remove(TQRegExp("/[^/]*$"))
: !defaultDir.isEmpty() ? defaultDir
: TQDir::homeDirPath();
- KFileDialog fileDlg(initialDir, filter, tqparent, name, true);
+ KFileDialog fileDlg(initialDir, filter, parent, name, true);
fileDlg.setOperationMode(mode & KFile::ExistingOnly ? KFileDialog::Opening : KFileDialog::Saving);
fileDlg.setMode(KFile::File | mode);
fileDlg.setCaption(caption);