summaryrefslogtreecommitdiffstats
path: root/kalarm
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm')
-rw-r--r--kalarm/Makefile.am2
-rw-r--r--kalarm/alarmcalendar.cpp40
-rw-r--r--kalarm/alarmevent.cpp96
-rw-r--r--kalarm/alarmevent.h8
-rw-r--r--kalarm/alarmlistview.cpp20
-rw-r--r--kalarm/alarmlistview.h2
-rw-r--r--kalarm/alarmtext.cpp16
-rw-r--r--kalarm/alarmtimewidget.cpp40
-rw-r--r--kalarm/alarmtimewidget.h2
-rw-r--r--kalarm/birthdaydlg.cpp42
-rw-r--r--kalarm/calendarcompat.cpp10
-rw-r--r--kalarm/daemon.cpp20
-rw-r--r--kalarm/dcophandler.cpp122
-rw-r--r--kalarm/deferdlg.cpp6
-rw-r--r--kalarm/editdlg.cpp192
-rw-r--r--kalarm/eventlistviewbase.cpp4
-rw-r--r--kalarm/find.cpp20
-rw-r--r--kalarm/fontcolour.cpp24
-rw-r--r--kalarm/fontcolourbutton.cpp18
-rw-r--r--kalarm/functions.cpp40
-rw-r--r--kalarm/kalarmapp.cpp184
-rw-r--r--kalarm/kalarmd/adcalendar.cpp2
-rw-r--r--kalarm/kalarmd/adconfigdata.cpp14
-rw-r--r--kalarm/kalarmd/alarmdaemon.cpp18
-rw-r--r--kalarm/kamail.cpp70
-rw-r--r--kalarm/kamail.h2
-rw-r--r--kalarm/karecurrence.cpp4
-rw-r--r--kalarm/latecancel.cpp20
-rw-r--r--kalarm/latecancel.h4
-rw-r--r--kalarm/lib/checkbox.h2
-rw-r--r--kalarm/lib/colourcombo.cpp4
-rw-r--r--kalarm/lib/colourlist.h4
-rw-r--r--kalarm/lib/dateedit.cpp2
-rw-r--r--kalarm/lib/dateedit.h2
-rw-r--r--kalarm/lib/label.cpp2
-rw-r--r--kalarm/lib/lineedit.cpp8
-rw-r--r--kalarm/lib/lineedit.h6
-rw-r--r--kalarm/lib/messagebox.cpp6
-rw-r--r--kalarm/lib/radiobutton.h2
-rw-r--r--kalarm/lib/spinbox.cpp4
-rw-r--r--kalarm/lib/spinbox2.cpp22
-rw-r--r--kalarm/lib/spinbox2.h24
-rw-r--r--kalarm/lib/spinbox2private.h2
-rw-r--r--kalarm/lib/synchtimer.cpp4
-rw-r--r--kalarm/lib/timeedit.cpp4
-rw-r--r--kalarm/lib/timeedit.h2
-rw-r--r--kalarm/lib/timeperiod.cpp4
-rw-r--r--kalarm/lib/timespinbox.cpp14
-rw-r--r--kalarm/lib/timespinbox.h4
-rw-r--r--kalarm/mainwindow.cpp48
-rw-r--r--kalarm/messagewin.cpp210
-rw-r--r--kalarm/messagewin.h2
-rw-r--r--kalarm/prefdlg.cpp244
-rw-r--r--kalarm/preferences.cpp148
-rw-r--r--kalarm/recurrenceedit.cpp188
-rw-r--r--kalarm/recurrenceeditprivate.h2
-rw-r--r--kalarm/reminder.cpp12
-rw-r--r--kalarm/repetition.cpp28
-rw-r--r--kalarm/sounddlg.cpp40
-rw-r--r--kalarm/soundpicker.cpp6
-rw-r--r--kalarm/specialactions.cpp10
-rw-r--r--kalarm/templatedlg.cpp16
-rw-r--r--kalarm/timeselector.cpp10
-rw-r--r--kalarm/traywindow.cpp4
-rw-r--r--kalarm/undo.cpp12
-rw-r--r--kalarm/undo.h2
66 files changed, 1073 insertions, 1073 deletions
diff --git a/kalarm/Makefile.am b/kalarm/Makefile.am
index af4896a29..909198b79 100644
--- a/kalarm/Makefile.am
+++ b/kalarm/Makefile.am
@@ -21,7 +21,7 @@ kalarm_SOURCES = birthdaydlg.cpp main.cpp alarmevent.cpp editdlg.cpp \
templatelistview.cpp templatepickdlg.cpp templatedlg.cpp \
templatemenuaction.cpp latecancel.cpp repetition.cpp alarmtext.cpp \
emailidcombo.cpp find.cpp pickfileradio.cpp calendarcompat.cpp
-kalarm_LDFLAGS = $(all_libraries) $(KDE_RPATH)
+kalarm_LDFLAGS = $(all_libraries) $(KDE_RPATH) -L$(top_builddir)/libkdenetwork/qgpgme
if include_ARTS
ARTSLIB = -lartskde
endif
diff --git a/kalarm/alarmcalendar.cpp b/kalarm/alarmcalendar.cpp
index 4b03f3050..274bf0c81 100644
--- a/kalarm/alarmcalendar.cpp
+++ b/kalarm/alarmcalendar.cpp
@@ -61,17 +61,17 @@ using namespace KCal;
TQString AlarmCalendar::icalProductId()
{
- return TQString::fromLatin1("-//K Desktop Environment//NONSGML " KALARM_NAME " %1//EN").arg(KAlarm::currentCalendarVersionString());
+ return TQString::tqfromLatin1("-//K Desktop Environment//NONSGML " KALARM_NAME " %1//EN").arg(KAlarm::currentCalendarVersionString());
}
static const KAEvent::Status eventTypes[AlarmCalendar::NCALS] = {
KAEvent::ACTIVE, KAEvent::EXPIRED, KAEvent::DISPLAYING, KAEvent::TEMPLATE
};
static const TQString calendarNames[AlarmCalendar::NCALS] = {
- TQString::fromLatin1("calendar.ics"),
- TQString::fromLatin1("expired.ics"),
- TQString::fromLatin1("displaying.ics"),
- TQString::fromLatin1("template.ics")
+ TQString::tqfromLatin1("calendar.ics"),
+ TQString::tqfromLatin1("expired.ics"),
+ TQString::tqfromLatin1("displaying.ics"),
+ TQString::tqfromLatin1("template.ics")
};
static KStaticDeleter<AlarmCalendar> calendarDeleter[AlarmCalendar::NCALS]; // ensure that the calendar destructors are called
@@ -83,7 +83,7 @@ AlarmCalendar* AlarmCalendar::mCalendars[NCALS] = { 0, 0, 0, 0 };
* There are 4 calendars:
* 1) A user-independent one containing the active alarms;
* 2) A historical one containing expired alarms;
-* 3) A user-specific one which contains details of alarms which are currently
+* 3) A user-specific one which tqcontains details of alarms which are currently
* being displayed to that user and which have not yet been acknowledged;
* 4) One containing alarm templates.
* Reply = true if success, false if calendar name error.
@@ -91,10 +91,10 @@ AlarmCalendar* AlarmCalendar::mCalendars[NCALS] = { 0, 0, 0, 0 };
bool AlarmCalendar::initialiseCalendars()
{
KConfig* config = kapp->config();
- config->setGroup(TQString::fromLatin1("General"));
- TQString activeKey = TQString::fromLatin1("Calendar");
- TQString expiredKey = TQString::fromLatin1("ExpiredCalendar");
- TQString templateKey = TQString::fromLatin1("TemplateCalendar");
+ config->setGroup(TQString::tqfromLatin1("General"));
+ TQString activeKey = TQString::tqfromLatin1("Calendar");
+ TQString expiredKey = TQString::tqfromLatin1("ExpiredCalendar");
+ TQString templateKey = TQString::tqfromLatin1("TemplateCalendar");
TQString displayCal, activeCal, expiredCal, templateCal;
calendarDeleter[ACTIVE].setObject(mCalendars[ACTIVE], createCalendar(ACTIVE, config, activeCal, activeKey));
calendarDeleter[EXPIRED].setObject(mCalendars[EXPIRED], createCalendar(EXPIRED, config, expiredCal, expiredKey));
@@ -152,8 +152,8 @@ bool AlarmCalendar::initialiseCalendars()
*/
AlarmCalendar* AlarmCalendar::createCalendar(CalID type, KConfig* config, TQString& writePath, const TQString& configKey)
{
- static TQRegExp vcsRegExp(TQString::fromLatin1("\\.vcs$"));
- static TQString ical = TQString::fromLatin1(".ics");
+ static TQRegExp vcsRegExp(TQString::tqfromLatin1("\\.vcs$"));
+ static TQString ical = TQString::tqfromLatin1(".ics");
if (configKey.isNull())
{
@@ -164,7 +164,7 @@ AlarmCalendar* AlarmCalendar::createCalendar(CalID type, KConfig* config, TQStri
{
TQString readPath = config->readPathEntry(configKey, locateLocal("appdata", calendarNames[type]));
writePath = readPath;
- writePath.replace(vcsRegExp, ical);
+ writePath.tqreplace(vcsRegExp, ical);
return new AlarmCalendar(readPath, type, writePath, configKey);
}
}
@@ -261,7 +261,7 @@ bool AlarmCalendar::open()
kdDebug(5950) << "AlarmCalendar::open(" << mUrl.prettyURL() << ")\n";
if (!mCalendar)
- mCalendar = new CalendarLocal(TQString::fromLatin1("UTC"));
+ mCalendar = new CalendarLocal(TQString::tqfromLatin1("UTC"));
mCalendar->setLocalTime(); // write out using local time (i.e. no time zone)
// Check for file's existence, assuming that it does exist when uncertain,
@@ -404,7 +404,7 @@ bool AlarmCalendar::saveCal(const TQString& newFile)
if (!mConfigKey.isNull())
{
KConfig* config = kapp->config();
- config->setGroup(TQString::fromLatin1("General"));
+ config->setGroup(TQString::tqfromLatin1("General"));
config->writePathEntry(mConfigKey, mICalUrl.path());
config->sync();
}
@@ -445,8 +445,8 @@ void AlarmCalendar::close()
*/
bool AlarmCalendar::importAlarms(TQWidget* parent)
{
- KURL url = KFileDialog::getOpenURL(TQString::fromLatin1(":importalarms"),
- TQString::fromLatin1("*.vcs *.ics|%1").arg(i18n("Calendar Files")), parent);
+ KURL url = KFileDialog::getOpenURL(TQString::tqfromLatin1(":importalarms"),
+ TQString::tqfromLatin1("*.vcs *.ics|%1").arg(i18n("Calendar Files")), parent);
if (url.isEmpty())
{
kdError(5950) << "AlarmCalendar::importAlarms(): Empty URL" << endl;
@@ -484,7 +484,7 @@ bool AlarmCalendar::importAlarms(TQWidget* parent)
}
// Read the calendar and add its alarms to the current calendars
- CalendarLocal cal(TQString::fromLatin1("UTC"));
+ CalendarLocal cal(TQString::tqfromLatin1("UTC"));
cal.setLocalTime(); // write out using local time (i.e. no time zone)
success = cal.load(filename);
if (!success)
@@ -616,7 +616,7 @@ void AlarmCalendar::convertToICal()
if (!mConfigKey.isNull())
{
KConfig* config = kapp->config();
- config->setGroup(TQString::fromLatin1("General"));
+ config->setGroup(TQString::tqfromLatin1("General"));
config->writePathEntry(mConfigKey, mICalUrl.path());
config->sync();
}
@@ -688,7 +688,7 @@ void AlarmCalendar::purgeIfQueued()
{
kdDebug(5950) << "AlarmCalendar::purgeIfQueued(" << mPurgeDaysQueued << ")\n";
bool changed = false;
- TQDate cutoff = TQDate::currentDate().addDays(-mPurgeDaysQueued);
+ TQDate cutoff = TQDate::tqcurrentDate().addDays(-mPurgeDaysQueued);
Event::List events = mCalendar->rawEvents();
for (Event::List::ConstIterator it = events.begin(); it != events.end(); ++it)
{
diff --git a/kalarm/alarmevent.cpp b/kalarm/alarmevent.cpp
index 34ce46a29..52206342b 100644
--- a/kalarm/alarmevent.cpp
+++ b/kalarm/alarmevent.cpp
@@ -44,7 +44,7 @@ const TQCString APPNAME("KALARM");
// KAlarm version which first used the current calendar/event format.
// If this changes, KAEvent::convertKCalEvents() must be changed correspondingly.
// The string version is the KAlarm version string used in the calendar file.
-TQString KAEvent::calVersionString() { return TQString::fromLatin1("1.5.0"); }
+TQString KAEvent::calVersionString() { return TQString::tqfromLatin1("1.5.0"); }
int KAEvent::calVersion() { return KAlarm::Version(1,5,0); }
// Custom calendar properties.
@@ -54,16 +54,16 @@ static const TQCString NEXT_RECUR_PROPERTY("NEXTRECUR"); // X-KDE-KALARM-NEX
static const TQCString REPEAT_PROPERTY("REPEAT"); // X-KDE-KALARM-REPEAT property
// - General alarm properties
static const TQCString TYPE_PROPERTY("TYPE"); // X-KDE-KALARM-TYPE property
-static const TQString FILE_TYPE = TQString::fromLatin1("FILE");
-static const TQString AT_LOGIN_TYPE = TQString::fromLatin1("LOGIN");
-static const TQString REMINDER_TYPE = TQString::fromLatin1("REMINDER");
-static const TQString REMINDER_ONCE_TYPE = TQString::fromLatin1("REMINDER_ONCE");
-static const TQString ARCHIVE_REMINDER_ONCE_TYPE = TQString::fromLatin1("ONCE");
-static const TQString TIME_DEFERRAL_TYPE = TQString::fromLatin1("DEFERRAL");
-static const TQString DATE_DEFERRAL_TYPE = TQString::fromLatin1("DATE_DEFERRAL");
-static const TQString DISPLAYING_TYPE = TQString::fromLatin1("DISPLAYING"); // used only in displaying calendar
-static const TQString PRE_ACTION_TYPE = TQString::fromLatin1("PRE");
-static const TQString POST_ACTION_TYPE = TQString::fromLatin1("POST");
+static const TQString FILE_TYPE = TQString::tqfromLatin1("FILE");
+static const TQString AT_LOGIN_TYPE = TQString::tqfromLatin1("LOGIN");
+static const TQString REMINDER_TYPE = TQString::tqfromLatin1("REMINDER");
+static const TQString REMINDER_ONCE_TYPE = TQString::tqfromLatin1("REMINDER_ONCE");
+static const TQString ARCHIVE_REMINDER_ONCE_TYPE = TQString::tqfromLatin1("ONCE");
+static const TQString TIME_DEFERRAL_TYPE = TQString::tqfromLatin1("DEFERRAL");
+static const TQString DATE_DEFERRAL_TYPE = TQString::tqfromLatin1("DATE_DEFERRAL");
+static const TQString DISPLAYING_TYPE = TQString::tqfromLatin1("DISPLAYING"); // used only in displaying calendar
+static const TQString PRE_ACTION_TYPE = TQString::tqfromLatin1("PRE");
+static const TQString POST_ACTION_TYPE = TQString::tqfromLatin1("POST");
static const TQCString NEXT_REPEAT_PROPERTY("NEXTREPEAT"); // X-KDE-KALARM-NEXTREPEAT property
// - Display alarm properties
static const TQCString FONT_COLOUR_PROPERTY("FONTCOLOR"); // X-KDE-KALARM-FONTCOLOR property
@@ -74,27 +74,27 @@ static const TQCString VOLUME_PROPERTY("VOLUME"); // X-KDE-KALARM-VOL
static const TQCString SPEAK_PROPERTY("SPEAK"); // X-KDE-KALARM-SPEAK property
// Event categories
-static const TQString DATE_ONLY_CATEGORY = TQString::fromLatin1("DATE");
-static const TQString EMAIL_BCC_CATEGORY = TQString::fromLatin1("BCC");
-static const TQString CONFIRM_ACK_CATEGORY = TQString::fromLatin1("ACKCONF");
-static const TQString LATE_CANCEL_CATEGORY = TQString::fromLatin1("LATECANCEL;");
-static const TQString AUTO_CLOSE_CATEGORY = TQString::fromLatin1("LATECLOSE;");
-static const TQString TEMPL_AFTER_TIME_CATEGORY = TQString::fromLatin1("TMPLAFTTIME;");
-static const TQString KMAIL_SERNUM_CATEGORY = TQString::fromLatin1("KMAIL:");
-static const TQString KORGANIZER_CATEGORY = TQString::fromLatin1("KORG");
-static const TQString DEFER_CATEGORY = TQString::fromLatin1("DEFER;");
-static const TQString ARCHIVE_CATEGORY = TQString::fromLatin1("SAVE");
-static const TQString ARCHIVE_CATEGORIES = TQString::fromLatin1("SAVE:");
-static const TQString LOG_CATEGORY = TQString::fromLatin1("LOG:");
-static const TQString xtermURL = TQString::fromLatin1("xterm:");
+static const TQString DATE_ONLY_CATEGORY = TQString::tqfromLatin1("DATE");
+static const TQString EMAIL_BCC_CATEGORY = TQString::tqfromLatin1("BCC");
+static const TQString CONFIRM_ACK_CATEGORY = TQString::tqfromLatin1("ACKCONF");
+static const TQString LATE_CANCEL_CATEGORY = TQString::tqfromLatin1("LATECANCEL;");
+static const TQString AUTO_CLOSE_CATEGORY = TQString::tqfromLatin1("LATECLOSE;");
+static const TQString TEMPL_AFTER_TIME_CATEGORY = TQString::tqfromLatin1("TMPLAFTTIME;");
+static const TQString KMAIL_SERNUM_CATEGORY = TQString::tqfromLatin1("KMAIL:");
+static const TQString KORGANIZER_CATEGORY = TQString::tqfromLatin1("KORG");
+static const TQString DEFER_CATEGORY = TQString::tqfromLatin1("DEFER;");
+static const TQString ARCHIVE_CATEGORY = TQString::tqfromLatin1("SAVE");
+static const TQString ARCHIVE_CATEGORIES = TQString::tqfromLatin1("SAVE:");
+static const TQString LOG_CATEGORY = TQString::tqfromLatin1("LOG:");
+static const TQString xtermURL = TQString::tqfromLatin1("xterm:");
// Event status strings
-static const TQString DISABLED_STATUS = TQString::fromLatin1("DISABLED");
+static const TQString DISABLED_STATUS = TQString::tqfromLatin1("DISABLED");
-static const TQString EXPIRED_UID = TQString::fromLatin1("-exp-");
-static const TQString DISPLAYING_UID = TQString::fromLatin1("-disp-");
-static const TQString TEMPLATE_UID = TQString::fromLatin1("-tmpl-");
-static const TQString KORGANIZER_UID = TQString::fromLatin1("-korg-");
+static const TQString EXPIRED_UID = TQString::tqfromLatin1("-exp-");
+static const TQString DISPLAYING_UID = TQString::tqfromLatin1("-disp-");
+static const TQString TEMPLATE_UID = TQString::tqfromLatin1("-tmpl-");
+static const TQString KORGANIZER_UID = TQString::tqfromLatin1("-korg-");
struct AlarmData
{
@@ -927,7 +927,7 @@ TQString KAEvent::uid(const TQString& id, Status status)
case TEMPLATE: part = TEMPLATE_UID; break;
case KORGANIZER: part = KORGANIZER_UID; break;
}
- result.replace(i, len, part);
+ result.tqreplace(i, len, part);
}
return result;
}
@@ -1039,7 +1039,7 @@ bool KAEvent::updateKCalEvent(Event& ev, bool checkUid, bool original, bool canc
if (params.count() > 0)
{
TQString cat = ARCHIVE_CATEGORIES;
- cat += params.join(TQString::fromLatin1(";"));
+ cat += params.join(TQString::tqfromLatin1(";"));
cats.append(cat);
}
else
@@ -1097,9 +1097,9 @@ bool KAEvent::updateKCalEvent(Event& ev, bool checkUid, bool original, bool canc
else if (mAtLoginDateTime.isValid())
dtl = mAtLoginDateTime;
else if (mStartDateTime.isDateOnly())
- dtl = TQDate::currentDate().addDays(-1);
+ dtl = TQDate::tqcurrentDate().addDays(-1);
else
- dtl = TQDateTime::currentDateTime();
+ dtl = TQDateTime::tqcurrentDateTime();
initKCalAlarm(ev, dtl, AT_LOGIN_TYPE);
if (!ancillaryType && dtl.isValid())
{
@@ -1243,7 +1243,7 @@ Alarm* KAEvent::initKCalAlarm(Event& event, int startOffsetSecs, const TQStringL
case KAAlarm::AUDIO_ALARM:
alarm->setAudioAlarm(mAudioFile); // empty for a beep or for speaking
if (mSpeak)
- alarm->setCustomProperty(APPNAME, SPEAK_PROPERTY, TQString::fromLatin1("Y"));
+ alarm->setCustomProperty(APPNAME, SPEAK_PROPERTY, TQString::tqfromLatin1("Y"));
if (mRepeatSound)
{
alarm->setRepeatCount(-1);
@@ -1251,7 +1251,7 @@ Alarm* KAEvent::initKCalAlarm(Event& event, int startOffsetSecs, const TQStringL
}
if (!mAudioFile.isEmpty() && mSoundVolume >= 0)
alarm->setCustomProperty(APPNAME, VOLUME_PROPERTY,
- TQString::fromLatin1("%1;%2;%3").arg(TQString::number(mSoundVolume, 'f', 2))
+ TQString::tqfromLatin1("%1;%2;%3").arg(TQString::number(mSoundVolume, 'f', 2))
.arg(TQString::number(mFadeVolume, 'f', 2))
.arg(mFadeSeconds));
break;
@@ -1277,7 +1277,7 @@ Alarm* KAEvent::initKCalAlarm(Event& event, int startOffsetSecs, const TQStringL
case T_MESSAGE:
alarm->setDisplayAlarm(AlarmText::toCalendarText(mText));
alarm->setCustomProperty(APPNAME, FONT_COLOUR_PROPERTY,
- TQString::fromLatin1("%1;%2;%3").arg(mBgColour.name())
+ TQString::tqfromLatin1("%1;%2;%3").arg(mBgColour.name())
.arg(mFgColour.name())
.arg(mDefaultFont ? TQString::null : mFont.toString()));
break;
@@ -1601,7 +1601,7 @@ bool KAEvent::defer(const DateTime& dateTime, bool reminder, bool adjustRecurren
set_deferral(NORMAL_DEFERRAL);
if (adjustRecurrence)
{
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
if (mainEndRepeatTime() < now)
{
// The last repetition (if any) of the current recurrence has already passed.
@@ -1641,7 +1641,7 @@ void KAEvent::cancelDefer()
// Set the deferral time to be the same as the next recurrence/repetition.
// This prevents an immediate retriggering of the alarm.
if (mMainExpired
- || nextOccurrence(TQDateTime::currentDateTime(), mDeferralTime, RETURN_REPETITION) == NO_OCCURRENCE)
+ || nextOccurrence(TQDateTime::tqcurrentDateTime(), mDeferralTime, RETURN_REPETITION) == NO_OCCURRENCE)
{
// The main alarm has expired, so simply delete the deferral
mDeferralTime = DateTime();
@@ -1678,7 +1678,7 @@ DateTime KAEvent::deferralLimit(KAEvent::DeferLimitType* limitType) const
// It's a repeated alarm. Don't allow it to be deferred past its
// next occurrence or repetition.
DateTime reminderTime;
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
OccurType type = nextOccurrence(now, endTime, RETURN_REPETITION);
if (type & OCCURRENCE_REPEAT)
ltype = LIMIT_REPETITION;
@@ -1695,7 +1695,7 @@ DateTime KAEvent::deferralLimit(KAEvent::DeferLimitType* limitType) const
ltype = LIMIT_RECURRENCE;
}
else if ((mReminderMinutes || mDeferral == REMINDER_DEFERRAL || mArchiveReminderMinutes)
- && TQDateTime::currentDateTime() < mNextMainDateTime.dateTime())
+ && TQDateTime::tqcurrentDateTime() < mNextMainDateTime.dateTime())
{
// It's an reminder alarm. Don't allow it to be deferred past its main alarm time.
endTime = mNextMainDateTime;
@@ -2633,21 +2633,21 @@ void KAEvent::convertKCalEvents(KCal::Calendar& calendar, int version, bool adju
static const TQChar LATE_CANCEL_CODE = 'C';
static const TQChar AT_LOGIN_CODE = 'L'; // subsidiary alarm at every login
static const TQChar DEFERRAL_CODE = 'D'; // extra deferred alarm
- static const TQString TEXT_PREFIX = TQString::fromLatin1("TEXT:");
- static const TQString FILE_PREFIX = TQString::fromLatin1("FILE:");
- static const TQString COMMAND_PREFIX = TQString::fromLatin1("CMD:");
+ static const TQString TEXT_PREFIX = TQString::tqfromLatin1("TEXT:");
+ static const TQString FILE_PREFIX = TQString::tqfromLatin1("FILE:");
+ static const TQString COMMAND_PREFIX = TQString::tqfromLatin1("CMD:");
// KAlarm pre-0.9.2 codes held in the event's CATEGORY property
- static const TQString BEEP_CATEGORY = TQString::fromLatin1("BEEP");
+ static const TQString BEEP_CATEGORY = TQString::tqfromLatin1("BEEP");
// KAlarm pre-1.1.1 LATECANCEL category with no parameter
- static const TQString LATE_CANCEL_CAT = TQString::fromLatin1("LATECANCEL");
+ static const TQString LATE_CANCEL_CAT = TQString::tqfromLatin1("LATECANCEL");
// KAlarm pre-1.3.0 TMPLDEFTIME category with no parameter
- static const TQString TEMPL_DEF_TIME_CAT = TQString::fromLatin1("TMPLDEFTIME");
+ static const TQString TEMPL_DEF_TIME_CAT = TQString::tqfromLatin1("TMPLDEFTIME");
// KAlarm pre-1.3.1 XTERM category
- static const TQString EXEC_IN_XTERM_CAT = TQString::fromLatin1("XTERM");
+ static const TQString EXEC_IN_XTERM_CAT = TQString::tqfromLatin1("XTERM");
// KAlarm pre-1.4.22 properties
static const TQCString KMAIL_ID_PROPERTY("KMAILID"); // X-KDE-KALARM-KMAILID property
@@ -2844,7 +2844,7 @@ void KAEvent::convertKCalEvents(KCal::Calendar& calendar, int version, bool adju
Alarm* alarm = *alit;
if (alarm->type() == Alarm::Display)
alarm->setCustomProperty(APPNAME, FONT_COLOUR_PROPERTY,
- TQString::fromLatin1("%1;;").arg(cats[0]));
+ TQString::tqfromLatin1("%1;;").arg(cats[0]));
}
cats.remove(cats.begin());
}
diff --git a/kalarm/alarmevent.h b/kalarm/alarmevent.h
index 91bf24289..0436d3fb5 100644
--- a/kalarm/alarmevent.h
+++ b/kalarm/alarmevent.h
@@ -153,7 +153,7 @@ class KAAlarm : public KAAlarmEventBase
{
INVALID_ALARM = 0, // not an alarm
MAIN_ALARM = 1, // THE real alarm. Must be the first in the enumeration.
- // The following values may be used in combination as a bitmask 0x0E
+ // The following values may be used in combination as a bitqmask 0x0E
REMINDER_ALARM = 0x02, // reminder in advance of main alarm
DEFERRED_ALARM = 0x04, // deferred alarm
DEFERRED_REMINDER_ALARM = REMINDER_ALARM | DEFERRED_ALARM, // deferred early warning
@@ -170,7 +170,7 @@ class KAAlarm : public KAAlarmEventBase
{
INVALID__ALARM = INVALID_ALARM,
MAIN__ALARM = MAIN_ALARM,
- // The following values may be used in combination as a bitmask 0x0E
+ // The following values may be used in combination as a bitqmask 0x0E
REMINDER__ALARM = REMINDER_ALARM,
TIMED_DEFERRAL_FLAG = 0x08, // deferral has a time; if clear, it is date-only
DEFERRED_DATE__ALARM = DEFERRED_ALARM, // deferred alarm - date-only
@@ -263,7 +263,7 @@ class KAEvent : public KAAlarmEventBase
DATE_DEFERRAL = DEFERRAL,
TIME_DEFERRAL = DEFERRAL | TIMED_FLAG,
DISPLAYING_ = 0x80000,
- READ_ONLY_FLAGS = 0xF0000 // mask for all read-only internal values
+ READ_ONLY_FLAGS = 0xF0000 // tqmask for all read-only internal values
};
/** The category of an event, indicated by the middle part of its UID. */
enum Status
@@ -288,7 +288,7 @@ class KAEvent : public KAAlarmEventBase
RECURRENCE_DATE = 0x02, // a recurrence with only a date, not a time
RECURRENCE_DATE_TIME = 0x03, // a recurrence with a date and time
LAST_RECURRENCE = 0x04, // the last recurrence
- OCCURRENCE_REPEAT = 0x10, // (bitmask for a repetition of an occurrence)
+ OCCURRENCE_REPEAT = 0x10, // (bitqmask for a repetition of an occurrence)
FIRST_OR_ONLY_OCCURRENCE_REPEAT = OCCURRENCE_REPEAT | FIRST_OR_ONLY_OCCURRENCE, // a repetition of the first occurrence
RECURRENCE_DATE_REPEAT = OCCURRENCE_REPEAT | RECURRENCE_DATE, // a repetition of a date-only recurrence
RECURRENCE_DATE_TIME_REPEAT = OCCURRENCE_REPEAT | RECURRENCE_DATE_TIME, // a repetition of a date/time recurrence
diff --git a/kalarm/alarmlistview.cpp b/kalarm/alarmlistview.cpp
index 8fb72fe31..2d4e39d62 100644
--- a/kalarm/alarmlistview.cpp
+++ b/kalarm/alarmlistview.cpp
@@ -167,7 +167,7 @@ void AlarmListView::populate()
KAEvent event;
KCal::Event::List events;
KCal::Event::List::ConstIterator it;
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
if (mShowExpired)
{
AlarmCalendar* cal = AlarmCalendar::expiredCalendarOpen();
@@ -257,7 +257,7 @@ void AlarmListView::updateTimeToAlarms(bool forceDisplay)
{
if (forceDisplay || columnWidth(mColumn[TIME_TO_COLUMN]))
{
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
for (AlarmListViewItem* item = firstChild(); item; item = item->nextSibling())
item->updateTimeToAlarm(now, forceDisplay);
}
@@ -269,7 +269,7 @@ void AlarmListView::updateTimeToAlarms(bool forceDisplay)
*/
void AlarmListView::addEvent(const KAEvent& event, EventListViewBase* view)
{
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
for (InstanceListConstIterator it = mInstanceList.begin(); it != mInstanceList.end(); ++it)
static_cast<AlarmListView*>(*it)->addEntry(event, now, true, (*it == view));
}
@@ -290,7 +290,7 @@ AlarmListViewItem* AlarmListView::addEntry(const KAEvent& event, const TQDateTim
*/
EventListViewItemBase* AlarmListView::createItem(const KAEvent& event)
{
- return new AlarmListViewItem(this, event, TQDateTime::currentDateTime());
+ return new AlarmListViewItem(this, event, TQDateTime::tqcurrentDateTime());
}
/******************************************************************************
@@ -373,7 +373,7 @@ void AlarmListView::contentsMouseMoveEvent(TQMouseEvent* e)
// Create a calendar object containing all the currently selected alarms
kdDebug(5950) << "AlarmListView::contentsMouseMoveEvent(): drag started" << endl;
mMousePressed = false;
- KCal::CalendarLocal cal(TQString::fromLatin1("UTC"));
+ KCal::CalendarLocal cal(TQString::tqfromLatin1("UTC"));
cal.setLocalTime(); // write out using local time (i.e. no time zone)
TQValueList<EventListViewItemBase*> items = selectedItems();
if (!items.count())
@@ -503,7 +503,7 @@ TQString AlarmListViewItem::alarmTimeText(const DateTime& dateTime) const
{
// Initialise the position of the hour within the time string, if leading
// zeroes are omitted, so that displayed times can be aligned with each other.
- mTimeHourPos = -1; // default = alignment isn't possible/sensible
+ mTimeHourPos = -1; // default = tqalignment isn't possible/sensible
if (!TQApplication::reverseLayout()) // don't try to align right-to-left languages
{
TQString fmt = locale->timeFormat();
@@ -514,7 +514,7 @@ TQString AlarmListViewItem::alarmTimeText(const DateTime& dateTime) const
}
if (mTimeHourPos >= 0 && (int)time.length() > mTimeHourPos + 1
&& time[mTimeHourPos].isDigit() && !time[mTimeHourPos + 1].isDigit())
- dateTimeText += '~'; // improve alignment of times with no leading zeroes
+ dateTimeText += '~'; // improve tqalignment of times with no leading zeroes
dateTimeText += time;
}
return dateTimeText + ' ';
@@ -652,7 +652,7 @@ void AlarmListViewItem::paintCell(TQPainter* painter, const TQColorGroup& cg, in
*/
int AlarmListViewItem::typeIconWidth(AlarmListView* v)
{
- return iconWidth() + 2 * v->style().pixelMetric(TQStyle::PM_DefaultFrameWidth);
+ return iconWidth() + 2 * v->style().tqpixelMetric(TQStyle::PM_DefaultFrameWidth);
}
/******************************************************************************
@@ -684,7 +684,7 @@ TQString AlarmListViewItem::key(int column, bool) const
*/
void AlarmListTooltip::maybeTip(const TQPoint& pt)
{
- AlarmListView* listView = (AlarmListView*)parentWidget()->parentWidget();
+ AlarmListView* listView = (AlarmListView*)tqparentWidget()->tqparentWidget();
int column = listView->column(AlarmListView::MESSAGE_COLUMN);
int xOffset = listView->contentsX();
if (listView->header()->sectionAt(pt.x() + xOffset) == column)
@@ -700,7 +700,7 @@ void AlarmListTooltip::maybeTip(const TQPoint& pt)
if (columnX + widthNeeded <= listView->viewport()->width())
return;
}
- TQRect rect = listView->itemRect(item);
+ TQRect rect = listView->tqitemRect(item);
rect.setLeft(columnX);
rect.setWidth(columnWidth);
kdDebug(5950) << "AlarmListTooltip::maybeTip(): display\n";
diff --git a/kalarm/alarmlistview.h b/kalarm/alarmlistview.h
index f2ad5b2c2..a722ac238 100644
--- a/kalarm/alarmlistview.h
+++ b/kalarm/alarmlistview.h
@@ -107,7 +107,7 @@ class AlarmListView : public EventListViewBase
virtual TQString whatsThisText(int column) const;
virtual bool shouldShowEvent(const KAEvent& e) const { return mShowExpired || !e.expired(); }
AlarmListViewItem* addEntry(const KAEvent& e, bool setSize = false)
- { return addEntry(e, TQDateTime::currentDateTime(), setSize); }
+ { return addEntry(e, TQDateTime::tqcurrentDateTime(), setSize); }
AlarmListViewItem* updateEntry(AlarmListViewItem* item, const KAEvent& newEvent, bool setSize = false)
{ return (AlarmListViewItem*)EventListViewBase::updateEntry(item, newEvent, setSize); }
virtual void contentsMousePressEvent(TQMouseEvent*);
diff --git a/kalarm/alarmtext.cpp b/kalarm/alarmtext.cpp
index 460517118..5be991f0d 100644
--- a/kalarm/alarmtext.cpp
+++ b/kalarm/alarmtext.cpp
@@ -32,17 +32,17 @@ TQString AlarmText::mToPrefix;
TQString AlarmText::mCcPrefix;
TQString AlarmText::mDatePrefix;
TQString AlarmText::mSubjectPrefix;
-TQString AlarmText::mFromPrefixEn = TQString::fromLatin1("From:");
-TQString AlarmText::mToPrefixEn = TQString::fromLatin1("To:");
-TQString AlarmText::mCcPrefixEn = TQString::fromLatin1("Cc:");
-TQString AlarmText::mDatePrefixEn = TQString::fromLatin1("Date:");
-TQString AlarmText::mSubjectPrefixEn = TQString::fromLatin1("Subject:");
+TQString AlarmText::mFromPrefixEn = TQString::tqfromLatin1("From:");
+TQString AlarmText::mToPrefixEn = TQString::tqfromLatin1("To:");
+TQString AlarmText::mCcPrefixEn = TQString::tqfromLatin1("Cc:");
+TQString AlarmText::mDatePrefixEn = TQString::tqfromLatin1("Date:");
+TQString AlarmText::mSubjectPrefixEn = TQString::tqfromLatin1("Subject:");
void AlarmText::setText(const TQString& text)
{
mBody = text;
- mIsScript = text.startsWith(TQString::fromLatin1("#!"));
+ mIsScript = text.startsWith(TQString::tqfromLatin1("#!"));
mIsEmail = false;
mTo = mFrom = mCc = mTime = mSubject = TQString::null;
mKMailSerialNum = 0;
@@ -271,7 +271,7 @@ TQString AlarmText::summary(const KAEvent& event, int maxLines, bool* truncated)
}
if (truncated)
*truncated = false;
- if (text.contains('\n') < maxLines)
+ if (text.tqcontains('\n') < maxLines)
return text;
int newline = -1;
for (int i = 0; i < maxLines; ++i)
@@ -284,5 +284,5 @@ TQString AlarmText::summary(const KAEvent& event, int maxLines, bool* truncated)
return text.left(newline); // text ends in newline
if (truncated)
*truncated = true;
- return text.left(newline + (maxLines <= 1 ? 0 : 1)) + TQString::fromLatin1("...");
+ return text.left(newline + (maxLines <= 1 ? 0 : 1)) + TQString::tqfromLatin1("...");
}
diff --git a/kalarm/alarmtimewidget.cpp b/kalarm/alarmtimewidget.cpp
index 5c3316bce..2e4263300 100644
--- a/kalarm/alarmtimewidget.cpp
+++ b/kalarm/alarmtimewidget.cpp
@@ -93,14 +93,14 @@ void AlarmTimeWidget::init(int mode)
// At time radio button/label
mAtTimeRadio = new RadioButton(((mode & DEFER_TIME) ? i18n("&Defer to date/time:") : i18n("At &date/time:")), this, "atTimeRadio");
- mAtTimeRadio->setFixedSize(mAtTimeRadio->sizeHint());
+ mAtTimeRadio->setFixedSize(mAtTimeRadio->tqsizeHint());
TQWhatsThis::add(mAtTimeRadio,
((mode & DEFER_TIME) ? i18n("Reschedule the alarm to the specified date and time.")
: i18n("Schedule the alarm at the specified date and time.")));
// Date edit box
mDateEdit = new DateEdit(this);
- mDateEdit->setFixedSize(mDateEdit->sizeHint());
+ mDateEdit->setFixedSize(mDateEdit->tqsizeHint());
connect(mDateEdit, TQT_SIGNAL(dateEntered(const TQDate&)), TQT_SLOT(dateTimeChanged()));
static const TQString enterDateText = i18n("Enter the date to schedule the alarm.");
TQWhatsThis::add(mDateEdit, ((mode & DEFER_TIME) ? enterDateText
@@ -111,7 +111,7 @@ void AlarmTimeWidget::init(int mode)
TQHBox* timeBox = new TQHBox(this);
timeBox->setSpacing(2*KDialog::spacingHint());
mTimeEdit = new TimeEdit(timeBox);
- mTimeEdit->setFixedSize(mTimeEdit->sizeHint());
+ mTimeEdit->setFixedSize(mTimeEdit->tqsizeHint());
connect(mTimeEdit, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(dateTimeChanged()));
static const TQString enterTimeText = i18n("Enter the time to schedule the alarm.");
TQWhatsThis::add(mTimeEdit,
@@ -128,7 +128,7 @@ void AlarmTimeWidget::init(int mode)
{
mAnyTimeAllowed = true;
mAnyTimeCheckBox = new CheckBox(i18n("An&y time"), timeBox);
- mAnyTimeCheckBox->setFixedSize(mAnyTimeCheckBox->sizeHint());
+ mAnyTimeCheckBox->setFixedSize(mAnyTimeCheckBox->tqsizeHint());
connect(mAnyTimeCheckBox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotAnyTimeToggled(bool)));
TQWhatsThis::add(mAnyTimeCheckBox, i18n("Schedule the alarm for any time during the day"));
}
@@ -136,7 +136,7 @@ void AlarmTimeWidget::init(int mode)
// 'Time from now' radio button/label
mAfterTimeRadio = new RadioButton(((mode & DEFER_TIME) ? i18n("Defer for time &interval:") : i18n_w_TimeFromNow()),
this, "afterTimeRadio");
- mAfterTimeRadio->setFixedSize(mAfterTimeRadio->sizeHint());
+ mAfterTimeRadio->setFixedSize(mAfterTimeRadio->tqsizeHint());
TQWhatsThis::add(mAfterTimeRadio,
((mode & DEFER_TIME) ? i18n("Reschedule the alarm for the specified time interval after now.")
: i18n("Schedule the alarm after the specified time interval from now.")));
@@ -144,14 +144,14 @@ void AlarmTimeWidget::init(int mode)
// Delay time spin box
mDelayTimeEdit = new TimeSpinBox(1, maxDelayTime, this);
mDelayTimeEdit->setValue(maxDelayTime);
- mDelayTimeEdit->setFixedSize(mDelayTimeEdit->sizeHint());
+ mDelayTimeEdit->setFixedSize(mDelayTimeEdit->tqsizeHint());
connect(mDelayTimeEdit, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(delayTimeChanged(int)));
TQWhatsThis::add(mDelayTimeEdit,
((mode & DEFER_TIME) ? TQString("%1\n\n%2").arg(i18n_TimeAfterPeriod()).arg(TimeSpinBox::shiftWhatsThis())
: TQString("%1\n%2\n\n%3").arg(i18n_TimeAfterPeriod()).arg(recurText).arg(TimeSpinBox::shiftWhatsThis())));
mAfterTimeRadio->setFocusWidget(mDelayTimeEdit);
- // Set up the layout, either narrow or wide
+ // Set up the tqlayout, either narrow or wide
if (mode & NARROW)
{
TQGridLayout* grid = new TQGridLayout(topLayout, 2, 2, KDialog::spacingHint());
@@ -160,10 +160,10 @@ void AlarmTimeWidget::init(int mode)
grid->addWidget(timeBox, 1, 1, Qt::AlignAuto);
grid->setColStretch(2, 1);
topLayout->addStretch();
- TQBoxLayout* layout = new TQHBoxLayout(topLayout, KDialog::spacingHint());
- layout->addWidget(mAfterTimeRadio);
- layout->addWidget(mDelayTimeEdit);
- layout->addStretch();
+ TQBoxLayout* tqlayout = new TQHBoxLayout(topLayout, KDialog::spacingHint());
+ tqlayout->addWidget(mAfterTimeRadio);
+ tqlayout->addWidget(mDelayTimeEdit);
+ tqlayout->addStretch();
}
else
{
@@ -226,7 +226,7 @@ DateTime AlarmTimeWidget::getDateTime(int* minsFromNow, bool checkExpired, bool
if (errorWidget)
*errorWidget = 0;
TQTime nowt = TQTime::currentTime();
- TQDateTime now(TQDate::currentDate(), TQTime(nowt.hour(), nowt.minute()));
+ TQDateTime now(TQDate::tqcurrentDate(), TQTime(nowt.hour(), nowt.minute()));
if (mAtTimeRadio->isOn())
{
bool anyTime = mAnyTimeAllowed && mAnyTimeCheckBox && mAnyTimeCheckBox->isChecked();
@@ -328,7 +328,7 @@ void AlarmTimeWidget::setMinDateTimeIsCurrent()
{
mMinDateTimeIsNow = true;
mMinDateTime = TQDateTime();
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
mDateEdit->setMinDate(now.date());
setMaxMinTimeIf(now);
}
@@ -342,7 +342,7 @@ void AlarmTimeWidget::setMinDateTime(const TQDateTime& dt)
mMinDateTimeIsNow = false;
mMinDateTime = dt;
mDateEdit->setMinDate(dt.date());
- setMaxMinTimeIf(TQDateTime::currentDateTime());
+ setMaxMinTimeIf(TQDateTime::tqcurrentDateTime());
}
/******************************************************************************
@@ -357,7 +357,7 @@ void AlarmTimeWidget::setMaxDateTime(const DateTime& dt)
else
mMaxDateTime = dt.dateTime();
mDateEdit->setMaxDate(mMaxDateTime.date());
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
setMaxMinTimeIf(now);
setMaxDelayTime(now);
}
@@ -452,13 +452,13 @@ void AlarmTimeWidget::slotTimer()
if (mMinDateTimeIsNow)
{
// Make sure that the minimum date is updated when the day changes
- now = TQDateTime::currentDateTime();
+ now = TQDateTime::tqcurrentDateTime();
mDateEdit->setMinDate(now.date());
}
if (mMaxDateTime.isValid())
{
if (!now.isValid())
- now = TQDateTime::currentDateTime();
+ now = TQDateTime::tqcurrentDateTime();
if (!mPastMax)
{
// Check whether the maximum date/time has now been reached
@@ -502,7 +502,7 @@ void AlarmTimeWidget::slotButtonSet(int)
mAnyTimeCheckBox->setEnabled(at && mAnyTimeAllowed);
// Ensure that the value of the delay edit box is > 0.
TQDateTime dt(mDateEdit->date(), mTimeEdit->time());
- int minutes = (TQDateTime::currentDateTime().secsTo(dt) + 59) / 60;
+ int minutes = (TQDateTime::tqcurrentDateTime().secsTo(dt) + 59) / 60;
if (minutes <= 0)
mDelayTimeEdit->setValid(true);
mDelayTimeEdit->setEnabled(!at);
@@ -525,7 +525,7 @@ void AlarmTimeWidget::slotAnyTimeToggled(bool on)
void AlarmTimeWidget::dateTimeChanged()
{
TQDateTime dt(mDateEdit->date(), mTimeEdit->time());
- int minutes = (TQDateTime::currentDateTime().secsTo(dt) + 59) / 60;
+ int minutes = (TQDateTime::tqcurrentDateTime().secsTo(dt) + 59) / 60;
bool blocked = mDelayTimeEdit->signalsBlocked();
mDelayTimeEdit->blockSignals(true); // prevent infinite recursion between here and delayTimeChanged()
if (minutes <= 0 || minutes > mDelayTimeEdit->maxValue())
@@ -543,7 +543,7 @@ void AlarmTimeWidget::delayTimeChanged(int minutes)
{
if (mDelayTimeEdit->isValid())
{
- TQDateTime dt = TQDateTime::currentDateTime().addSecs(minutes * 60);
+ TQDateTime dt = TQDateTime::tqcurrentDateTime().addSecs(minutes * 60);
bool blockedT = mTimeEdit->signalsBlocked();
bool blockedD = mDateEdit->signalsBlocked();
mTimeEdit->blockSignals(true); // prevent infinite recursion between here and dateTimeChanged()
diff --git a/kalarm/alarmtimewidget.h b/kalarm/alarmtimewidget.h
index 9e1e2535b..e3580d735 100644
--- a/kalarm/alarmtimewidget.h
+++ b/kalarm/alarmtimewidget.h
@@ -52,7 +52,7 @@ class AlarmTimeWidget : public ButtonGroup
bool anyTime() const { return mAnyTime; }
void enableAnyTime(bool enable);
void selectTimeFromNow(int minutes = 0);
- TQSize sizeHint() const { return minimumSizeHint(); }
+ TQSize tqsizeHint() const { return tqminimumSizeHint(); }
static TQString i18n_w_TimeFromNow(); // text of 'Time from now:' radio button, with 'w' shortcut
static TQString i18n_TimeAfterPeriod();
diff --git a/kalarm/birthdaydlg.cpp b/kalarm/birthdaydlg.cpp
index 98a4b629c..2e2997853 100644
--- a/kalarm/birthdaydlg.cpp
+++ b/kalarm/birthdaydlg.cpp
@@ -81,15 +81,15 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent)
// Prefix and suffix to the name in the alarm text
// Get default prefix and suffix texts from config file
KConfig* config = kapp->config();
- config->setGroup(TQString::fromLatin1("General"));
- mPrefixText = config->readEntry(TQString::fromLatin1("BirthdayPrefix"), i18n("Birthday: "));
- mSuffixText = config->readEntry(TQString::fromLatin1("BirthdaySuffix"));
+ config->setGroup(TQString::tqfromLatin1("General"));
+ mPrefixText = config->readEntry(TQString::tqfromLatin1("BirthdayPrefix"), i18n("Birthday: "));
+ mSuffixText = config->readEntry(TQString::tqfromLatin1("BirthdaySuffix"));
TQGroupBox* textGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Alarm Text"), topWidget);
topLayout->addWidget(textGroup);
TQLabel* label = new TQLabel(i18n("Pre&fix:"), textGroup);
mPrefix = new BLineEdit(mPrefixText, textGroup);
- mPrefix->setMinimumSize(mPrefix->sizeHint());
+ mPrefix->setMinimumSize(mPrefix->tqsizeHint());
label->setBuddy(mPrefix);
connect(mPrefix, TQT_SIGNAL(focusLost()), TQT_SLOT(slotTextLostFocus()));
TQWhatsThis::add(mPrefix,
@@ -98,7 +98,7 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent)
label = new TQLabel(i18n("S&uffix:"), textGroup);
mSuffix = new BLineEdit(mSuffixText, textGroup);
- mSuffix->setMinimumSize(mSuffix->sizeHint());
+ mSuffix->setMinimumSize(mSuffix->tqsizeHint());
label->setBuddy(mSuffix);
connect(mSuffix, TQT_SIGNAL(focusLost()), TQT_SLOT(slotTextLostFocus()));
TQWhatsThis::add(mSuffix,
@@ -128,12 +128,12 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent)
// Font and colour choice button and sample text
mFontColourButton = new FontColourButton(group);
- mFontColourButton->setMaximumHeight(mFontColourButton->sizeHint().height() * 3/2);
+ mFontColourButton->setMaximumHeight(mFontColourButton->tqsizeHint().height() * 3/2);
groupLayout->addWidget(mFontColourButton);
// Sound checkbox and file selector
mSoundPicker = new SoundPicker(group);
- mSoundPicker->setFixedSize(mSoundPicker->sizeHint());
+ mSoundPicker->setFixedSize(mSoundPicker->tqsizeHint());
groupLayout->addWidget(mSoundPicker, 0, Qt::AlignAuto);
// How much to advance warning to give
@@ -142,36 +142,36 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent)
i18n("Enter the number of days before each birthday to display a reminder. "
"This is in addition to the alarm which is displayed on the birthday."),
false, false, group);
- mReminder->setFixedSize(mReminder->sizeHint());
+ mReminder->setFixedSize(mReminder->tqsizeHint());
mReminder->setMaximum(0, 364);
mReminder->setMinutes(0, true);
groupLayout->addWidget(mReminder, 0, Qt::AlignAuto);
// Acknowledgement confirmation required - default = no confirmation
- TQHBoxLayout* layout = new TQHBoxLayout(groupLayout, 2*spacingHint());
+ TQHBoxLayout* tqlayout = new TQHBoxLayout(groupLayout, 2*spacingHint());
mConfirmAck = EditAlarmDlg::createConfirmAckCheckbox(group);
- layout->addWidget(mConfirmAck);
- layout->addSpacing(2*spacingHint());
- layout->addStretch();
+ tqlayout->addWidget(mConfirmAck);
+ tqlayout->addSpacing(2*spacingHint());
+ tqlayout->addStretch();
if (ShellProcess::authorised()) // don't display if shell commands not allowed (e.g. kiosk mode)
{
// Special actions button
mSpecialActionsButton = new SpecialActionsButton(i18n("Special Actions..."), group);
- layout->addWidget(mSpecialActionsButton);
+ tqlayout->addWidget(mSpecialActionsButton);
}
// Late display checkbox - default = allow late display
- layout = new TQHBoxLayout(groupLayout, 2*spacingHint());
+ tqlayout = new TQHBoxLayout(groupLayout, 2*spacingHint());
mLateCancel = new LateCancelSelector(false, group);
- layout->addWidget(mLateCancel);
- layout->addStretch();
+ tqlayout->addWidget(mLateCancel);
+ tqlayout->addStretch();
// Sub-repetition button
mSubRepetition = new RepetitionButton(i18n("Sub-Repetition"), false, group);
mSubRepetition->set(0, 0, true, 364*24*60);
TQWhatsThis::add(mSubRepetition, i18n("Set up an additional alarm repetition"));
- layout->addWidget(mSubRepetition);
+ tqlayout->addWidget(mSubRepetition);
// Set the values to their defaults
mFontColourButton->setDefaultFont();
@@ -295,7 +295,7 @@ void BirthdayDlg::updateSelectionList()
TQValueList<KAEvent> BirthdayDlg::events() const
{
TQValueList<KAEvent> list;
- TQDate today = TQDate::currentDate();
+ TQDate today = TQDate::tqcurrentDate();
TQDateTime todayNoon(today, TQTime(12, 0, 0));
int thisYear = today.year();
int reminder = mReminder->minutes();
@@ -344,9 +344,9 @@ void BirthdayDlg::slotOk()
{
// Save prefix and suffix texts to use as future defaults
KConfig* config = kapp->config();
- config->setGroup(TQString::fromLatin1("General"));
- config->writeEntry(TQString::fromLatin1("BirthdayPrefix"), mPrefix->text());
- config->writeEntry(TQString::fromLatin1("BirthdaySuffix"), mSuffix->text());
+ config->setGroup(TQString::tqfromLatin1("General"));
+ config->writeEntry(TQString::tqfromLatin1("BirthdayPrefix"), mPrefix->text());
+ config->writeEntry(TQString::tqfromLatin1("BirthdaySuffix"), mSuffix->text());
config->sync();
mFlags = (mSoundPicker->sound() == SoundPicker::BEEP ? KAEvent::BEEP : 0)
diff --git a/kalarm/calendarcompat.cpp b/kalarm/calendarcompat.cpp
index 50d76c508..f0a349197 100644
--- a/kalarm/calendarcompat.cpp
+++ b/kalarm/calendarcompat.cpp
@@ -80,7 +80,7 @@ int CalendarCompat::readKAlarmVersion(KCal::Calendar& calendar, TQString& subVer
const TQString& prodid = calendar.productId();
// Find the KAlarm identifier
- TQString progname = TQString::fromLatin1(" KAlarm ");
+ TQString progname = TQString::tqfromLatin1(" KAlarm ");
int i = prodid.find(progname, 0, false);
if (i < 0)
{
@@ -100,7 +100,7 @@ int CalendarCompat::readKAlarmVersion(KCal::Calendar& calendar, TQString& subVer
i = j;
if (i <= 0)
return 0; // missing version string
- ver = ver.left(i); // ver now contains the KAlarm version string
+ ver = ver.left(i); // ver now tqcontains the KAlarm version string
if (ver == KAlarm::currentCalendarVersionString())
return 0; // the calendar is in the current KAlarm format
return KAlarm::getVersionNumber(ver, &subVersion);
@@ -124,9 +124,9 @@ bool CalendarCompat::isUTC(const TQString& localFile)
file.close();
// Extract the CREATED property for the first VEVENT from the calendar
- TQString VCALENDAR = TQString::fromLatin1("BEGIN:VCALENDAR");
- TQString VEVENT = TQString::fromLatin1("BEGIN:VEVENT");
- TQString CREATED = TQString::fromLatin1("CREATED:");
+ TQString VCALENDAR = TQString::tqfromLatin1("BEGIN:VCALENDAR");
+ TQString VEVENT = TQString::tqfromLatin1("BEGIN:VEVENT");
+ TQString CREATED = TQString::tqfromLatin1("CREATED:");
TQStringList lines = TQStringList::split(TQChar('\n'), text);
for (TQStringList::ConstIterator it = lines.begin(); it != lines.end(); ++it)
{
diff --git a/kalarm/daemon.cpp b/kalarm/daemon.cpp
index d2d2b2343..a129de8a3 100644
--- a/kalarm/daemon.cpp
+++ b/kalarm/daemon.cpp
@@ -134,7 +134,7 @@ bool Daemon::start()
return true; // we're currently waiting for the daemon to start
// Start the alarm daemon. It is a KUniqueApplication, which means that
// there is automatically only one instance of the alarm daemon running.
- TQString execStr = locate("exe", TQString::fromLatin1(DAEMON_APP_NAME));
+ TQString execStr = locate("exe", TQString::tqfromLatin1(DAEMON_APP_NAME));
if (execStr.isEmpty())
{
KMessageBox::error(0, i18n("Alarm daemon not found."));
@@ -221,7 +221,7 @@ void Daemon::registrationResult(bool reregister, int result, int version)
failed = true;
kdError(5950) << "Daemon::registrationResult(" << reregister << "): kalarmd reports incompatible version " << version << endl;
errmsg = i18n("Cannot enable alarms.\nInstallation or configuration error: Alarm Daemon (%1) version is incompatible.")
- .arg(TQString::fromLatin1(DAEMON_APP_NAME));
+ .arg(TQString::tqfromLatin1(DAEMON_APP_NAME));
}
else
{
@@ -236,7 +236,7 @@ void Daemon::registrationResult(bool reregister, int result, int version)
kdError(5950) << "Daemon::registrationResult(" << reregister << "): registerApp dcop call: " << kapp->aboutData()->appName() << " not found\n";
KMessageBox::error(0, i18n("Alarms will be disabled if you stop KAlarm.\n"
"(Installation or configuration error: %1 cannot locate %2 executable.)")
- .arg(TQString::fromLatin1(DAEMON_APP_NAME))
+ .arg(TQString::tqfromLatin1(DAEMON_APP_NAME))
.arg(kapp->aboutData()->appName()));
break;
case KAlarmd::FAILURE:
@@ -248,7 +248,7 @@ void Daemon::registrationResult(bool reregister, int result, int version)
if (!reregister)
{
errmsg = i18n("Cannot enable alarms:\nFailed to register with Alarm Daemon (%1)")
- .arg(TQString::fromLatin1(DAEMON_APP_NAME));
+ .arg(TQString::tqfromLatin1(DAEMON_APP_NAME));
}
break;
}
@@ -304,7 +304,7 @@ void Daemon::checkIfStarted()
if (err)
{
kdError(5950) << "Daemon::checkIfStarted(): failed to start daemon" << endl;
- KMessageBox::error(0, i18n("Cannot enable alarms:\nFailed to start Alarm Daemon (%1)").arg(TQString::fromLatin1(DAEMON_APP_NAME)));
+ KMessageBox::error(0, i18n("Cannot enable alarms:\nFailed to start Alarm Daemon (%1)").arg(TQString::tqfromLatin1(DAEMON_APP_NAME)));
}
}
@@ -414,8 +414,8 @@ void Daemon::enableAutoStart(bool enable)
// The return status doesn't report failure even if the daemon isn't running,
// so in case of failure, rewrite the config file in any case.
KConfig adconfig(locate("config", DAEMON_APP_NAME"rc"));
- adconfig.setGroup(TQString::fromLatin1(DAEMON_AUTOSTART_SECTION));
- adconfig.writeEntry(TQString::fromLatin1(DAEMON_AUTOSTART_KEY), enable);
+ adconfig.setGroup(TQString::tqfromLatin1(DAEMON_AUTOSTART_SECTION));
+ adconfig.writeEntry(TQString::tqfromLatin1(DAEMON_AUTOSTART_KEY), enable);
adconfig.sync();
}
@@ -437,8 +437,8 @@ void Daemon::notifyTimeChanged()
bool Daemon::autoStart()
{
KConfig adconfig(locate("config", DAEMON_APP_NAME"rc"));
- adconfig.setGroup(TQString::fromLatin1(DAEMON_AUTOSTART_SECTION));
- return adconfig.readBoolEntry(TQString::fromLatin1(DAEMON_AUTOSTART_KEY), true);
+ adconfig.setGroup(TQString::tqfromLatin1(DAEMON_AUTOSTART_SECTION));
+ return adconfig.readBoolEntry(TQString::tqfromLatin1(DAEMON_AUTOSTART_KEY), true);
}
/******************************************************************************
@@ -700,7 +700,7 @@ void NotificationHandler::alarmDaemonUpdate(int calendarStatus, const TQString&
void NotificationHandler::handleEvent(const TQString& url, const TQString& eventId)
{
TQString id = eventId;
- if (id.startsWith(TQString::fromLatin1("ad:")))
+ if (id.startsWith(TQString::tqfromLatin1("ad:")))
{
// It's a notification from the alarm deamon
id = id.mid(3);
diff --git a/kalarm/dcophandler.cpp b/kalarm/dcophandler.cpp
index 8c37ffd88..42af4ce9b 100644
--- a/kalarm/dcophandler.cpp
+++ b/kalarm/dcophandler.cpp
@@ -344,7 +344,7 @@ DateTime DcopHandler::convertStartDateTime(const TQString& startDateTime)
else
{
// It's a time, so use today as the date
- start.set(TQDate::currentDate(), TQTime::fromString(t, Qt::ISODate));
+ start.set(TQDate::tqcurrentDate(), TQTime::fromString(t, Qt::ISODate));
}
}
if (!start.isValid())
@@ -486,17 +486,17 @@ bool DcopHandlerOld::process(const TQCString& func, const TQByteArray& data, TQC
kdDebug(5950) << "DcopHandlerOld::process(): " << func << endl;
enum
{
- OPERATION = 0x0007, // mask for main operation
+ OPERATION = 0x0007, // tqmask for main operation
HANDLE = 0x0001,
CANCEL = 0x0002,
TRIGGER = 0x0003,
SCHEDULE = 0x0004,
- ALARM_TYPE = 0x00F0, // mask for SCHEDULE alarm type
+ ALARM_TYPE = 0x00F0, // tqmask for SCHEDULE alarm type
MESSAGE = 0x0010,
FILE = 0x0020,
COMMAND = 0x0030,
EMAIL = 0x0040,
- SCH_FLAGS = 0x0F00, // mask for SCHEDULE flags
+ SCH_FLAGS = 0x0F00, // tqmask for SCHEDULE flags
REP_COUNT = 0x0100,
REP_END = 0x0200,
FONT = 0x0400,
@@ -516,111 +516,111 @@ bool DcopHandlerOld::process(const TQCString& func, const TQByteArray& data, TQC
function = TRIGGER;
// scheduleMessage(message, dateTime, colour, colourfg, flags, audioURL, reminder, recurrence)
- else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,const TQString&)"
- || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQColor,Q_UINT32,TQString,Q_UINT32,TQString)")
+ else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,const TQString&)"
+ || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQColor,TQ_UINT32,TQString,TQ_UINT32,TQString)")
function = SCHEDULE | MESSAGE;
// scheduleMessage(message, dateTime, colour, colourfg, font, flags, audioURL, reminder, recurrence)
- else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,const TQColor&,const TQFont&,Q_UINT32,const TQString&,Q_INT32,const TQString&)"
- || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQColor,TQFont,Q_UINT32,TQString,Q_UINT32,TQString)")
+ else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,const TQColor&,const TQFont&,TQ_UINT32,const TQString&,TQ_INT32,const TQString&)"
+ || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQColor,TQFont,TQ_UINT32,TQString,TQ_UINT32,TQString)")
function = SCHEDULE | MESSAGE | FONT;
// scheduleFile(URL, dateTime, colour, flags, audioURL, reminder, recurrence)
- else if (func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,Q_INT32,const TQString&)"
- || func == "scheduleFile(TQString,TQDateTime,TQColor,Q_UINT32,TQString,Q_UINT32,TQString)")
+ else if (func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,TQ_INT32,const TQString&)"
+ || func == "scheduleFile(TQString,TQDateTime,TQColor,TQ_UINT32,TQString,TQ_UINT32,TQString)")
function = SCHEDULE | FILE;
// scheduleCommand(commandLine, dateTime, flags, recurrence)
- else if (func == "scheduleCommand(const TQString&,const TQDateTime&,Q_UINT32,const TQString&)"
- || func == "scheduleCommand(TQString,TQDateTime,Q_UINT32,TQString)")
+ else if (func == "scheduleCommand(const TQString&,const TQDateTime&,TQ_UINT32,const TQString&)"
+ || func == "scheduleCommand(TQString,TQDateTime,TQ_UINT32,TQString)")
function = SCHEDULE | COMMAND;
// scheduleEmail(addresses, subject, message, attachments, dateTime, flags, recurrence)
- else if (func == "scheduleEmail(const TQString&,const TQString&,const TQString&,const TQString&,const TQDateTime&,Q_UINT32,const TQString&)"
- || func == "scheduleEmail(TQString,TQString,TQString,TQString,TQDateTime,Q_UINT32,TQString)")
+ else if (func == "scheduleEmail(const TQString&,const TQString&,const TQString&,const TQString&,const TQDateTime&,TQ_UINT32,const TQString&)"
+ || func == "scheduleEmail(TQString,TQString,TQString,TQString,TQDateTime,TQ_UINT32,TQString)")
function = SCHEDULE | EMAIL;
// scheduleMessage(message, dateTime, colour, colourfg, flags, audioURL, reminder, recurType, interval, recurCount)
- else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,Q_INT32,Q_INT32,Q_INT32)"
- || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQColor,Q_UINT32,TQString,Q_INT32,Q_INT32,Q_INT32,Q_INT32)")
+ else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,TQ_INT32,TQ_INT32,TQ_INT32)"
+ || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQColor,TQ_UINT32,TQString,TQ_INT32,TQ_INT32,TQ_INT32,TQ_INT32)")
function = SCHEDULE | MESSAGE | REP_COUNT;
// scheduleFile(URL, dateTime, colour, flags, audioURL, reminder, recurType, interval, recurCount)
- else if (func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,Q_INT32,Q_INT32,Q_INT32)"
- || func == "scheduleFile(TQString,TQDateTime,TQColor,Q_UINT32,TQString,Q_INT32,Q_INT32,Q_INT32,Q_INT32)")
+ else if (func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,TQ_INT32,TQ_INT32,TQ_INT32)"
+ || func == "scheduleFile(TQString,TQDateTime,TQColor,TQ_UINT32,TQString,TQ_INT32,TQ_INT32,TQ_INT32,TQ_INT32)")
function = SCHEDULE | FILE | REP_COUNT;
// scheduleCommand(commandLine, dateTime, flags, recurType, interval, recurCount)
- else if (func == "scheduleCommand(const TQString&,const TQDateTime&,Q_UINT32,Q_INT32,Q_INT32,Q_INT32)"
- || func == "scheduleCommand(TQString,TQDateTime,Q_UINT32,Q_INT32,Q_INT32,Q_INT32)")
+ else if (func == "scheduleCommand(const TQString&,const TQDateTime&,TQ_UINT32,TQ_INT32,TQ_INT32,TQ_INT32)"
+ || func == "scheduleCommand(TQString,TQDateTime,TQ_UINT32,TQ_INT32,TQ_INT32,TQ_INT32)")
function = SCHEDULE | COMMAND | REP_COUNT;
// scheduleEmail(addresses, subject, message, attachments, dateTime, flags, recurType, interval, recurCount)
- else if (func == "scheduleEmail(const TQString&,const TQString&,const TQString&,const TQString&,const TQDateTime&,Q_UINT32,Q_INT32,Q_INT32,Q_INT32)"
- || func == "scheduleEmail(TQString,TQString,TQString,TQString,TQDateTime,Q_UINT32,Q_INT32,Q_INT32,Q_INT32)")
+ else if (func == "scheduleEmail(const TQString&,const TQString&,const TQString&,const TQString&,const TQDateTime&,TQ_UINT32,TQ_INT32,TQ_INT32,TQ_INT32)"
+ || func == "scheduleEmail(TQString,TQString,TQString,TQString,TQDateTime,TQ_UINT32,TQ_INT32,TQ_INT32,TQ_INT32)")
function = SCHEDULE | EMAIL | REP_COUNT;
// scheduleMessage(message, dateTime, colour, colourfg, flags, audioURL, reminder, recurType, interval, endTime)
- else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,Q_INT32,Q_INT32,const TQDateTime&)"
- || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQColor,Q_UINT32,TQString,Q_INT32,Q_INT32,Q_INT32,TQDateTime)")
+ else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,TQ_INT32,TQ_INT32,const TQDateTime&)"
+ || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQColor,TQ_UINT32,TQString,TQ_INT32,TQ_INT32,TQ_INT32,TQDateTime)")
function = SCHEDULE | MESSAGE | REP_END;
// scheduleFile(URL, dateTime, colour, flags, audioURL, reminder, recurType, interval, endTime)
- else if (func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,Q_INT32,Q_INT32,const TQDateTime&)"
- || func == "scheduleFile(TQString,TQDateTime,TQColor,Q_UINT32,TQString,Q_INT32,Q_INT32,Q_INT32,TQDateTime)")
+ else if (func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,TQ_INT32,TQ_INT32,const TQDateTime&)"
+ || func == "scheduleFile(TQString,TQDateTime,TQColor,TQ_UINT32,TQString,TQ_INT32,TQ_INT32,TQ_INT32,TQDateTime)")
function = SCHEDULE | FILE | REP_END;
// scheduleCommand(commandLine, dateTime, flags, recurType, interval, endTime)
- else if (func == "scheduleCommand(const TQString&,const TQDateTime&,Q_UINT32,Q_INT32,Q_INT32,const TQDateTime&)"
- || func == "scheduleCommand(TQString,TQDateTime,Q_UINT32,Q_INT32,Q_INT32,TQDateTime)")
+ else if (func == "scheduleCommand(const TQString&,const TQDateTime&,TQ_UINT32,TQ_INT32,TQ_INT32,const TQDateTime&)"
+ || func == "scheduleCommand(TQString,TQDateTime,TQ_UINT32,TQ_INT32,TQ_INT32,TQDateTime)")
function = SCHEDULE | COMMAND | REP_END;
// scheduleEmail(addresses, subject, message, attachments, dateTime, flags, recurType, interval, endTime)
- else if (func == "scheduleEmail(const TQString&,const TQString&,const TQString&,const TQString&,const TQDateTime&,Q_UINT32,Q_INT32,Q_INT32,const TQDateTime&)"
- || func == "scheduleEmail(TQString,TQString,TQString,TQString,TQDateTime,Q_UINT32,Q_INT32,Q_INT32,TQDateTime)")
+ else if (func == "scheduleEmail(const TQString&,const TQString&,const TQString&,const TQString&,const TQDateTime&,TQ_UINT32,TQ_INT32,TQ_INT32,const TQDateTime&)"
+ || func == "scheduleEmail(TQString,TQString,TQString,TQString,TQDateTime,TQ_UINT32,TQ_INT32,TQ_INT32,TQDateTime)")
function = SCHEDULE | EMAIL | REP_END;
// Deprecated methods: backwards compatibility with KAlarm pre-0.9.6
// scheduleMessage(message, dateTime, colour, flags, audioURL, reminder, recurrence)
- else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,const TQString&)"
- || func == "scheduleMessage(TQString,TQDateTime,TQColor,Q_UINT32,TQString,Q_UINT32,TQString)")
+ else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,const TQString&)"
+ || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQ_UINT32,TQString,TQ_UINT32,TQString)")
function = SCHEDULE | MESSAGE | PRE_096;
// scheduleMessage(message, dateTime, colour, font, flags, audioURL, reminder, recurrence)
- else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,const TQFont&,Q_UINT32,const TQString&,Q_INT32,const TQString&)"
- || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQFont,Q_UINT32,TQString,Q_UINT32,TQString)")
+ else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,const TQFont&,TQ_UINT32,const TQString&,TQ_INT32,const TQString&)"
+ || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQFont,TQ_UINT32,TQString,TQ_UINT32,TQString)")
function = SCHEDULE | MESSAGE | FONT | PRE_096;
// scheduleMessage(message, dateTime, colour, flags, audioURL, reminder, recurType, interval, recurCount)
- else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,Q_INT32,Q_INT32,Q_INT32)"
- || func == "scheduleMessage(TQString,TQDateTime,TQColor,Q_UINT32,TQString,Q_INT32,Q_INT32,Q_INT32,Q_INT32)")
+ else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,TQ_INT32,TQ_INT32,TQ_INT32)"
+ || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQ_UINT32,TQString,TQ_INT32,TQ_INT32,TQ_INT32,TQ_INT32)")
function = SCHEDULE | MESSAGE | REP_COUNT | PRE_096;
// scheduleMessage(message, dateTime, colour, flags, audioURL, reminder, recurType, interval, endTime)
- else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,Q_INT32,Q_INT32,const TQDateTime&)"
- || func == "scheduleMessage(TQString,TQDateTime,TQColor,Q_UINT32,TQString,Q_INT32,Q_INT32,Q_INT32,TQDateTime)")
+ else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,TQ_INT32,TQ_INT32,const TQDateTime&)"
+ || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQ_UINT32,TQString,TQ_INT32,TQ_INT32,TQ_INT32,TQDateTime)")
function = SCHEDULE | MESSAGE | REP_END | PRE_096;
// Deprecated methods: backwards compatibility with KAlarm pre-0.9.1
// scheduleMessage(message, dateTime, colour, flags, audioURL)
- else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,const TQString&)"
- || func == "scheduleMessage(TQString,TQDateTime,TQColor,Q_UINT32,TQString)")
+ else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,const TQString&)"
+ || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQ_UINT32,TQString)")
function = SCHEDULE | MESSAGE | PRE_091;
// scheduleFile(URL, dateTime, colour, flags, audioURL)
- else if (func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,const TQString&)"
- || func == "scheduleFile(TQString,TQDateTime,TQColor,Q_UINT32,TQString)")
+ else if (func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,const TQString&)"
+ || func == "scheduleFile(TQString,TQDateTime,TQColor,TQ_UINT32,TQString)")
function = SCHEDULE | FILE | PRE_091;
// scheduleMessage(message, dateTime, colour, flags, audioURL, recurType, interval, recurCount)
- else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,Q_INT32,Q_INT32)"
- || func == "scheduleMessage(TQString,TQDateTime,TQColor,Q_UINT32,TQString,Q_INT32,Q_INT32,Q_INT32)")
+ else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,TQ_INT32,TQ_INT32)"
+ || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQ_UINT32,TQString,TQ_INT32,TQ_INT32,TQ_INT32)")
function = SCHEDULE | MESSAGE | REP_COUNT | PRE_091;
// scheduleFile(URL, dateTime, colour, flags, audioURL, recurType, interval, recurCount)
- else if (func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,Q_INT32,Q_INT32)"
- || func == "scheduleFile(TQString,TQDateTime,TQColor,Q_UINT32,TQString,Q_INT32,Q_INT32,Q_INT32)")
+ else if (func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,TQ_INT32,TQ_INT32)"
+ || func == "scheduleFile(TQString,TQDateTime,TQColor,TQ_UINT32,TQString,TQ_INT32,TQ_INT32,TQ_INT32)")
function = SCHEDULE | FILE | REP_COUNT | PRE_091;
// scheduleMessage(message, dateTime, colour, flags, audioURL, recurType, interval, endTime)
- else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,Q_INT32,const TQDateTime&)"
- || func == "scheduleMessage(TQString,TQDateTime,TQColor,Q_UINT32,TQString,Q_INT32,Q_INT32,TQDateTime)")
+ else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,TQ_INT32,const TQDateTime&)"
+ || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQ_UINT32,TQString,TQ_INT32,TQ_INT32,TQDateTime)")
function = SCHEDULE | MESSAGE | REP_END | PRE_091;
// scheduleFile(URL, dateTime, colour, flags, audioURL, recurType, interval, endTime)
- else if (func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,const TQString&,Q_INT32,Q_INT32,const TQDateTime&)"
- || func == "scheduleFile(TQString,TQDateTime,TQColor,Q_UINT32,TQString,Q_INT32,Q_INT32,TQDateTime)")
+ else if (func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,const TQString&,TQ_INT32,TQ_INT32,const TQDateTime&)"
+ || func == "scheduleFile(TQString,TQDateTime,TQColor,TQ_UINT32,TQString,TQ_INT32,TQ_INT32,TQDateTime)")
function = SCHEDULE | FILE | REP_END | PRE_091;
// Obsolete methods: backwards compatibility with KAlarm pre-0.7
- else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,Q_INT32,Q_INT32)"
- || func == "scheduleMessage(TQString,TQDateTime,TQColor,Q_UINT32,Q_INT32,Q_INT32)"
- || func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,Q_UINT32,Q_INT32,Q_INT32)"
- || func == "scheduleFile(TQString,TQDateTime,TQColor,Q_UINT32,Q_INT32,Q_INT32)"
- || func == "scheduleCommand(const TQString&,const TQDateTime&,Q_UINT32,Q_INT32,Q_INT32)"
- || func == "scheduleCommand(TQString,TQDateTime,Q_UINT32,Q_INT32,Q_INT32)"
+ else if (func == "scheduleMessage(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,TQ_INT32,TQ_INT32)"
+ || func == "scheduleMessage(TQString,TQDateTime,TQColor,TQ_UINT32,TQ_INT32,TQ_INT32)"
+ || func == "scheduleFile(const TQString&,const TQDateTime&,const TQColor&,TQ_UINT32,TQ_INT32,TQ_INT32)"
+ || func == "scheduleFile(TQString,TQDateTime,TQColor,TQ_UINT32,TQ_INT32,TQ_INT32)"
+ || func == "scheduleCommand(const TQString&,const TQDateTime&,TQ_UINT32,TQ_INT32,TQ_INT32)"
+ || func == "scheduleCommand(TQString,TQDateTime,TQ_UINT32,TQ_INT32,TQ_INT32)"
// Obsolete methods: backwards compatibility with KAlarm pre-0.6
|| func == "cancelMessage(const TQString&,const TQString&)"
|| func == "cancelMessage(TQString,TQString)"
@@ -677,10 +677,10 @@ bool DcopHandlerOld::process(const TQCString& func, const TQByteArray& data, TQC
TQColor bgColour;
TQColor fgColour(Qt::black);
TQFont font;
- Q_UINT32 flags;
+ TQ_UINT32 flags;
int lateCancel = 0;
KARecurrence recurrence;
- Q_INT32 reminderMinutes = 0;
+ TQ_INT32 reminderMinutes = 0;
if (action == KAEvent::EMAIL)
{
TQString addresses, attachments;
@@ -731,9 +731,9 @@ bool DcopHandlerOld::process(const TQCString& func, const TQByteArray& data, TQC
if (function & (REP_COUNT | REP_END))
{
KARecurrence::Type recurType;
- Q_INT32 recurCount = 0;
- Q_INT32 recurInterval;
- Q_INT32 type;
+ TQ_INT32 recurCount = 0;
+ TQ_INT32 recurInterval;
+ TQ_INT32 type;
arg >> type >> recurInterval;
switch (type)
{
diff --git a/kalarm/deferdlg.cpp b/kalarm/deferdlg.cpp
index 60fce82c5..9df852a93 100644
--- a/kalarm/deferdlg.cpp
+++ b/kalarm/deferdlg.cpp
@@ -48,14 +48,14 @@ DeferAlarmDlg::DeferAlarmDlg(const TQString& caption, const DateTime& initialDT,
TQWidget* page = new TQWidget(this);
setMainWidget(page);
- TQVBoxLayout* layout = new TQVBoxLayout(page, 0, spacingHint());
+ TQVBoxLayout* tqlayout = new TQVBoxLayout(page, 0, spacingHint());
mTimeWidget = new AlarmTimeWidget(AlarmTimeWidget::DEFER_TIME, page, "timeGroup");
mTimeWidget->setDateTime(initialDT);
mTimeWidget->setMinDateTimeIsCurrent();
connect(mTimeWidget, TQT_SIGNAL(pastMax()), TQT_SLOT(slotPastLimit()));
- layout->addWidget(mTimeWidget);
- layout->addSpacing(spacingHint());
+ tqlayout->addWidget(mTimeWidget);
+ tqlayout->addSpacing(spacingHint());
setButtonWhatsThis(Ok, i18n("Defer the alarm until the specified time."));
setButtonWhatsThis(User1, i18n("Cancel the deferred alarm. This does not affect future recurrences."));
diff --git a/kalarm/editdlg.cpp b/kalarm/editdlg.cpp
index bd22fdd9a..e5cd07dcd 100644
--- a/kalarm/editdlg.cpp
+++ b/kalarm/editdlg.cpp
@@ -102,7 +102,7 @@ class PickAlarmFileRadio : public PickFileRadio
virtual TQString pickFile() // called when browse button is pressed to select a file to display
{
return KAlarm::browseFile(i18n("Choose Text or Image File to Display"), mDefaultDir, fileEdit()->text(),
- TQString::null, KFile::ExistingOnly, parentWidget(), "pickAlarmFile");
+ TQString::null, KFile::ExistingOnly, tqparentWidget(), "pickAlarmFile");
}
private:
TQString mDefaultDir; // default directory for file browse button
@@ -119,7 +119,7 @@ class PickLogFileRadio : public PickFileRadio
virtual TQString pickFile() // called when browse button is pressed to select a log file
{
return KAlarm::browseFile(i18n("Choose Log File"), mDefaultDir, fileEdit()->text(), TQString::null,
- KFile::LocalOnly, parentWidget(), "pickLogFile");
+ KFile::LocalOnly, tqparentWidget(), "pickLogFile");
}
private:
TQString mDefaultDir; // default directory for log file browse button
@@ -129,7 +129,7 @@ inline TQString recurText(const KAEvent& event)
{
TQString r;
if (event.repeatCount())
- r = TQString::fromLatin1("%1 / %2").arg(event.recurrenceText()).arg(event.repetitionText());
+ r = TQString::tqfromLatin1("%1 / %2").arg(event.recurrenceText()).arg(event.repetitionText());
else
r = event.recurrenceText();
return i18n("&Recurrence - [%1]").arg(r);
@@ -196,12 +196,12 @@ EditAlarmDlg::EditAlarmDlg(bool Template, const TQString& caption, TQWidget* par
TQHBox* box = new TQHBox(mainWidget);
box->setSpacing(spacingHint());
TQLabel* label = new TQLabel(i18n("Template name:"), box);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
mTemplateName = new TQLineEdit(box);
mTemplateName->setReadOnly(mReadOnly);
label->setBuddy(mTemplateName);
TQWhatsThis::add(box, i18n("Enter the name of the alarm template"));
- box->setFixedHeight(box->sizeHint().height());
+ box->setFixedHeight(box->tqsizeHint().height());
}
mTabs = new TQTabWidget(mainWidget);
mTabs->setMargin(marginHint());
@@ -230,13 +230,13 @@ EditAlarmDlg::EditAlarmDlg(bool Template, const TQString& caption, TQWidget* par
mActionGroup = new ButtonGroup(i18n("Action"), mainPage, "actionGroup");
connect(mActionGroup, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(slotAlarmTypeChanged(int)));
topLayout->addWidget(mActionGroup, 1);
- TQBoxLayout* layout = new TQVBoxLayout(mActionGroup, marginHint(), spacingHint());
- layout->addSpacing(fontMetrics().lineSpacing()/2);
- TQGridLayout* grid = new TQGridLayout(layout, 1, 5);
+ TQBoxLayout* tqlayout = new TQVBoxLayout(mActionGroup, marginHint(), spacingHint());
+ tqlayout->addSpacing(fontMetrics().lineSpacing()/2);
+ TQGridLayout* grid = new TQGridLayout(tqlayout, 1, 5);
// Message radio button
mMessageRadio = new RadioButton(i18n("Te&xt"), mActionGroup, "messageButton");
- mMessageRadio->setFixedSize(mMessageRadio->sizeHint());
+ mMessageRadio->setFixedSize(mMessageRadio->tqsizeHint());
TQWhatsThis::add(mMessageRadio,
i18n("If checked, the alarm will display a text message."));
grid->addWidget(mMessageRadio, 1, 0);
@@ -244,7 +244,7 @@ EditAlarmDlg::EditAlarmDlg(bool Template, const TQString& caption, TQWidget* par
// File radio button
mFileRadio = new PickAlarmFileRadio(i18n("&File"), mActionGroup, "fileButton");
- mFileRadio->setFixedSize(mFileRadio->sizeHint());
+ mFileRadio->setFixedSize(mFileRadio->tqsizeHint());
TQWhatsThis::add(mFileRadio,
i18n("If checked, the alarm will display the contents of a text or image file."));
grid->addWidget(mFileRadio, 1, 2);
@@ -252,7 +252,7 @@ EditAlarmDlg::EditAlarmDlg(bool Template, const TQString& caption, TQWidget* par
// Command radio button
mCommandRadio = new RadioButton(i18n("Co&mmand"), mActionGroup, "cmdButton");
- mCommandRadio->setFixedSize(mCommandRadio->sizeHint());
+ mCommandRadio->setFixedSize(mCommandRadio->tqsizeHint());
TQWhatsThis::add(mCommandRadio,
i18n("If checked, the alarm will execute a shell command."));
grid->addWidget(mCommandRadio, 1, 4);
@@ -260,81 +260,81 @@ EditAlarmDlg::EditAlarmDlg(bool Template, const TQString& caption, TQWidget* par
// Email radio button
mEmailRadio = new RadioButton(i18n("&Email"), mActionGroup, "emailButton");
- mEmailRadio->setFixedSize(mEmailRadio->sizeHint());
+ mEmailRadio->setFixedSize(mEmailRadio->tqsizeHint());
TQWhatsThis::add(mEmailRadio,
i18n("If checked, the alarm will send an email."));
grid->addWidget(mEmailRadio, 1, 6);
initDisplayAlarms(mActionGroup);
- layout->addWidget(mDisplayAlarmsFrame);
+ tqlayout->addWidget(mDisplayAlarmsFrame);
initCommand(mActionGroup);
- layout->addWidget(mCommandFrame);
+ tqlayout->addWidget(mCommandFrame);
initEmail(mActionGroup);
- layout->addWidget(mEmailFrame);
+ tqlayout->addWidget(mEmailFrame);
// Deferred date/time: visible only for a deferred recurring event.
mDeferGroup = new TQGroupBox(1, Qt::Vertical, i18n("Deferred Alarm"), mainPage, "deferGroup");
topLayout->addWidget(mDeferGroup);
TQLabel* label = new TQLabel(i18n("Deferred to:"), mDeferGroup);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
mDeferTimeLabel = new TQLabel(mDeferGroup);
mDeferChangeButton = new TQPushButton(i18n("C&hange..."), mDeferGroup);
- mDeferChangeButton->setFixedSize(mDeferChangeButton->sizeHint());
+ mDeferChangeButton->setFixedSize(mDeferChangeButton->tqsizeHint());
connect(mDeferChangeButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotEditDeferral()));
TQWhatsThis::add(mDeferChangeButton, i18n("Change the alarm's deferred time, or cancel the deferral"));
mDeferGroup->addSpace(0);
- layout = new TQHBoxLayout(topLayout);
+ tqlayout = new TQHBoxLayout(topLayout);
// Date and time entry
if (mTemplate)
{
mTemplateTimeGroup = new ButtonGroup(i18n("Time"), mainPage, "templateGroup");
connect(mTemplateTimeGroup, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(slotTemplateTimeType(int)));
- layout->addWidget(mTemplateTimeGroup);
+ tqlayout->addWidget(mTemplateTimeGroup);
grid = new TQGridLayout(mTemplateTimeGroup, 2, 2, marginHint(), spacingHint());
grid->addRowSpacing(0, fontMetrics().lineSpacing()/2);
- // Get alignment to use in TQGridLayout (AlignAuto doesn't work correctly there)
- int alignment = TQApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
+ // Get tqalignment to use in TQGridLayout (AlignAuto doesn't work correctly there)
+ int tqalignment = TQApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
mTemplateDefaultTime = new RadioButton(i18n("&Default time"), mTemplateTimeGroup, "templateDefTimeButton");
- mTemplateDefaultTime->setFixedSize(mTemplateDefaultTime->sizeHint());
+ mTemplateDefaultTime->setFixedSize(mTemplateDefaultTime->tqsizeHint());
mTemplateDefaultTime->setReadOnly(mReadOnly);
TQWhatsThis::add(mTemplateDefaultTime,
i18n("Do not specify a start time for alarms based on this template. "
"The normal default start time will be used."));
- grid->addWidget(mTemplateDefaultTime, 0, 0, alignment);
+ grid->addWidget(mTemplateDefaultTime, 0, 0, tqalignment);
TQHBox* box = new TQHBox(mTemplateTimeGroup);
box->setSpacing(spacingHint());
mTemplateUseTime = new RadioButton(i18n("Time:"), box, "templateTimeButton");
- mTemplateUseTime->setFixedSize(mTemplateUseTime->sizeHint());
+ mTemplateUseTime->setFixedSize(mTemplateUseTime->tqsizeHint());
mTemplateUseTime->setReadOnly(mReadOnly);
TQWhatsThis::add(mTemplateUseTime,
i18n("Specify a start time for alarms based on this template."));
mTemplateTimeGroup->insert(mTemplateUseTime);
mTemplateTime = new TimeEdit(box, "templateTimeEdit");
- mTemplateTime->setFixedSize(mTemplateTime->sizeHint());
+ mTemplateTime->setFixedSize(mTemplateTime->tqsizeHint());
mTemplateTime->setReadOnly(mReadOnly);
TQWhatsThis::add(mTemplateTime,
TQString("%1\n\n%2").arg(i18n("Enter the start time for alarms based on this template."))
.arg(TimeSpinBox::shiftWhatsThis()));
box->setStretchFactor(new TQWidget(box), 1); // left adjust the controls
- box->setFixedHeight(box->sizeHint().height());
- grid->addWidget(box, 0, 1, alignment);
+ box->setFixedHeight(box->tqsizeHint().height());
+ grid->addWidget(box, 0, 1, tqalignment);
mTemplateAnyTime = new RadioButton(i18n("An&y time"), mTemplateTimeGroup, "templateAnyTimeButton");
- mTemplateAnyTime->setFixedSize(mTemplateAnyTime->sizeHint());
+ mTemplateAnyTime->setFixedSize(mTemplateAnyTime->tqsizeHint());
mTemplateAnyTime->setReadOnly(mReadOnly);
TQWhatsThis::add(mTemplateAnyTime,
i18n("Set the '%1' option for alarms based on this template.").arg(i18n("Any time")));
- grid->addWidget(mTemplateAnyTime, 1, 0, alignment);
+ grid->addWidget(mTemplateAnyTime, 1, 0, tqalignment);
box = new TQHBox(mTemplateTimeGroup);
box->setSpacing(spacingHint());
mTemplateUseTimeAfter = new RadioButton(AlarmTimeWidget::i18n_w_TimeFromNow(), box, "templateFromNowButton");
- mTemplateUseTimeAfter->setFixedSize(mTemplateUseTimeAfter->sizeHint());
+ mTemplateUseTimeAfter->setFixedSize(mTemplateUseTimeAfter->tqsizeHint());
mTemplateUseTimeAfter->setReadOnly(mReadOnly);
TQWhatsThis::add(mTemplateUseTimeAfter,
i18n("Set alarms based on this template to start after the specified time "
@@ -342,15 +342,15 @@ EditAlarmDlg::EditAlarmDlg(bool Template, const TQString& caption, TQWidget* par
mTemplateTimeGroup->insert(mTemplateUseTimeAfter);
mTemplateTimeAfter = new TimeSpinBox(1, maxDelayTime, box);
mTemplateTimeAfter->setValue(1439);
- mTemplateTimeAfter->setFixedSize(mTemplateTimeAfter->sizeHint());
+ mTemplateTimeAfter->setFixedSize(mTemplateTimeAfter->tqsizeHint());
mTemplateTimeAfter->setReadOnly(mReadOnly);
TQWhatsThis::add(mTemplateTimeAfter,
TQString("%1\n\n%2").arg(AlarmTimeWidget::i18n_TimeAfterPeriod())
.arg(TimeSpinBox::shiftWhatsThis()));
- box->setFixedHeight(box->sizeHint().height());
- grid->addWidget(box, 1, 1, alignment);
+ box->setFixedHeight(box->tqsizeHint().height());
+ grid->addWidget(box, 1, 1, tqalignment);
- layout->addStretch();
+ tqlayout->addStretch();
}
else
{
@@ -365,7 +365,7 @@ EditAlarmDlg::EditAlarmDlg(bool Template, const TQString& caption, TQWidget* par
i18n("Check to additionally display a reminder in advance of the main alarm time(s)."),
TQString("%1\n\n%2").arg(reminderText).arg(TimeSpinBox::shiftWhatsThis()),
true, true, mainPage);
- mReminder->setFixedSize(mReminder->sizeHint());
+ mReminder->setFixedSize(mReminder->tqsizeHint());
topLayout->addWidget(mReminder, 0, Qt::AlignAuto);
// Late cancel selector - default = allow late display
@@ -373,20 +373,20 @@ EditAlarmDlg::EditAlarmDlg(bool Template, const TQString& caption, TQWidget* par
topLayout->addWidget(mLateCancel, 0, Qt::AlignAuto);
// Acknowledgement confirmation required - default = no confirmation
- layout = new TQHBoxLayout(topLayout, 0);
+ tqlayout = new TQHBoxLayout(topLayout, 0);
mConfirmAck = createConfirmAckCheckbox(mainPage);
- mConfirmAck->setFixedSize(mConfirmAck->sizeHint());
- layout->addWidget(mConfirmAck);
- layout->addSpacing(2*spacingHint());
- layout->addStretch();
+ mConfirmAck->setFixedSize(mConfirmAck->tqsizeHint());
+ tqlayout->addWidget(mConfirmAck);
+ tqlayout->addSpacing(2*spacingHint());
+ tqlayout->addStretch();
if (theApp()->korganizerEnabled())
{
// Show in KOrganizer checkbox
mShowInKorganizer = new CheckBox(i18n_ShowInKOrganizer(), mainPage);
- mShowInKorganizer->setFixedSize(mShowInKorganizer->sizeHint());
+ mShowInKorganizer->setFixedSize(mShowInKorganizer->tqsizeHint());
TQWhatsThis::add(mShowInKorganizer, i18n("Check to copy the alarm into KOrganizer's calendar"));
- layout->addWidget(mShowInKorganizer);
+ tqlayout->addWidget(mShowInKorganizer);
}
setButtonWhatsThis(Ok, i18n("Schedule the alarm at the specified time."));
@@ -436,40 +436,40 @@ void EditAlarmDlg::initDisplayAlarms(TQWidget* parent)
// File browse button
mFileBrowseButton = new TQPushButton(mFileBox);
mFileBrowseButton->setPixmap(SmallIcon("fileopen"));
- mFileBrowseButton->setFixedSize(mFileBrowseButton->sizeHint());
+ mFileBrowseButton->setFixedSize(mFileBrowseButton->tqsizeHint());
TQToolTip::add(mFileBrowseButton, i18n("Choose a file"));
TQWhatsThis::add(mFileBrowseButton, i18n("Select a text or image file to display."));
mFileRadio->init(mFileBrowseButton, mFileMessageEdit);
// Font and colour choice button and sample text
mFontColourButton = new FontColourButton(mDisplayAlarmsFrame);
- mFontColourButton->setMaximumHeight(mFontColourButton->sizeHint().height());
+ mFontColourButton->setMaximumHeight(mFontColourButton->tqsizeHint().height());
frameLayout->addWidget(mFontColourButton);
- TQHBoxLayout* layout = new TQHBoxLayout(frameLayout, 0, 0);
+ TQHBoxLayout* tqlayout = new TQHBoxLayout(frameLayout, 0, 0);
mBgColourBox = new TQHBox(mDisplayAlarmsFrame);
mBgColourBox->setSpacing(spacingHint());
- layout->addWidget(mBgColourBox);
- layout->addStretch();
+ tqlayout->addWidget(mBgColourBox);
+ tqlayout->addStretch();
TQLabel* label = new TQLabel(i18n("&Background color:"), mBgColourBox);
mBgColourButton = new ColourCombo(mBgColourBox);
label->setBuddy(mBgColourButton);
TQWhatsThis::add(mBgColourBox, i18n("Select the alarm message background color"));
// Sound checkbox and file selector
- layout = new TQHBoxLayout(frameLayout);
+ tqlayout = new TQHBoxLayout(frameLayout);
mSoundPicker = new SoundPicker(mDisplayAlarmsFrame);
- mSoundPicker->setFixedSize(mSoundPicker->sizeHint());
- layout->addWidget(mSoundPicker);
- layout->addSpacing(2*spacingHint());
- layout->addStretch();
+ mSoundPicker->setFixedSize(mSoundPicker->tqsizeHint());
+ tqlayout->addWidget(mSoundPicker);
+ tqlayout->addSpacing(2*spacingHint());
+ tqlayout->addStretch();
if (ShellProcess::authorised()) // don't display if shell commands not allowed (e.g. kiosk mode)
{
// Special actions button
mSpecialActionsButton = new SpecialActionsButton(i18n_SpecialActions(), mDisplayAlarmsFrame);
- mSpecialActionsButton->setFixedSize(mSpecialActionsButton->sizeHint());
- layout->addWidget(mSpecialActionsButton);
+ mSpecialActionsButton->setFixedSize(mSpecialActionsButton->tqsizeHint());
+ tqlayout->addWidget(mSpecialActionsButton);
}
// Top-adjust the controls
@@ -488,7 +488,7 @@ void EditAlarmDlg::initCommand(TQWidget* parent)
TQBoxLayout* frameLayout = new TQVBoxLayout(mCommandFrame, 0, spacingHint());
mCmdTypeScript = new CheckBox(i18n_p_EnterScript(), mCommandFrame);
- mCmdTypeScript->setFixedSize(mCmdTypeScript->sizeHint());
+ mCmdTypeScript->setFixedSize(mCmdTypeScript->tqsizeHint());
connect(mCmdTypeScript, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotCmdScriptToggled(bool)));
TQWhatsThis::add(mCmdTypeScript, i18n("Check to enter the contents of a script instead of a shell command line"));
frameLayout->addWidget(mCmdTypeScript, 0, Qt::AlignAuto);
@@ -505,20 +505,20 @@ void EditAlarmDlg::initCommand(TQWidget* parent)
mCmdOutputGroup = new ButtonGroup(i18n("Command Output"), mCommandFrame);
frameLayout->addWidget(mCmdOutputGroup);
- TQBoxLayout* layout = new TQVBoxLayout(mCmdOutputGroup, marginHint(), spacingHint());
- layout->addSpacing(fontMetrics().lineSpacing()/2);
+ TQBoxLayout* tqlayout = new TQVBoxLayout(mCmdOutputGroup, marginHint(), spacingHint());
+ tqlayout->addSpacing(fontMetrics().lineSpacing()/2);
// Execute in terminal window
RadioButton* button = new RadioButton(i18n_u_ExecInTermWindow(), mCmdOutputGroup, "execInTerm");
- button->setFixedSize(button->sizeHint());
+ button->setFixedSize(button->tqsizeHint());
TQWhatsThis::add(button, i18n("Check to execute the command in a terminal window"));
mCmdOutputGroup->insert(button, EXEC_IN_TERMINAL);
- layout->addWidget(button, 0, Qt::AlignAuto);
+ tqlayout->addWidget(button, 0, Qt::AlignAuto);
// Log file name edit box
TQHBox* box = new TQHBox(mCmdOutputGroup);
(new TQWidget(box))->setFixedWidth(button->style().subRect(TQStyle::SR_RadioButtonIndicator, button).width()); // indent the edit box
-// (new TQWidget(box))->setFixedWidth(button->style().pixelMetric(TQStyle::PM_ExclusiveIndicatorWidth)); // indent the edit box
+// (new TQWidget(box))->setFixedWidth(button->style().tqpixelMetric(TQStyle::PM_ExclusiveIndicatorWidth)); // indent the edit box
mCmdLogFileEdit = new LineEdit(LineEdit::Url, box);
mCmdLogFileEdit->setAcceptDrops(true);
TQWhatsThis::add(mCmdLogFileEdit, i18n("Enter the name or path of the log file."));
@@ -527,25 +527,25 @@ void EditAlarmDlg::initCommand(TQWidget* parent)
// The file browser dialogue is activated by the PickLogFileRadio class.
TQPushButton* browseButton = new TQPushButton(box);
browseButton->setPixmap(SmallIcon("fileopen"));
- browseButton->setFixedSize(browseButton->sizeHint());
+ browseButton->setFixedSize(browseButton->tqsizeHint());
TQToolTip::add(browseButton, i18n("Choose a file"));
TQWhatsThis::add(browseButton, i18n("Select a log file."));
// Log output to file
button = new PickLogFileRadio(browseButton, mCmdLogFileEdit, i18n_g_LogToFile(), mCmdOutputGroup, "cmdLog");
- button->setFixedSize(button->sizeHint());
+ button->setFixedSize(button->tqsizeHint());
TQWhatsThis::add(button,
i18n("Check to log the command output to a local file. The output will be appended to any existing contents of the file."));
mCmdOutputGroup->insert(button, LOG_TO_FILE);
- layout->addWidget(button, 0, Qt::AlignAuto);
- layout->addWidget(box);
+ tqlayout->addWidget(button, 0, Qt::AlignAuto);
+ tqlayout->addWidget(box);
// Discard output
button = new RadioButton(i18n("Discard"), mCmdOutputGroup, "cmdDiscard");
- button->setFixedSize(button->sizeHint());
+ button->setFixedSize(button->tqsizeHint());
TQWhatsThis::add(button, i18n("Check to discard command output."));
mCmdOutputGroup->insert(button, DISCARD_OUTPUT);
- layout->addWidget(button, 0, Qt::AlignAuto);
+ tqlayout->addWidget(button, 0, Qt::AlignAuto);
// Top-adjust the controls
mCmdPadding = new TQHBox(mCommandFrame);
@@ -560,8 +560,8 @@ void EditAlarmDlg::initEmail(TQWidget* parent)
{
mEmailFrame = new TQFrame(parent);
mEmailFrame->setFrameStyle(TQFrame::NoFrame);
- TQBoxLayout* layout = new TQVBoxLayout(mEmailFrame, 0, spacingHint());
- TQGridLayout* grid = new TQGridLayout(layout, 3, 3, spacingHint());
+ TQBoxLayout* tqlayout = new TQVBoxLayout(mEmailFrame, 0, spacingHint());
+ TQGridLayout* grid = new TQGridLayout(tqlayout, 3, 3, spacingHint());
grid->setColStretch(1, 1);
mEmailFromList = 0;
@@ -569,11 +569,11 @@ void EditAlarmDlg::initEmail(TQWidget* parent)
{
// Email sender identity
TQLabel* label = new TQLabel(i18n_EmailFrom(), mEmailFrame);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
grid->addWidget(label, 0, 0);
mEmailFromList = new EmailIdCombo(KAMail::identityManager(), mEmailFrame);
- mEmailFromList->setMinimumSize(mEmailFromList->sizeHint());
+ mEmailFromList->setMinimumSize(mEmailFromList->tqsizeHint());
label->setBuddy(mEmailFromList);
TQWhatsThis::add(mEmailFromList,
i18n("Your email identity, used to identify you as the sender when sending email alarms."));
@@ -582,11 +582,11 @@ void EditAlarmDlg::initEmail(TQWidget* parent)
// Email recipients
TQLabel* label = new TQLabel(i18n_EmailTo(), mEmailFrame);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
grid->addWidget(label, 1, 0);
mEmailToEdit = new LineEdit(LineEdit::Emails, mEmailFrame);
- mEmailToEdit->setMinimumSize(mEmailToEdit->sizeHint());
+ mEmailToEdit->setMinimumSize(mEmailToEdit->tqsizeHint());
TQWhatsThis::add(mEmailToEdit,
i18n("Enter the addresses of the email recipients. Separate multiple addresses by "
"commas or semicolons."));
@@ -594,7 +594,7 @@ void EditAlarmDlg::initEmail(TQWidget* parent)
mEmailAddressButton = new TQPushButton(mEmailFrame);
mEmailAddressButton->setPixmap(SmallIcon("contents"));
- mEmailAddressButton->setFixedSize(mEmailAddressButton->sizeHint());
+ mEmailAddressButton->setFixedSize(mEmailAddressButton->tqsizeHint());
connect(mEmailAddressButton, TQT_SIGNAL(clicked()), TQT_SLOT(openAddressBook()));
TQToolTip::add(mEmailAddressButton, i18n("Open address book"));
TQWhatsThis::add(mEmailAddressButton, i18n("Select email addresses from your address book."));
@@ -602,11 +602,11 @@ void EditAlarmDlg::initEmail(TQWidget* parent)
// Email subject
label = new TQLabel(i18n_j_EmailSubject(), mEmailFrame);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
grid->addWidget(label, 2, 0);
mEmailSubjectEdit = new LineEdit(mEmailFrame);
- mEmailSubjectEdit->setMinimumSize(mEmailSubjectEdit->sizeHint());
+ mEmailSubjectEdit->setMinimumSize(mEmailSubjectEdit->tqsizeHint());
label->setBuddy(mEmailSubjectEdit);
TQWhatsThis::add(mEmailSubjectEdit, i18n("Enter the email subject."));
grid->addMultiCellWidget(mEmailSubjectEdit, 2, 2, 1, 2);
@@ -614,19 +614,19 @@ void EditAlarmDlg::initEmail(TQWidget* parent)
// Email body
mEmailMessageEdit = new TextEdit(mEmailFrame);
TQWhatsThis::add(mEmailMessageEdit, i18n("Enter the email message."));
- layout->addWidget(mEmailMessageEdit);
+ tqlayout->addWidget(mEmailMessageEdit);
// Email attachments
- grid = new TQGridLayout(layout, 2, 3, spacingHint());
+ grid = new TQGridLayout(tqlayout, 2, 3, spacingHint());
label = new TQLabel(i18n("Attachment&s:"), mEmailFrame);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
grid->addWidget(label, 0, 0);
mEmailAttachList = new TQComboBox(true, mEmailFrame);
- mEmailAttachList->setMinimumSize(mEmailAttachList->sizeHint());
+ mEmailAttachList->setMinimumSize(mEmailAttachList->tqsizeHint());
mEmailAttachList->lineEdit()->setReadOnly(true);
TQListBox* list = mEmailAttachList->listBox();
-TQRect rect = list->geometry();
+TQRect rect = list->tqgeometry();
list->setGeometry(rect.left() - 50, rect.top(), rect.width(), rect.height());
label->setBuddy(mEmailAttachList);
TQWhatsThis::add(mEmailAttachList,
@@ -646,7 +646,7 @@ list->setGeometry(rect.left() - 50, rect.top(), rect.width(), rect.height());
// BCC email to sender
mEmailBcc = new CheckBox(i18n_s_CopyEmailToSelf(), mEmailFrame);
- mEmailBcc->setFixedSize(mEmailBcc->sizeHint());
+ mEmailBcc->setFixedSize(mEmailBcc->tqsizeHint());
TQWhatsThis::add(mEmailBcc,
i18n("If checked, the email will be blind copied to you."));
grid->addMultiCellWidget(mEmailBcc, 1, 1, 0, 1, Qt::AlignAuto);
@@ -708,7 +708,7 @@ void EditAlarmDlg::initialise(const KAEvent* event)
if (event->isTemplate())
{
// Initialising from an alarm template: use current date
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
int afterTime = event->templateAfterTime();
if (afterTime >= 0)
{
@@ -750,7 +750,7 @@ void EditAlarmDlg::initialise(const KAEvent* event)
TimePeriod::HOURS_MINUTES);
mLateCancel->showAutoClose(action == KAEvent::MESSAGE || action == KAEvent::FILE);
mLateCancel->setAutoClose(event->autoClose());
- mLateCancel->setFixedSize(mLateCancel->sizeHint());
+ mLateCancel->setFixedSize(mLateCancel->tqsizeHint());
if (mShowInKorganizer)
mShowInKorganizer->setChecked(event->copyToKOrganizer());
mConfirmAck->setChecked(event->confirmAck());
@@ -804,7 +804,7 @@ void EditAlarmDlg::initialise(const KAEvent* event)
mFontColourButton->setBgColour(Preferences::defaultBgColour());
mFontColourButton->setFgColour(Preferences::defaultFgColour());
mBgColourButton->setColour(Preferences::defaultBgColour());
- TQDateTime defaultTime = TQDateTime::currentDateTime().addSecs(60);
+ TQDateTime defaultTime = TQDateTime::tqcurrentDateTime().addSecs(60);
if (mTemplate)
{
mTemplateTimeGroup->setButton(mTemplateTimeGroup->id(mTemplateDefaultTime));
@@ -817,7 +817,7 @@ void EditAlarmDlg::initialise(const KAEvent* event)
mLateCancel->setMinutes((Preferences::defaultLateCancel() ? 1 : 0), false, TimePeriod::HOURS_MINUTES);
mLateCancel->showAutoClose(true);
mLateCancel->setAutoClose(Preferences::defaultAutoClose());
- mLateCancel->setFixedSize(mLateCancel->sizeHint());
+ mLateCancel->setFixedSize(mLateCancel->tqsizeHint());
if (mShowInKorganizer)
mShowInKorganizer->setChecked(Preferences::defaultCopyToKOrganizer());
mConfirmAck->setChecked(Preferences::defaultConfirmAck());
@@ -1212,7 +1212,7 @@ void EditAlarmDlg::setEvent(KAEvent& event, const TQString& text, bool trial)
if (mRecurrenceEdit->repeatType() != RecurrenceEdit::NO_RECUR)
{
mRecurrenceEdit->updateEvent(event, !mTemplate);
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
bool dateOnly = mAlarmDateTime.isDateOnly();
if (dateOnly && mAlarmDateTime.date() < now.date()
|| !dateOnly && mAlarmDateTime.rawDateTime() < now)
@@ -1232,7 +1232,7 @@ void EditAlarmDlg::setEvent(KAEvent& event, const TQString& text, bool trial)
DateTime remindTime = mAlarmDateTime.addMins(-reminder);
if (mDeferDateTime >= remindTime)
{
- if (remindTime > TQDateTime::currentDateTime())
+ if (remindTime > TQDateTime::tqcurrentDateTime())
deferral = false; // ignore deferral if it's after next reminder
else if (mDeferDateTime > remindTime)
deferReminder = true; // it's the reminder which is being deferred
@@ -1298,7 +1298,7 @@ void EditAlarmDlg::showEvent(TQShowEvent* se)
if (KAlarm::readConfigWindowSize(EDIT_DIALOG_NAME, s))
s.setHeight(s.height() + (mDeferGroup->isHidden() ? 0 : mDeferGroupHeight));
else
- s = minimumSize();
+ s = tqminimumSize();
resize(s);
}
KWin::setOnDesktop(winId(), mDesktop); // ensure it displays on the desktop expected by the user
@@ -1381,7 +1381,7 @@ void EditAlarmDlg::slotOk()
{
if (timedRecurrence)
{
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
if (mAlarmDateTime.date() < now.date()
|| mAlarmDateTime.date() == now.date()
&& !mAlarmDateTime.isDateOnly() && mAlarmDateTime.time() < now.time())
@@ -1530,7 +1530,7 @@ void EditAlarmDlg::slotEditDeferral()
return;
limit = false;
}
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
if (limit)
{
if (repeatCount && start < now)
@@ -1557,7 +1557,7 @@ void EditAlarmDlg::slotEditDeferral()
if (reminder)
{
DateTime remindTime = start.addMins(-reminder);
- if (TQDateTime::currentDateTime() < remindTime)
+ if (TQDateTime::tqcurrentDateTime() < remindTime)
start = remindTime;
}
deferDlg.setLimit(start.addSecs(-60));
@@ -1604,7 +1604,7 @@ void EditAlarmDlg::slotShowRecurrenceEdit()
mRecurPageIndex = mTabs->currentPageIndex();
if (!mReadOnly && !mTemplate)
{
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
mAlarmDateTime = mTimeWidget->getDateTime(0, false, false);
bool expired = (mAlarmDateTime.dateTime() < now);
if (mRecurSetDefaultEndDate)
@@ -1826,7 +1826,7 @@ void EditAlarmDlg::slotAlarmTypeChanged(int)
focus = mEmailToEdit;
}
mLateCancel->showAutoClose(displayAlarm);
- mLateCancel->setFixedSize(mLateCancel->sizeHint());
+ mLateCancel->setFixedSize(mLateCancel->tqsizeHint());
if (focus)
focus->setFocus();
}
@@ -1948,7 +1948,7 @@ bool EditAlarmDlg::checkText(TQString& result, bool showErrorMessage) const
enum Err { NONE = 0, BLANK, NONEXISTENT, DIRECTORY, UNREADABLE, NOT_TEXT_IMAGE };
Err err = NONE;
KURL url;
- int i = alarmtext.find(TQString::fromLatin1("/"));
+ int i = alarmtext.find(TQString::tqfromLatin1("/"));
if (i > 0 && alarmtext[i - 1] == ':')
{
url = alarmtext;
@@ -1973,7 +1973,7 @@ bool EditAlarmDlg::checkText(TQString& result, bool showErrorMessage) const
TQDir::setCurrent(TQDir::homeDirPath());
alarmtext = info.absFilePath();
url.setPath(alarmtext);
- alarmtext = TQString::fromLatin1("file:") + alarmtext;
+ alarmtext = TQString::tqfromLatin1("file:") + alarmtext;
if (!err)
{
if (info.isDir()) err = DIRECTORY;
@@ -2030,7 +2030,7 @@ bool EditAlarmDlg::checkText(TQString& result, bool showErrorMessage) const
TextEdit::TextEdit(TQWidget* parent, const char* name)
: KTextEdit(parent, name)
{
- TQSize tsize = sizeHint();
+ TQSize tsize = tqsizeHint();
tsize.setHeight(fontMetrics().lineSpacing()*13/4 + 2*frameWidth());
setMinimumSize(tsize);
}
diff --git a/kalarm/eventlistviewbase.cpp b/kalarm/eventlistviewbase.cpp
index a0f5d4952..23af4aafc 100644
--- a/kalarm/eventlistviewbase.cpp
+++ b/kalarm/eventlistviewbase.cpp
@@ -458,8 +458,8 @@ TQString EventListWhatsThisBase::text(const TQPoint& pt)
int column = -1;
TQPoint viewportPt = mListView->viewport()->mapFrom(mListView, pt);
TQRect frame = mListView->header()->frameGeometry();
- if (frame.contains(pt)
- || mListView->itemAt(TQPoint(mListView->itemMargin(), viewportPt.y())) && frame.contains(TQPoint(pt.x(), frame.y())))
+ if (frame.tqcontains(pt)
+ || mListView->itemAt(TQPoint(mListView->itemMargin(), viewportPt.y())) && frame.tqcontains(TQPoint(pt.x(), frame.y())))
column = mListView->header()->sectionAt(pt.x());
return mListView->whatsThisText(column);
}
diff --git a/kalarm/find.cpp b/kalarm/find.cpp
index a05517826..1bec3c7a8 100644
--- a/kalarm/find.cpp
+++ b/kalarm/find.cpp
@@ -90,24 +90,24 @@ void Find::display()
mDialog = new KFindDialog(false, mListView, "FindDlg", mOptions, mHistory, (mListView->selectedCount() > 1));
#endif
mDialog->setHasSelection(false);
- TQWidget* kalarmWidgets = mDialog->findExtension();
+ TQWidget* kalarmWidgets = mDialog->tqfindExtension();
// Alarm types
- TQBoxLayout* layout = new TQVBoxLayout(kalarmWidgets, 0, KDialog::spacingHint());
+ TQBoxLayout* tqlayout = new TQVBoxLayout(kalarmWidgets, 0, KDialog::spacingHint());
TQGroupBox* group = new TQGroupBox(i18n("Alarm Type"), kalarmWidgets);
- layout->addWidget(group);
+ tqlayout->addWidget(group);
TQGridLayout* grid = new TQGridLayout(group, 2, 2, KDialog::marginHint(), KDialog::spacingHint());
grid->addRowSpacing(0, mDialog->fontMetrics().lineSpacing()/2);
grid->setColStretch(1, 1);
// Live & expired alarm selection
mLive = new TQCheckBox(i18n("Acti&ve"), group);
- mLive->setFixedSize(mLive->sizeHint());
+ mLive->setFixedSize(mLive->tqsizeHint());
TQWhatsThis::add(mLive, i18n("Check to include active alarms in the search."));
grid->addWidget(mLive, 1, 0, Qt::AlignAuto);
mExpired = new TQCheckBox(i18n("Ex&pired"), group);
- mExpired->setFixedSize(mExpired->sizeHint());
+ mExpired->setFixedSize(mExpired->tqsizeHint());
TQWhatsThis::add(mExpired,
i18n("Check to include expired alarms in the search. "
"This option is only available if expired alarms are currently being displayed."));
@@ -118,22 +118,22 @@ void Find::display()
// Alarm actions
mMessageType = new TQCheckBox(i18n("Text"), group, "message");
- mMessageType->setFixedSize(mMessageType->sizeHint());
+ mMessageType->setFixedSize(mMessageType->tqsizeHint());
TQWhatsThis::add(mMessageType, i18n("Check to include text message alarms in the search."));
grid->addWidget(mMessageType, 3, 0);
mFileType = new TQCheckBox(i18n("Fi&le"), group, "file");
- mFileType->setFixedSize(mFileType->sizeHint());
+ mFileType->setFixedSize(mFileType->tqsizeHint());
TQWhatsThis::add(mFileType, i18n("Check to include file alarms in the search."));
grid->addWidget(mFileType, 3, 2);
mCommandType = new TQCheckBox(i18n("Co&mmand"), group, "command");
- mCommandType->setFixedSize(mCommandType->sizeHint());
+ mCommandType->setFixedSize(mCommandType->tqsizeHint());
TQWhatsThis::add(mCommandType, i18n("Check to include command alarms in the search."));
grid->addWidget(mCommandType, 4, 0);
mEmailType = new TQCheckBox(i18n("&Email"), group, "email");
- mEmailType->setFixedSize(mEmailType->sizeHint());
+ mEmailType->setFixedSize(mEmailType->tqsizeHint());
TQWhatsThis::add(mEmailType, i18n("Check to include email alarms in the search."));
grid->addWidget(mEmailType, 4, 2);
@@ -211,7 +211,7 @@ void Find::slotFind()
{
if (!mDialog)
return;
- mHistory = mDialog->findHistory(); // save search history so that it can be displayed again
+ mHistory = mDialog->tqfindHistory(); // save search history so that it can be displayed again
mOptions = mDialog->options() & ~FIND_KALARM_OPTIONS;
mOptions |= (mLive->isEnabled() && mLive->isChecked() ? FIND_LIVE : 0)
| (mExpired->isEnabled() && mExpired->isChecked() ? FIND_EXPIRED : 0)
diff --git a/kalarm/fontcolour.cpp b/kalarm/fontcolour.cpp
index 4273125a3..94497b969 100644
--- a/kalarm/fontcolour.cpp
+++ b/kalarm/fontcolour.cpp
@@ -57,8 +57,8 @@ FontColourChooser::FontColourChooser(TQWidget *parent, const char *name,
topLayout = new TQVBoxLayout(page, KDialog::marginHint(), KDialog::spacingHint());
topLayout->addSpacing(fontMetrics().height() - KDialog::marginHint() + KDialog::spacingHint());
}
- TQHBoxLayout* hlayout = new TQHBoxLayout(topLayout);
- TQVBoxLayout* colourLayout = new TQVBoxLayout(hlayout);
+ TQHBoxLayout* htqlayout = new TQHBoxLayout(topLayout);
+ TQVBoxLayout* colourLayout = new TQVBoxLayout(htqlayout);
if (fg)
{
TQHBox* box = new TQHBox(page); // to group widgets for TQWhatsThis text
@@ -83,35 +83,35 @@ FontColourChooser::FontColourChooser(TQWidget *parent, const char *name,
connect(mBgColourButton, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(setSampleColour()));
label->setBuddy(mBgColourButton);
TQWhatsThis::add(box, i18n("Select the alarm message background color"));
- hlayout->addStretch();
+ htqlayout->addStretch();
if (editColours)
{
- TQHBoxLayout* layout = new TQHBoxLayout(topLayout);
+ TQHBoxLayout* tqlayout = new TQHBoxLayout(topLayout);
TQPushButton* button = new TQPushButton(i18n("Add Co&lor..."), page);
- button->setFixedSize(button->sizeHint());
+ button->setFixedSize(button->tqsizeHint());
connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddColour()));
TQWhatsThis::add(button, i18n("Choose a new color to add to the color selection list."));
- layout->addWidget(button);
+ tqlayout->addWidget(button);
mRemoveColourButton = new TQPushButton(i18n("&Remove Color"), page);
- mRemoveColourButton->setFixedSize(mRemoveColourButton->sizeHint());
+ mRemoveColourButton->setFixedSize(mRemoveColourButton->tqsizeHint());
connect(mRemoveColourButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotRemoveColour()));
TQWhatsThis::add(mRemoveColourButton,
i18n("Remove the color currently shown in the background color chooser, from the color selection list."));
- layout->addWidget(mRemoveColourButton);
+ tqlayout->addWidget(mRemoveColourButton);
}
if (defaultFont)
{
- TQHBoxLayout* layout = new TQHBoxLayout(topLayout);
+ TQHBoxLayout* tqlayout = new TQHBoxLayout(topLayout);
mDefaultFont = new CheckBox(i18n("Use &default font"), page);
- mDefaultFont->setMinimumSize(mDefaultFont->sizeHint());
+ mDefaultFont->setMinimumSize(mDefaultFont->tqsizeHint());
connect(mDefaultFont, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotDefaultFontToggled(bool)));
TQWhatsThis::add(mDefaultFont,
i18n("Check to use the default font current at the time the alarm is displayed."));
- layout->addWidget(mDefaultFont);
- layout->addWidget(new TQWidget(page)); // left adjust the widget
+ tqlayout->addWidget(mDefaultFont);
+ tqlayout->addWidget(new TQWidget(page)); // left adjust the widget
}
else
mDefaultFont = 0;
diff --git a/kalarm/fontcolourbutton.cpp b/kalarm/fontcolourbutton.cpp
index 48d0f9220..62888d462 100644
--- a/kalarm/fontcolourbutton.cpp
+++ b/kalarm/fontcolourbutton.cpp
@@ -43,26 +43,26 @@ FontColourButton::FontColourButton(TQWidget* parent, const char* name)
mReadOnly(false)
{
setFrameStyle(NoFrame);
- TQHBoxLayout* layout = new TQHBoxLayout(this, 0, KDialog::spacingHint());
+ TQHBoxLayout* tqlayout = new TQHBoxLayout(this, 0, KDialog::spacingHint());
mButton = new PushButton(i18n("Font && Co&lor..."), this);
- mButton->setFixedSize(mButton->sizeHint());
+ mButton->setFixedSize(mButton->tqsizeHint());
connect(mButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotButtonPressed()));
TQWhatsThis::add(mButton,
i18n("Choose the font, and foreground and background color, for the alarm message."));
- layout->addWidget(mButton);
+ tqlayout->addWidget(mButton);
// Font and colour sample display
mSample = new TQLineEdit(this);
mSample->setMinimumHeight(QMAX(mSample->fontMetrics().lineSpacing(), mButton->height()*3/2));
- mSample->setSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::MinimumExpanding);
+ mSample->tqsetSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::MinimumExpanding);
mSample->setText(i18n("The Quick Brown Fox Jumps Over The Lazy Dog"));
mSample->setCursorPosition(0);
- mSample->setAlignment(Qt::AlignCenter);
+ mSample->tqsetAlignment(Qt::AlignCenter);
TQWhatsThis::add(mSample,
i18n("This sample text illustrates the current font and color settings. "
"You may edit it to test special characters."));
- layout->addWidget(mSample);
+ tqlayout->addWidget(mSample);
}
void FontColourButton::setDefaultFont()
@@ -125,7 +125,7 @@ FontColourDlg::FontColourDlg(const TQColor& bgColour, const TQColor& fgColour, c
{
TQWidget* page = new TQWidget(this);
setMainWidget(page);
- TQVBoxLayout* layout = new TQVBoxLayout(page, 0, spacingHint());
+ TQVBoxLayout* tqlayout = new TQVBoxLayout(page, 0, spacingHint());
mChooser = new FontColourChooser(page, 0, false, TQStringList(), TQString::null, false, true, true);
mChooser->setBgColour(bgColour);
mChooser->setFgColour(fgColour);
@@ -133,8 +133,8 @@ FontColourDlg::FontColourDlg(const TQColor& bgColour, const TQColor& fgColour, c
mChooser->setDefaultFont();
else
mChooser->setFont(font);
- layout->addWidget(mChooser);
- layout->addSpacing(KDialog::spacingHint());
+ tqlayout->addWidget(mChooser);
+ tqlayout->addSpacing(KDialog::spacingHint());
}
/******************************************************************************
diff --git a/kalarm/functions.cpp b/kalarm/functions.cpp
index 28f73499d..db0ff7d34 100644
--- a/kalarm/functions.cpp
+++ b/kalarm/functions.cpp
@@ -174,7 +174,7 @@ bool addExpiredEvent(KAEvent& event)
return false;
bool archiving = (KAEvent::uidStatus(event.id()) == KAEvent::ACTIVE);
if (archiving)
- event.setSaveDateTime(TQDateTime::currentDateTime()); // time stamp to control purging
+ event.setSaveDateTime(TQDateTime::tqcurrentDateTime()); // time stamp to control purging
KCal::Event* kcalEvent = cal->addEvent(event);
cal->save();
@@ -429,7 +429,7 @@ UpdateStatus reactivateEvent(KAEvent& event, AlarmListView* selectionView, bool
// Delete the event from the expired calendar file
if (KAEvent::uidStatus(id) == KAEvent::EXPIRED)
{
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
if (event.occursAfter(now, true))
{
if (event.recurs() || event.repeatCount())
@@ -639,7 +639,7 @@ void outputAlarmWarnings(TQWidget* parent, const KAEvent* event)
{
if (KMessageBox::warningYesNo(parent, i18n("Alarms are currently disabled.\nDo you want to enable alarms now?"),
TQString::null, i18n("Enable"), i18n("Keep Disabled"),
- TQString::fromLatin1("EditEnableAlarms"))
+ TQString::tqfromLatin1("EditEnableAlarms"))
== KMessageBox::Yes)
Daemon::setAlarmsEnabled();
}
@@ -712,8 +712,8 @@ TQString runKMail(bool minimise)
/******************************************************************************
* Start another program for DCOP access if it isn't already running.
* If 'windowName' is not empty, the program's window of that name is iconised.
-* On exit, 'dcopName' contains the DCOP name to access the application, and
-* 'errorMessage' contains an error message if failure.
+* On exit, 'dcopName' tqcontains the DCOP name to access the application, and
+* 'errorMessage' tqcontains an error message if failure.
* Reply = true if the program is now running.
*/
bool runProgram(const TQCString& program, const TQCString& windowName, TQCString& dcopName, TQString& errorMessage)
@@ -721,7 +721,7 @@ bool runProgram(const TQCString& program, const TQCString& windowName, TQCString
if (!kapp->dcopClient()->isApplicationRegistered(program))
{
// KOrganizer is not already running, so start it
- if (KApplication::startServiceByDesktopName(TQString::fromLatin1(program), TQString::null, &errorMessage, &dcopName))
+ if (KApplication::startServiceByDesktopName(TQString::tqfromLatin1(program), TQString::null, &errorMessage, &dcopName))
{
kdError(5950) << "runProgram(): couldn't start " << program << " (" << errorMessage << ")\n";
return false;
@@ -746,10 +746,10 @@ bool runProgram(const TQCString& program, const TQCString& windowName, TQCString
bool readConfigWindowSize(const char* window, TQSize& result)
{
KConfig* config = KGlobal::config();
- config->setGroup(TQString::fromLatin1(window));
+ config->setGroup(TQString::tqfromLatin1(window));
TQWidget* desktop = KApplication::desktop();
- TQSize s = TQSize(config->readNumEntry(TQString::fromLatin1("Width %1").arg(desktop->width()), 0),
- config->readNumEntry(TQString::fromLatin1("Height %1").arg(desktop->height()), 0));
+ TQSize s = TQSize(config->readNumEntry(TQString::tqfromLatin1("Width %1").arg(desktop->width()), 0),
+ config->readNumEntry(TQString::tqfromLatin1("Height %1").arg(desktop->height()), 0));
if (s.isEmpty())
return false;
result = s;
@@ -763,10 +763,10 @@ bool readConfigWindowSize(const char* window, TQSize& result)
void writeConfigWindowSize(const char* window, const TQSize& size)
{
KConfig* config = KGlobal::config();
- config->setGroup(TQString::fromLatin1(window));
+ config->setGroup(TQString::tqfromLatin1(window));
TQWidget* desktop = KApplication::desktop();
- config->writeEntry(TQString::fromLatin1("Width %1").arg(desktop->width()), size.width());
- config->writeEntry(TQString::fromLatin1("Height %1").arg(desktop->height()), size.height());
+ config->writeEntry(TQString::tqfromLatin1("Width %1").arg(desktop->width()), size.width());
+ config->writeEntry(TQString::tqfromLatin1("Height %1").arg(desktop->height()), size.height());
config->sync();
}
@@ -793,7 +793,7 @@ int getVersionNumber(const TQString& version, TQString* subVersion)
// if the representation returned by this method changes.
if (subVersion)
*subVersion = TQString::null;
- int count = version.contains('.') + 1;
+ int count = version.tqcontains('.') + 1;
if (count < 2)
return 0;
bool ok;
@@ -834,20 +834,20 @@ FileType fileType(const TQString& mimetype)
static const char* formattedTextTypes[] = {
"html", "xml", 0 };
- if (mimetype.startsWith(TQString::fromLatin1("image/")))
+ if (mimetype.startsWith(TQString::tqfromLatin1("image/")))
return Image;
int slash = mimetype.find('/');
if (slash < 0)
return Unknown;
TQString type = mimetype.mid(slash + 1);
const char* typel = type.latin1();
- if (mimetype.startsWith(TQString::fromLatin1("application")))
+ if (mimetype.startsWith(TQString::tqfromLatin1("application")))
{
for (int i = 0; applicationTypes[i]; ++i)
if (!strcmp(typel, applicationTypes[i]))
return TextApplication;
}
- else if (mimetype.startsWith(TQString::fromLatin1("text")))
+ else if (mimetype.startsWith(TQString::tqfromLatin1("text")))
{
for (int i = 0; formattedTextTypes[i]; ++i)
if (!strcmp(typel, formattedTextTypes[i]))
@@ -905,7 +905,7 @@ TQString stripAccel(const TQString& text)
{
unsigned len = text.length();
TQString out = TQDeepCopy<TQString>(text);
- TQChar *corig = (TQChar*)out.unicode();
+ TQChar *corig = (TQChar*)out.tqunicode();
TQChar *cout = corig;
TQChar *cin = cout;
while (len)
@@ -1032,7 +1032,7 @@ bool runKOrganizer()
{
TQString error;
TQCString dcopService;
- int result = KDCOPServiceStarter::self()->findServiceFor("DCOP/Organizer", TQString::null, TQString::null, &error, &dcopService);
+ int result = KDCOPServiceStarter::self()->tqfindServiceFor("DCOP/Organizer", TQString::null, TQString::null, &error, &dcopService);
if (result)
{
kdDebug(5950) << "Unable to start DCOP/Organizer: " << dcopService << " " << error << endl;
@@ -1042,7 +1042,7 @@ bool runKOrganizer()
// to load KOrganizer into Kontact. But if KOrganizer is running independently,
// the load() method doesn't exist.
TQCString dummy;
- if (!kapp->dcopClient()->findObject(dcopService, KORG_DCOP_OBJECT, "", TQByteArray(), dummy, dummy))
+ if (!kapp->dcopClient()->tqfindObject(dcopService, KORG_DCOP_OBJECT, "", TQByteArray(), dummy, dummy))
{
DCOPRef ref(dcopService, dcopService); // talk to the KUniqueApplication or its Kontact wrapper
DCOPReply reply = ref.call("load()");
@@ -1051,7 +1051,7 @@ bool runKOrganizer()
kdWarning(5950) << "Error loading " << dcopService << endl;
return false;
}
- if (!kapp->dcopClient()->findObject(dcopService, KORG_DCOP_OBJECT, "", TQByteArray(), dummy, dummy))
+ if (!kapp->dcopClient()->tqfindObject(dcopService, KORG_DCOP_OBJECT, "", TQByteArray(), dummy, dummy))
{
kdWarning(5950) << "Unable to access KOrganizer's "KORG_DCOP_OBJECT" DCOP object" << endl;
return false;
diff --git a/kalarm/kalarmapp.cpp b/kalarm/kalarmapp.cpp
index 7607892db..a0f008f03 100644
--- a/kalarm/kalarmapp.cpp
+++ b/kalarm/kalarmapp.cpp
@@ -121,8 +121,8 @@ KAlarmApp::KAlarmApp()
connect(AlarmCalendar::expiredCalendar(), TQT_SIGNAL(purged()), TQT_SLOT(slotExpiredPurged()));
KConfig* config = kapp->config();
- config->setGroup(TQString::fromLatin1("General"));
- mNoSystemTray = config->readBoolEntry(TQString::fromLatin1("NoSystemTray"), false);
+ config->setGroup(TQString::tqfromLatin1("General"));
+ mNoSystemTray = config->readBoolEntry(TQString::tqfromLatin1("NoSystemTray"), false);
mSavedNoSystemTray = mNoSystemTray;
mOldRunInSystemTray = wantRunInSystemTray();
mDisableAlarmsIfStopped = mOldRunInSystemTray && !mNoSystemTray && Preferences::disableAlarmsIfStopped();
@@ -139,7 +139,7 @@ KAlarmApp::KAlarmApp()
if (!mSpeechEnabled)
kdDebug(5950) << "KAlarmApp::KAlarmApp(): speech synthesis disabled (KTTSD not found)" << endl;
// Check if KOrganizer is installed
- TQString korg = TQString::fromLatin1("korganizer");
+ TQString korg = TQString::tqfromLatin1("korganizer");
mKOrganizerEnabled = !locate("exe", korg).isNull() || !KStandardDirs::findExe(korg).isNull();
if (!mKOrganizerEnabled)
kdDebug(5950) << "KAlarmApp::KAlarmApp(): KOrganizer options disabled (KOrganizer not found)" << endl;
@@ -205,7 +205,7 @@ bool KAlarmApp::restoreSession()
for (int i = 1; KMainWindow::canBeRestored(i); ++i)
{
TQString type = KMainWindow::classNameOfToplevel(i);
- if (type == TQString::fromLatin1("MainWindow"))
+ if (type == TQString::tqfromLatin1("MainWindow"))
{
MainWindow* win = MainWindow::create(true);
win->restore(i, false);
@@ -214,7 +214,7 @@ bool KAlarmApp::restoreSession()
else
win->show();
}
- else if (type == TQString::fromLatin1("MessageWin"))
+ else if (type == TQString::tqfromLatin1("MessageWin"))
{
MessageWin* win = new MessageWin;
win->restore(i, false);
@@ -329,9 +329,9 @@ int KAlarmApp::newInstance()
if (args->isSet("triggerEvent")) { function = EVENT_TRIGGER; option = "triggerEvent"; ++count; }
if (args->isSet("cancelEvent")) { function = EVENT_CANCEL; option = "cancelEvent"; ++count; }
if (!count)
- USAGE(i18n("%1 requires %2, %3 or %4").arg(TQString::fromLatin1("--calendarURL")).arg(TQString::fromLatin1("--handleEvent")).arg(TQString::fromLatin1("--triggerEvent")).arg(TQString::fromLatin1("--cancelEvent")))
+ USAGE(i18n("%1 requires %2, %3 or %4").arg(TQString::tqfromLatin1("--calendarURL")).arg(TQString::tqfromLatin1("--handleEvent")).arg(TQString::tqfromLatin1("--triggerEvent")).arg(TQString::tqfromLatin1("--cancelEvent")))
if (count > 1)
- USAGE(i18n("%1, %2, %3 mutually exclusive").arg(TQString::fromLatin1("--handleEvent")).arg(TQString::fromLatin1("--triggerEvent")).arg(TQString::fromLatin1("--cancelEvent")));
+ USAGE(i18n("%1, %2, %3 mutually exclusive").arg(TQString::tqfromLatin1("--handleEvent")).arg(TQString::tqfromLatin1("--triggerEvent")).arg(TQString::tqfromLatin1("--cancelEvent")));
if (!initCheck(true)) // open the calendar, don't register with daemon yet
{
exitCode = 1;
@@ -341,11 +341,11 @@ int KAlarmApp::newInstance()
{
TQString calendarUrl = args->getOption("calendarURL");
if (KURL(calendarUrl).url() != AlarmCalendar::activeCalendar()->urlString())
- USAGE(i18n("%1: wrong calendar file").arg(TQString::fromLatin1("--calendarURL")))
+ USAGE(i18n("%1: wrong calendar file").arg(TQString::tqfromLatin1("--calendarURL")))
}
TQString eventID = args->getOption(option);
args->clear(); // free up memory
- if (eventID.startsWith(TQString::fromLatin1("ad:")))
+ if (eventID.startsWith(TQString::tqfromLatin1("ad:")))
{
// It's a notification from the alarm deamon
eventID = eventID.mid(3);
@@ -369,7 +369,7 @@ int KAlarmApp::newInstance()
}
if (!KAlarm::edit(eventID))
{
- USAGE(i18n("%1: Event %2 not found, or not editable").arg(TQString::fromLatin1("--edit")).arg(eventID))
+ USAGE(i18n("%1: Event %2 not found, or not editable").arg(TQString::tqfromLatin1("--edit")).arg(eventID))
exitCode = 1;
break;
}
@@ -401,11 +401,11 @@ int KAlarmApp::newInstance()
{
kdDebug(5950)<<"KAlarmApp::newInstance(): file\n";
if (args->isSet("exec"))
- USAGE(i18n("%1 incompatible with %2").arg(TQString::fromLatin1("--exec")).arg(TQString::fromLatin1("--file")))
+ USAGE(i18n("%1 incompatible with %2").arg(TQString::tqfromLatin1("--exec")).arg(TQString::tqfromLatin1("--file")))
if (args->isSet("mail"))
- USAGE(i18n("%1 incompatible with %2").arg(TQString::fromLatin1("--mail")).arg(TQString::fromLatin1("--file")))
+ USAGE(i18n("%1 incompatible with %2").arg(TQString::tqfromLatin1("--mail")).arg(TQString::tqfromLatin1("--file")))
if (args->count())
- USAGE(i18n("message incompatible with %1").arg(TQString::fromLatin1("--file")))
+ USAGE(i18n("message incompatible with %1").arg(TQString::tqfromLatin1("--file")))
alMessage = args->getOption("file");
action = KAEvent::FILE;
}
@@ -413,7 +413,7 @@ int KAlarmApp::newInstance()
{
kdDebug(5950)<<"KAlarmApp::newInstance(): exec\n";
if (args->isSet("mail"))
- USAGE(i18n("%1 incompatible with %2").arg(TQString::fromLatin1("--mail")).arg(TQString::fromLatin1("--exec")))
+ USAGE(i18n("%1 incompatible with %2").arg(TQString::tqfromLatin1("--mail")).arg(TQString::tqfromLatin1("--exec")))
alMessage = args->getOption("exec");
int n = args->count();
for (int i = 0; i < n; ++i)
@@ -435,7 +435,7 @@ int KAlarmApp::newInstance()
{
TQString addr = TQString::fromLocal8Bit(*i);
if (!KAMail::checkAddress(addr))
- USAGE(i18n("%1: invalid email address").arg(TQString::fromLatin1("--mail")))
+ USAGE(i18n("%1: invalid email address").arg(TQString::tqfromLatin1("--mail")))
alAddresses += KCal::Person(TQString::null, addr);
}
params = args->getOptionList("attach");
@@ -453,13 +453,13 @@ int KAlarmApp::newInstance()
if (action != KAEvent::EMAIL)
{
if (args->isSet("subject"))
- USAGE(i18n("%1 requires %2").arg(TQString::fromLatin1("--subject")).arg(TQString::fromLatin1("--mail")))
+ USAGE(i18n("%1 requires %2").arg(TQString::tqfromLatin1("--subject")).arg(TQString::tqfromLatin1("--mail")))
if (args->isSet("from-id"))
- USAGE(i18n("%1 requires %2").arg(TQString::fromLatin1("--from-id")).arg(TQString::fromLatin1("--mail")))
+ USAGE(i18n("%1 requires %2").arg(TQString::tqfromLatin1("--from-id")).arg(TQString::tqfromLatin1("--mail")))
if (args->isSet("attach"))
- USAGE(i18n("%1 requires %2").arg(TQString::fromLatin1("--attach")).arg(TQString::fromLatin1("--mail")))
+ USAGE(i18n("%1 requires %2").arg(TQString::tqfromLatin1("--attach")).arg(TQString::tqfromLatin1("--mail")))
if (args->isSet("bcc"))
- USAGE(i18n("%1 requires %2").arg(TQString::fromLatin1("--bcc")).arg(TQString::fromLatin1("--mail")))
+ USAGE(i18n("%1 requires %2").arg(TQString::tqfromLatin1("--bcc")).arg(TQString::tqfromLatin1("--mail")))
}
bool alarmNoTime = false;
@@ -475,10 +475,10 @@ int KAlarmApp::newInstance()
TQCString colourText = args->getOption("color");
if (static_cast<const char*>(colourText)[0] == '0'
&& tolower(static_cast<const char*>(colourText)[1]) == 'x')
- colourText.replace(0, 2, "#");
+ colourText.tqreplace(0, 2, "#");
bgColour.setNamedColor(colourText);
if (!bgColour.isValid())
- USAGE(i18n("Invalid %1 parameter").arg(TQString::fromLatin1("--color")))
+ USAGE(i18n("Invalid %1 parameter").arg(TQString::tqfromLatin1("--color")))
}
if (args->isSet("colorfg"))
{
@@ -486,28 +486,28 @@ int KAlarmApp::newInstance()
TQCString colourText = args->getOption("colorfg");
if (static_cast<const char*>(colourText)[0] == '0'
&& tolower(static_cast<const char*>(colourText)[1]) == 'x')
- colourText.replace(0, 2, "#");
+ colourText.tqreplace(0, 2, "#");
fgColour.setNamedColor(colourText);
if (!fgColour.isValid())
- USAGE(i18n("Invalid %1 parameter").arg(TQString::fromLatin1("--colorfg")))
+ USAGE(i18n("Invalid %1 parameter").arg(TQString::tqfromLatin1("--colorfg")))
}
if (args->isSet("time"))
{
TQCString dateTime = args->getOption("time");
if (!convWakeTime(dateTime, alarmTime, alarmNoTime))
- USAGE(i18n("Invalid %1 parameter").arg(TQString::fromLatin1("--time")))
+ USAGE(i18n("Invalid %1 parameter").arg(TQString::tqfromLatin1("--time")))
}
else
- alarmTime = TQDateTime::currentDateTime();
+ alarmTime = TQDateTime::tqcurrentDateTime();
bool haveRecurrence = args->isSet("recurrence");
if (haveRecurrence)
{
if (args->isSet("login"))
- USAGE(i18n("%1 incompatible with %2").arg(TQString::fromLatin1("--login")).arg(TQString::fromLatin1("--recurrence")))
+ USAGE(i18n("%1 incompatible with %2").arg(TQString::tqfromLatin1("--login")).arg(TQString::tqfromLatin1("--recurrence")))
if (args->isSet("until"))
- USAGE(i18n("%1 incompatible with %2").arg(TQString::fromLatin1("--until")).arg(TQString::fromLatin1("--recurrence")))
+ USAGE(i18n("%1 incompatible with %2").arg(TQString::tqfromLatin1("--until")).arg(TQString::tqfromLatin1("--recurrence")))
TQCString rule = args->getOption("recurrence");
recurrence.set(TQString::fromLocal8Bit(static_cast<const char*>(rule)));
}
@@ -516,24 +516,24 @@ int KAlarmApp::newInstance()
// Repeat count is specified
int count;
if (args->isSet("login"))
- USAGE(i18n("%1 incompatible with %2").arg(TQString::fromLatin1("--login")).arg(TQString::fromLatin1("--interval")))
+ USAGE(i18n("%1 incompatible with %2").arg(TQString::tqfromLatin1("--login")).arg(TQString::tqfromLatin1("--interval")))
bool ok;
if (args->isSet("repeat"))
{
count = args->getOption("repeat").toInt(&ok);
if (!ok || !count || count < -1 || (count < 0 && haveRecurrence))
- USAGE(i18n("Invalid %1 parameter").arg(TQString::fromLatin1("--repeat")))
+ USAGE(i18n("Invalid %1 parameter").arg(TQString::tqfromLatin1("--repeat")))
}
else if (haveRecurrence)
- USAGE(i18n("%1 requires %2").arg(TQString::fromLatin1("--interval")).arg(TQString::fromLatin1("--repeat")))
+ USAGE(i18n("%1 requires %2").arg(TQString::tqfromLatin1("--interval")).arg(TQString::tqfromLatin1("--repeat")))
else if (args->isSet("until"))
{
count = 0;
TQCString dateTime = args->getOption("until");
if (!convWakeTime(dateTime, endTime, alarmNoTime))
- USAGE(i18n("Invalid %1 parameter").arg(TQString::fromLatin1("--until")))
+ USAGE(i18n("Invalid %1 parameter").arg(TQString::tqfromLatin1("--until")))
if (endTime < alarmTime)
- USAGE(i18n("%1 earlier than %2").arg(TQString::fromLatin1("--until")).arg(TQString::fromLatin1("--time")))
+ USAGE(i18n("%1 earlier than %2").arg(TQString::tqfromLatin1("--until")).arg(TQString::tqfromLatin1("--time")))
}
else
count = -1;
@@ -543,16 +543,16 @@ int KAlarmApp::newInstance()
KARecurrence::Type recurType;
if (!convInterval(args->getOption("interval"), recurType, interval, !haveRecurrence)
|| interval < 0)
- USAGE(i18n("Invalid %1 parameter").arg(TQString::fromLatin1("--interval")))
+ USAGE(i18n("Invalid %1 parameter").arg(TQString::tqfromLatin1("--interval")))
if (alarmNoTime && recurType == KARecurrence::MINUTELY)
- USAGE(i18n("Invalid %1 parameter for date-only alarm").arg(TQString::fromLatin1("--interval")))
+ USAGE(i18n("Invalid %1 parameter for date-only alarm").arg(TQString::tqfromLatin1("--interval")))
if (haveRecurrence)
{
// There is a also a recurrence specified, so set up a sub-repetition
int longestInterval = recurrence.longestInterval();
if (count * interval > longestInterval)
- USAGE(i18n("Invalid %1 and %2 parameters: repetition is longer than %3 interval").arg(TQString::fromLatin1("--interval")).arg(TQString::fromLatin1("--repeat")).arg(TQString::fromLatin1("--recurrence")));
+ USAGE(i18n("Invalid %1 and %2 parameters: repetition is longer than %3 interval").arg(TQString::tqfromLatin1("--interval")).arg(TQString::tqfromLatin1("--repeat")).arg(TQString::tqfromLatin1("--recurrence")));
repeatCount = count;
repeatInterval = interval;
}
@@ -566,9 +566,9 @@ int KAlarmApp::newInstance()
else
{
if (args->isSet("repeat"))
- USAGE(i18n("%1 requires %2").arg(TQString::fromLatin1("--repeat")).arg(TQString::fromLatin1("--interval")))
+ USAGE(i18n("%1 requires %2").arg(TQString::tqfromLatin1("--repeat")).arg(TQString::tqfromLatin1("--interval")))
if (args->isSet("until"))
- USAGE(i18n("%1 requires %2").arg(TQString::fromLatin1("--until")).arg(TQString::fromLatin1("--interval")))
+ USAGE(i18n("%1 requires %2").arg(TQString::tqfromLatin1("--until")).arg(TQString::tqfromLatin1("--interval")))
}
TQCString audioFile;
@@ -582,11 +582,11 @@ int KAlarmApp::newInstance()
{
// Play a sound with the alarm
if (audioRepeat && args->isSet("play"))
- USAGE(i18n("%1 incompatible with %2").arg(TQString::fromLatin1("--play")).arg(TQString::fromLatin1("--play-repeat")))
+ USAGE(i18n("%1 incompatible with %2").arg(TQString::tqfromLatin1("--play")).arg(TQString::tqfromLatin1("--play-repeat")))
if (args->isSet("beep"))
- USAGE(i18n("%1 incompatible with %2").arg(TQString::fromLatin1("--beep")).arg(TQString::fromLatin1(audioRepeat ? "--play-repeat" : "--play")))
+ USAGE(i18n("%1 incompatible with %2").arg(TQString::tqfromLatin1("--beep")).arg(TQString::tqfromLatin1(audioRepeat ? "--play-repeat" : "--play")))
if (args->isSet("speak"))
- USAGE(i18n("%1 incompatible with %2").arg(TQString::fromLatin1("--speak")).arg(TQString::fromLatin1(audioRepeat ? "--play-repeat" : "--play")))
+ USAGE(i18n("%1 incompatible with %2").arg(TQString::tqfromLatin1("--speak")).arg(TQString::tqfromLatin1(audioRepeat ? "--play-repeat" : "--play")))
audioFile = args->getOption(audioRepeat ? "play-repeat" : "play");
#ifndef WITHOUT_ARTS
if (args->isSet("volume"))
@@ -594,21 +594,21 @@ int KAlarmApp::newInstance()
bool ok;
int volumepc = args->getOption("volume").toInt(&ok);
if (!ok || volumepc < 0 || volumepc > 100)
- USAGE(i18n("Invalid %1 parameter").arg(TQString::fromLatin1("--volume")))
+ USAGE(i18n("Invalid %1 parameter").arg(TQString::tqfromLatin1("--volume")))
audioVolume = static_cast<float>(volumepc) / 100;
}
#endif
}
#ifndef WITHOUT_ARTS
else if (args->isSet("volume"))
- USAGE(i18n("%1 requires %2 or %3").arg(TQString::fromLatin1("--volume")).arg(TQString::fromLatin1("--play")).arg(TQString::fromLatin1("--play-repeat")))
+ USAGE(i18n("%1 requires %2 or %3").arg(TQString::tqfromLatin1("--volume")).arg(TQString::tqfromLatin1("--play")).arg(TQString::tqfromLatin1("--play-repeat")))
#endif
if (args->isSet("speak"))
{
if (args->isSet("beep"))
- USAGE(i18n("%1 incompatible with %2").arg(TQString::fromLatin1("--beep")).arg(TQString::fromLatin1("--speak")))
+ USAGE(i18n("%1 incompatible with %2").arg(TQString::tqfromLatin1("--beep")).arg(TQString::tqfromLatin1("--speak")))
if (!mSpeechEnabled)
- USAGE(i18n("%1 requires speech synthesis to be configured using KTTSD").arg(TQString::fromLatin1("--speak")))
+ USAGE(i18n("%1 requires speech synthesis to be configured using KTTSD").arg(TQString::tqfromLatin1("--speak")))
}
int reminderMinutes = 0;
bool onceOnly = args->isSet("reminder-once");
@@ -616,12 +616,12 @@ int KAlarmApp::newInstance()
{
// Issue a reminder alarm in advance of the main alarm
if (onceOnly && args->isSet("reminder"))
- USAGE(i18n("%1 incompatible with %2").arg(TQString::fromLatin1("--reminder")).arg(TQString::fromLatin1("--reminder-once")))
- TQString opt = onceOnly ? TQString::fromLatin1("--reminder-once") : TQString::fromLatin1("--reminder");
+ USAGE(i18n("%1 incompatible with %2").arg(TQString::tqfromLatin1("--reminder")).arg(TQString::tqfromLatin1("--reminder-once")))
+ TQString opt = onceOnly ? TQString::tqfromLatin1("--reminder-once") : TQString::tqfromLatin1("--reminder");
if (args->isSet("exec"))
- USAGE(i18n("%1 incompatible with %2").arg(opt).arg(TQString::fromLatin1("--exec")))
+ USAGE(i18n("%1 incompatible with %2").arg(opt).arg(TQString::tqfromLatin1("--exec")))
if (args->isSet("mail"))
- USAGE(i18n("%1 incompatible with %2").arg(opt).arg(TQString::fromLatin1("--mail")))
+ USAGE(i18n("%1 incompatible with %2").arg(opt).arg(TQString::tqfromLatin1("--mail")))
KARecurrence::Type recurType;
TQString optval = args->getOption(onceOnly ? "reminder-once" : "reminder");
if (!convInterval(args->getOption(onceOnly ? "reminder-once" : "reminder"), recurType, reminderMinutes))
@@ -636,10 +636,10 @@ int KAlarmApp::newInstance()
KARecurrence::Type recurType;
bool ok = convInterval(args->getOption("late-cancel"), recurType, lateCancel);
if (!ok || lateCancel <= 0)
- USAGE(i18n("Invalid %1 parameter").arg(TQString::fromLatin1("late-cancel")))
+ USAGE(i18n("Invalid %1 parameter").arg(TQString::tqfromLatin1("late-cancel")))
}
else if (args->isSet("auto-close"))
- USAGE(i18n("%1 requires %2").arg(TQString::fromLatin1("--auto-close")).arg(TQString::fromLatin1("--late-cancel")))
+ USAGE(i18n("%1 requires %2").arg(TQString::tqfromLatin1("--auto-close")).arg(TQString::tqfromLatin1("--late-cancel")))
int flags = KAEvent::DEFAULT_FONT;
if (args->isSet("ack-confirm"))
@@ -683,52 +683,52 @@ int KAlarmApp::newInstance()
// No arguments - run interactively & display the main window
kdDebug(5950)<<"KAlarmApp::newInstance(): interactive\n";
if (args->isSet("ack-confirm"))
- usage += TQString::fromLatin1("--ack-confirm ");
+ usage += TQString::tqfromLatin1("--ack-confirm ");
if (args->isSet("attach"))
- usage += TQString::fromLatin1("--attach ");
+ usage += TQString::tqfromLatin1("--attach ");
if (args->isSet("auto-close"))
- usage += TQString::fromLatin1("--auto-close ");
+ usage += TQString::tqfromLatin1("--auto-close ");
if (args->isSet("bcc"))
- usage += TQString::fromLatin1("--bcc ");
+ usage += TQString::tqfromLatin1("--bcc ");
if (args->isSet("beep"))
- usage += TQString::fromLatin1("--beep ");
+ usage += TQString::tqfromLatin1("--beep ");
if (args->isSet("color"))
- usage += TQString::fromLatin1("--color ");
+ usage += TQString::tqfromLatin1("--color ");
if (args->isSet("colorfg"))
- usage += TQString::fromLatin1("--colorfg ");
+ usage += TQString::tqfromLatin1("--colorfg ");
if (args->isSet("disable"))
- usage += TQString::fromLatin1("--disable ");
+ usage += TQString::tqfromLatin1("--disable ");
if (args->isSet("from-id"))
- usage += TQString::fromLatin1("--from-id ");
+ usage += TQString::tqfromLatin1("--from-id ");
if (args->isSet("korganizer"))
- usage += TQString::fromLatin1("--korganizer ");
+ usage += TQString::tqfromLatin1("--korganizer ");
if (args->isSet("late-cancel"))
- usage += TQString::fromLatin1("--late-cancel ");
+ usage += TQString::tqfromLatin1("--late-cancel ");
if (args->isSet("login"))
- usage += TQString::fromLatin1("--login ");
+ usage += TQString::tqfromLatin1("--login ");
if (args->isSet("play"))
- usage += TQString::fromLatin1("--play ");
+ usage += TQString::tqfromLatin1("--play ");
#ifndef WITHOUT_ARTS
if (args->isSet("play-repeat"))
- usage += TQString::fromLatin1("--play-repeat ");
+ usage += TQString::tqfromLatin1("--play-repeat ");
#endif
if (args->isSet("reminder"))
- usage += TQString::fromLatin1("--reminder ");
+ usage += TQString::tqfromLatin1("--reminder ");
if (args->isSet("reminder-once"))
- usage += TQString::fromLatin1("--reminder-once ");
+ usage += TQString::tqfromLatin1("--reminder-once ");
if (args->isSet("speak"))
- usage += TQString::fromLatin1("--speak ");
+ usage += TQString::tqfromLatin1("--speak ");
if (args->isSet("subject"))
- usage += TQString::fromLatin1("--subject ");
+ usage += TQString::tqfromLatin1("--subject ");
if (args->isSet("time"))
- usage += TQString::fromLatin1("--time ");
+ usage += TQString::tqfromLatin1("--time ");
#ifndef WITHOUT_ARTS
if (args->isSet("volume"))
- usage += TQString::fromLatin1("--volume ");
+ usage += TQString::tqfromLatin1("--volume ");
#endif
if (!usage.isEmpty())
{
- usage += i18n(": option(s) only valid with a message/%1/%2").arg(TQString::fromLatin1("--file")).arg(TQString::fromLatin1("--exec"));
+ usage += i18n(": option(s) only valid with a message/%1/%2").arg(TQString::tqfromLatin1("--file")).arg(TQString::tqfromLatin1("--exec"));
break;
}
@@ -1043,8 +1043,8 @@ bool KAlarmApp::checkSystemTray()
// tray and alarms are disabled when KAlarm is not running, registering with
// NO_START_NOTIFY could result in alarms never being seen.
KConfig* config = kapp->config();
- config->setGroup(TQString::fromLatin1("General"));
- config->writeEntry(TQString::fromLatin1("NoSystemTray"), mNoSystemTray);
+ config->setGroup(TQString::tqfromLatin1("General"));
+ config->writeEntry(TQString::tqfromLatin1("NoSystemTray"), mNoSystemTray);
config->sync();
// Update other settings and reregister with the alarm daemon
@@ -1174,7 +1174,7 @@ bool KAlarmApp::scheduleEvent(KAEvent::Action action, const TQString& text, cons
kdDebug(5950) << "KAlarmApp::scheduleEvent(): " << text << endl;
if (!dateTime.isValid())
return false;
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
if (lateCancel && dateTime < now.addSecs(-maxLateness(lateCancel)))
return true; // alarm time was already expired too long ago
TQDateTime alarmTime = dateTime;
@@ -1266,7 +1266,7 @@ bool KAlarmApp::handleEvent(const TQString& eventID, EventFunc function)
case EVENT_TRIGGER: // handle it if it's due, else execute it regardless
case EVENT_HANDLE: // handle it if it's due
{
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
bool updateCalAndDisplay = false;
bool alarmToExecuteValid = false;
KAAlarm alarmToExecute;
@@ -1502,7 +1502,7 @@ void KAlarmApp::rescheduleAlarm(KAEvent& event, const KAAlarm& alarm, bool updat
else
{
// Reschedule the alarm for its next recurrence.
- KAEvent::OccurType type = event.setNextOccurrence(TQDateTime::currentDateTime());
+ KAEvent::OccurType type = event.setNextOccurrence(TQDateTime::tqcurrentDateTime());
switch (type)
{
case KAEvent::NO_OCCURRENCE:
@@ -1592,9 +1592,9 @@ void* KAlarmApp::execAlarm(KAEvent& event, const KAAlarm& alarm, bool reschedule
MessageWin* win = MessageWin::findEvent(event.id());
// Find if we're changing a reminder message to the real message
bool reminder = (alarm.type() & KAAlarm::REMINDER_ALARM);
- bool replaceReminder = !reminder && win && (win->alarmType() & KAAlarm::REMINDER_ALARM);
+ bool tqreplaceReminder = !reminder && win && (win->alarmType() & KAAlarm::REMINDER_ALARM);
if (!reminder && !event.deferred()
- && (replaceReminder || !win) && !noPreAction
+ && (tqreplaceReminder || !win) && !noPreAction
&& !event.preAction().isEmpty() && ShellProcess::authorised())
{
// It's not a reminder or a deferred alarm, and there is no message window
@@ -1622,11 +1622,11 @@ void* KAlarmApp::execAlarm(KAEvent& event, const KAAlarm& alarm, bool reschedule
delete win; // event is disabled - close its window
else if (!win
|| !win->hasDefer() && !alarm.repeatAtLogin()
- || replaceReminder)
+ || tqreplaceReminder)
{
// Either there isn't already a message for this event,
// or there is a repeat-at-login message with no Defer
- // button, which needs to be replaced with a new message,
+ // button, which needs to be tqreplaced with a new message,
// or the caption needs to be changed from "Reminder" to "Message".
if (win)
win->setRecreating(); // prevent post-alarm actions
@@ -1704,43 +1704,43 @@ ShellProcess* KAlarmApp::doShellCommand(const TQString& command, const KAEvent&
{
// Execute the command in a terminal window.
cmd = Preferences::cmdXTermCommand();
- cmd.replace("%t", aboutData()->programName()); // set the terminal window title
+ cmd.tqreplace("%t", aboutData()->programName()); // set the terminal window title
if (cmd.find("%C") >= 0)
{
// Execute the command from a temporary script file
if (flags & ProcData::TEMP_FILE)
- cmd.replace("%C", command); // the command is already calling a temporary file
+ cmd.tqreplace("%C", command); // the command is already calling a temporary file
else
{
tmpXtermFile = createTempScriptFile(command, true, event, *alarm);
if (tmpXtermFile.isEmpty())
return 0;
- cmd.replace("%C", tmpXtermFile); // %C indicates where to insert the command
+ cmd.tqreplace("%C", tmpXtermFile); // %C indicates where to insert the command
}
}
else if (cmd.find("%W") >= 0)
{
// Execute the command from a temporary script file,
// with a sleep after the command is executed
- tmpXtermFile = createTempScriptFile(command + TQString::fromLatin1("\nsleep 86400\n"), true, event, *alarm);
+ tmpXtermFile = createTempScriptFile(command + TQString::tqfromLatin1("\nsleep 86400\n"), true, event, *alarm);
if (tmpXtermFile.isEmpty())
return 0;
- cmd.replace("%W", tmpXtermFile); // %w indicates where to insert the command
+ cmd.tqreplace("%W", tmpXtermFile); // %w indicates where to insert the command
}
else if (cmd.find("%w") >= 0)
{
// Append a sleep to the command.
- // Quote the command in case it contains characters such as [>|;].
- TQString exec = KShellProcess::quote(command + TQString::fromLatin1("; sleep 86400"));
- cmd.replace("%w", exec); // %w indicates where to insert the command string
+ // Quote the command in case it tqcontains characters such as [>|;].
+ TQString exec = KShellProcess::quote(command + TQString::tqfromLatin1("; sleep 86400"));
+ cmd.tqreplace("%w", exec); // %w indicates where to insert the command string
}
else
{
// Set the command to execute.
- // Put it in quotes in case it contains characters such as [>|;].
+ // Put it in quotes in case it tqcontains characters such as [>|;].
TQString exec = KShellProcess::quote(command);
if (cmd.find("%c") >= 0)
- cmd.replace("%c", exec); // %c indicates where to insert the command string
+ cmd.tqreplace("%c", exec); // %c indicates where to insert the command string
else
cmd.append(exec); // otherwise, simply append the command string
}
@@ -1759,7 +1759,7 @@ ShellProcess* KAlarmApp::doShellCommand(const TQString& command, const KAEvent&
// Set up a logging process to write the command's output to.
connect(proc, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)), TQT_SLOT(slotCommandOutput(KProcess*,char*,int)));
connect(proc, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)), TQT_SLOT(slotCommandOutput(KProcess*,char*,int)));
- logproc = new ShellProcess(TQString::fromLatin1("cat >>%1").arg(event.logFile()));
+ logproc = new ShellProcess(TQString::tqfromLatin1("cat >>%1").arg(event.logFile()));
connect(logproc, TQT_SIGNAL(shellExited(ShellProcess*)), TQT_SLOT(slotLogProcExited(ShellProcess*)));
logproc->start(KProcess::Stdin);
TQCString heading;
@@ -2068,7 +2068,7 @@ static bool convWakeTime(const TQCString& timeParam, TQDateTime& dateTime, bool&
else
{
// Compile the values into a date/time structure
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
if (dt[0] < 0)
date.setYMD(now.date().year(),
(dt[1] < 0 ? now.date().month() : dt[1]),
diff --git a/kalarm/kalarmd/adcalendar.cpp b/kalarm/kalarmd/adcalendar.cpp
index 1f325be48..1b738b043 100644
--- a/kalarm/kalarmd/adcalendar.cpp
+++ b/kalarm/kalarmd/adcalendar.cpp
@@ -37,7 +37,7 @@ TQStringList ADCalendar::mCalendarUrls; // never delete or reorde
ADCalendar::ADCalendar(const TQString& url, const TQCString& appname)
- : KCal::CalendarLocal(TQString::fromLatin1("UTC")),
+ : KCal::CalendarLocal(TQString::tqfromLatin1("UTC")),
mUrlString(url),
mAppName(appname),
mLoaded(false),
diff --git a/kalarm/kalarmd/adconfigdata.cpp b/kalarm/kalarmd/adconfigdata.cpp
index c8c5dd355..68344fa28 100644
--- a/kalarm/kalarmd/adconfigdata.cpp
+++ b/kalarm/kalarmd/adconfigdata.cpp
@@ -31,13 +31,13 @@
#include "adconfigdata.h"
// Config file key strings
-const TQString CLIENT_GROUP(TQString::fromLatin1("Client "));
+const TQString CLIENT_GROUP(TQString::tqfromLatin1("Client "));
const TQRegExp CLIENT_GROUP_SEARCH("^Client ");
// Client data file key strings
-const TQString CALENDAR_KEY(TQString::fromLatin1("Calendar"));
-const TQString TITLE_KEY(TQString::fromLatin1("Title"));
-const TQString DCOP_OBJECT_KEY(TQString::fromLatin1("DCOP object"));
-const TQString START_CLIENT_KEY(TQString::fromLatin1("Start"));
+const TQString CALENDAR_KEY(TQString::tqfromLatin1("Calendar"));
+const TQString TITLE_KEY(TQString::tqfromLatin1("Title"));
+const TQString DCOP_OBJECT_KEY(TQString::tqfromLatin1("DCOP object"));
+const TQString START_CLIENT_KEY(TQString::tqfromLatin1("Start"));
/******************************************************************************
@@ -139,8 +139,8 @@ void ADConfigData::enableAutoStart(bool on)
kdDebug(5900) << "ADConfigData::enableAutoStart(" << on << ")\n";
KConfig* config = KGlobal::config();
config->reparseConfiguration();
- config->setGroup(TQString::fromLatin1(DAEMON_AUTOSTART_SECTION));
- config->writeEntry(TQString::fromLatin1(DAEMON_AUTOSTART_KEY), on);
+ config->setGroup(TQString::tqfromLatin1(DAEMON_AUTOSTART_SECTION));
+ config->writeEntry(TQString::tqfromLatin1(DAEMON_AUTOSTART_KEY), on);
config->sync();
}
diff --git a/kalarm/kalarmd/alarmdaemon.cpp b/kalarm/kalarmd/alarmdaemon.cpp
index d8bcf83a2..4b6495728 100644
--- a/kalarm/kalarmd/alarmdaemon.cpp
+++ b/kalarm/kalarmd/alarmdaemon.cpp
@@ -54,8 +54,8 @@ static const int KALARM_AUTOSTART_TIMEOUT = 30;
static const int SECS_PER_DAY = 3600 * 24;
// KAlarm config file keys
-static const TQString START_OF_DAY(TQString::fromLatin1("StartOfDay"));
-static const TQString AUTOSTART_TRAY(TQString::fromLatin1("AutostartTray"));
+static const TQString START_OF_DAY(TQString::tqfromLatin1("StartOfDay"));
+static const TQString AUTOSTART_TRAY(TQString::tqfromLatin1("AutostartTray"));
AlarmDaemon::AlarmDaemon(bool autostart, TQObject *parent, const char *name)
@@ -84,7 +84,7 @@ AlarmDaemon::AlarmDaemon(bool autostart, TQObject *parent, const char *name)
* itself and instead will simply open a new window.
*/
KConfig kaconfig(locate("config", "kalarmrc"));
- kaconfig.setGroup(TQString::fromLatin1("General"));
+ kaconfig.setGroup(TQString::tqfromLatin1("General"));
autostart = kaconfig.readBoolEntry(AUTOSTART_TRAY, false);
if (autostart)
{
@@ -119,8 +119,8 @@ void AlarmDaemon::autostartKAlarm()
}
kdDebug(5900) << "AlarmDaemon::autostartKAlarm(): starting KAlarm\n";
TQStringList args;
- args << TQString::fromLatin1("--tray");
- int ret = KApplication::kdeinitExec(TQString::fromLatin1("kalarm"), args);
+ args << TQString::tqfromLatin1("--tray");
+ int ret = KApplication::kdeinitExec(TQString::tqfromLatin1("kalarm"), args);
if (ret)
kdError(5900) << "AlarmDaemon::autostartKAlarm(): error=" << ret << endl;
else
@@ -365,7 +365,7 @@ void AlarmDaemon::checkAlarms(ADCalendar* cal)
if (!cal->loaded() || !cal->enabled())
return;
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
kdDebug(5901) << " To: " << now.toString() << endl;
TQValueList<KCal::Alarm*> alarms = cal->alarmsTo(now);
if (!alarms.count())
@@ -385,7 +385,7 @@ void AlarmDaemon::checkAlarms(ADCalendar* cal)
// The times for non-due alarms are set invalid in 'alarmtimes'.
bool recurs = event->doesRecur();
const TQStringList cats = event->categories();
- bool floats = (cats.find(TQString::fromLatin1("DATE")) != cats.end());
+ bool floats = (cats.find(TQString::tqfromLatin1("DATE")) != cats.end());
TQDateTime nextDateTime = event->dtStart();
if (recurs)
{
@@ -478,7 +478,7 @@ bool AlarmDaemon::notifyEvent(ADCalendar* calendar, const TQString& eventID)
return false;
}
kdDebug(5900) << "AlarmDaemon::notifyEvent(" << appname << ", " << eventID << "): notification type=" << client->startClient() << endl;
- TQString id = TQString::fromLatin1("ad:") + eventID; // prefix to indicate that the notification if from the daemon
+ TQString id = TQString::tqfromLatin1("ad:") + eventID; // prefix to indicate that the notification if from the daemon
// Check if the client application is running and ready to receive notification
bool registered = kapp->dcopClient()->isApplicationRegistered(static_cast<const char*>(appname));
@@ -595,7 +595,7 @@ void AlarmDaemon::notifyCalStatus(const ADCalendar* cal)
void AlarmDaemon::readKAlarmConfig()
{
KConfig config(locate("config", "kalarmrc"));
- config.setGroup(TQString::fromLatin1("General"));
+ config.setGroup(TQString::tqfromLatin1("General"));
TQDateTime defTime(TQDate(1900,1,1), TQTime());
mStartOfDay = config.readDateTimeEntry(START_OF_DAY, &defTime).time();
kdDebug(5900) << "AlarmDaemon::readKAlarmConfig()" << endl;
diff --git a/kalarm/kamail.cpp b/kalarm/kamail.cpp
index 18bb03945..ab4747e34 100644
--- a/kalarm/kamail.cpp
+++ b/kalarm/kamail.cpp
@@ -100,7 +100,7 @@ KPIM::IdentityManager* KAMail::identityManager()
/******************************************************************************
* Send the email message specified in an event.
* Reply = true if the message was sent - 'errmsgs' may contain copy error messages.
-* = false if the message was not sent - 'errmsgs' contains the error messages.
+* = false if the message was not sent - 'errmsgs' tqcontains the error messages.
*/
bool KAMail::send(const KAEvent& event, TQStringList& errmsgs, bool allowNotify)
{
@@ -153,30 +153,30 @@ bool KAMail::send(const KAEvent& event, TQStringList& errmsgs, bool allowNotify)
{
// Use sendmail to send the message
TQString textComplete;
- TQString command = KStandardDirs::findExe(TQString::fromLatin1("sendmail"),
- TQString::fromLatin1("/sbin:/usr/sbin:/usr/lib"));
+ TQString command = KStandardDirs::findExe(TQString::tqfromLatin1("sendmail"),
+ TQString::tqfromLatin1("/sbin:/usr/sbin:/usr/lib"));
if (!command.isNull())
{
- command += TQString::fromLatin1(" -f ");
+ command += TQString::tqfromLatin1(" -f ");
command += KPIM::getEmailAddress(from);
- command += TQString::fromLatin1(" -oi -t ");
+ command += TQString::tqfromLatin1(" -oi -t ");
textComplete = initHeaders(data, false);
}
else
{
- command = KStandardDirs::findExe(TQString::fromLatin1("mail"));
+ command = KStandardDirs::findExe(TQString::tqfromLatin1("mail"));
if (command.isNull())
{
- errmsgs = errors(i18n("%1 not found").arg(TQString::fromLatin1("sendmail"))); // give up
+ errmsgs = errors(i18n("%1 not found").arg(TQString::tqfromLatin1("sendmail"))); // give up
return false;
}
- command += TQString::fromLatin1(" -s ");
+ command += TQString::tqfromLatin1(" -s ");
command += KShellProcess::quote(event.emailSubject());
if (!data.bcc.isEmpty())
{
- command += TQString::fromLatin1(" -b ");
+ command += TQString::tqfromLatin1(" -b ");
command += KShellProcess::quote(data.bcc);
}
@@ -249,7 +249,7 @@ TQString KAMail::sendKMail(const KAMailData& data)
if (func.left(5) == "bool ")
{
func = func.mid(5);
- func.replace(TQRegExp(" [0-9A-Za-z_:]+"), "");
+ func.tqreplace(TQRegExp(" [0-9A-Za-z_:]+"), "");
useSend = (func == sendFunction);
}
}
@@ -321,7 +321,7 @@ TQString KAMail::addToKMailFolder(const KAMailData& data, const char* folder, bo
// Notify KMail of the message in the temporary file
TQByteArray callData;
TQDataStream arg(callData, IO_WriteOnly);
- arg << TQString::fromLatin1(folder) << tmpFile.name();
+ arg << TQString::tqfromLatin1(folder) << tmpFile.name();
if (callKMail(callData, "KMailIface", "dcopAddMessage(TQString,TQString)", "int"))
return TQString::null;
err = i18n("Error calling KMail");
@@ -341,13 +341,13 @@ bool KAMail::callKMail(const TQByteArray& callData, const TQCString& iface, cons
|| replyType != funcType)
{
TQCString funcname = function;
- funcname.replace(TQRegExp("(.+$"), "()");
+ funcname.tqreplace(TQRegExp("(.+$"), "()");
kdError(5950) << "KAMail::callKMail(): kmail " << funcname << " call failed\n";;
return false;
}
TQDataStream replyStream(replyData, IO_ReadOnly);
TQCString funcname = function;
- funcname.replace(TQRegExp("(.+$"), "()");
+ funcname.tqreplace(TQRegExp("(.+$"), "()");
if (replyType == "int")
{
int result;
@@ -385,16 +385,16 @@ TQString KAMail::initHeaders(const KAMailData& data, bool dateId)
char buff[64];
strftime(buff, sizeof(buff), "Date: %a, %d %b %Y %H:%M:%S %z", localtime(&timenow));
TQString from = data.from;
- from.replace(TQRegExp("^.*<"), TQString::null).replace(TQRegExp(">.*$"), TQString::null);
- message = TQString::fromLatin1(buff);
- message += TQString::fromLatin1("\nMessage-Id: <%1.%2.%3>\n").arg(timenow).arg(tod.tv_usec).arg(from);
+ from.tqreplace(TQRegExp("^.*<"), TQString::null).tqreplace(TQRegExp(">.*$"), TQString::null);
+ message = TQString::tqfromLatin1(buff);
+ message += TQString::tqfromLatin1("\nMessage-Id: <%1.%2.%3>\n").arg(timenow).arg(tod.tv_usec).arg(from);
}
- message += TQString::fromLatin1("From: ") + data.from;
- message += TQString::fromLatin1("\nTo: ") + data.event.emailAddresses(", ");
+ message += TQString::tqfromLatin1("From: ") + data.from;
+ message += TQString::tqfromLatin1("\nTo: ") + data.event.emailAddresses(", ");
if (!data.bcc.isEmpty())
- message += TQString::fromLatin1("\nBcc: ") + data.bcc;
- message += TQString::fromLatin1("\nSubject: ") + data.event.emailSubject();
- message += TQString::fromLatin1("\nX-Mailer: %1/" KALARM_VERSION).arg(kapp->aboutData()->programName());
+ message += TQString::tqfromLatin1("\nBcc: ") + data.bcc;
+ message += TQString::tqfromLatin1("\nSubject: ") + data.event.emailSubject();
+ message += TQString::tqfromLatin1("\nX-Mailer: %1/" KALARM_VERSION).arg(kapp->aboutData()->programName());
return message;
}
@@ -426,13 +426,13 @@ TQString KAMail::appendBodyAttachments(TQString& message, const KAEvent& event)
time(&timenow);
TQCString boundary;
boundary.sprintf("------------_%lu_-%lx=", 2*timenow, timenow);
- message += TQString::fromLatin1("\nMIME-Version: 1.0");
- message += TQString::fromLatin1("\nContent-Type: multipart/mixed;\n boundary=\"%1\"\n").arg(boundary);
+ message += TQString::tqfromLatin1("\nMIME-Version: 1.0");
+ message += TQString::tqfromLatin1("\nContent-Type: multipart/mixed;\n boundary=\"%1\"\n").arg(boundary);
if (!event.message().isEmpty())
{
// There is a message body
- message += TQString::fromLatin1("\n--%1\nContent-Type: text/plain\nContent-Transfer-Encoding: 8bit\n\n").arg(boundary);
+ message += TQString::tqfromLatin1("\n--%1\nContent-Type: text/plain\nContent-Transfer-Encoding: 8bit\n\n").arg(boundary);
message += event.message();
}
@@ -463,10 +463,10 @@ TQString KAMail::appendBodyAttachments(TQString& message, const KAEvent& event)
text = (mimeType == textMimeTypes[i]);
}
- message += TQString::fromLatin1("\n--%1").arg(boundary);
- message += TQString::fromLatin1("\nContent-Type: %2; name=\"%3\"").arg(mimeType).arg(fi.text());
- message += TQString::fromLatin1("\nContent-Transfer-Encoding: %1").arg(TQString::fromLatin1(text ? "8bit" : "BASE64"));
- message += TQString::fromLatin1("\nContent-Disposition: attachment; filename=\"%4\"\n\n").arg(fi.text());
+ message += TQString::tqfromLatin1("\n--%1").arg(boundary);
+ message += TQString::tqfromLatin1("\nContent-Type: %2; name=\"%3\"").arg(mimeType).arg(fi.text());
+ message += TQString::tqfromLatin1("\nContent-Transfer-Encoding: %1").arg(TQString::tqfromLatin1(text ? "8bit" : "BASE64"));
+ message += TQString::tqfromLatin1("\nContent-Disposition: attachment; filename=\"%4\"\n\n").arg(fi.text());
// Read the file contents
TQString tmpFile;
@@ -481,7 +481,7 @@ TQString KAMail::appendBodyAttachments(TQString& message, const KAEvent& event)
}
TQIODevice::Offset size = file.size();
char* contents = new char [size + 1];
- Q_LONG bytes = file.readBlock(contents, size);
+ TQ_LONG bytes = file.readBlock(contents, size);
file.close();
contents[size] = 0;
bool atterror = false;
@@ -504,14 +504,14 @@ TQString KAMail::appendBodyAttachments(TQString& message, const KAEvent& event)
atterror = true;
}
else
- message += TQString::fromLatin1(base64, base64Size);
+ message += TQString::tqfromLatin1(base64, base64Size);
delete[] base64;
}
delete[] contents;
if (atterror)
return attachError.arg(attachment);
}
- message += TQString::fromLatin1("\n--%1--\n.\n").arg(boundary);
+ message += TQString::tqfromLatin1("\n--%1--\n.\n").arg(boundary);
}
return TQString::null;
}
@@ -523,7 +523,7 @@ TQString KAMail::appendBodyAttachments(TQString& message, const KAEvent& event)
void KAMail::notifyQueued(const KAEvent& event)
{
KMime::Types::Address addr;
- TQString localhost = TQString::fromLatin1("localhost");
+ TQString localhost = TQString::tqfromLatin1("localhost");
TQString hostname = getHostName();
const EmailAddressList& addresses = event.emailAddresses();
for (TQValueList<KCal::Person>::ConstIterator it = addresses.begin(); it != addresses.end(); ++it)
@@ -925,7 +925,7 @@ TQStringList KAMail::errors(const TQString& err, bool sendfail)
: i18n("Error copying sent email to KMail %1 folder").arg(i18n_sent_mail());
if (err.isEmpty())
return TQStringList(error1);
- TQStringList errs(TQString::fromLatin1("%1:").arg(error1));
+ TQStringList errs(TQString::tqfromLatin1("%1:").arg(error1));
errs += err;
return errs;
}
@@ -933,7 +933,7 @@ TQStringList KAMail::errors(const TQString& err, bool sendfail)
/******************************************************************************
* Get the body of an email, given its serial number.
*/
-TQString KAMail::getMailBody(Q_UINT32 serialNumber)
+TQString KAMail::getMailBody(TQ_UINT32 serialNumber)
{
// Get the body of the email from KMail
TQCString replyType;
@@ -943,7 +943,7 @@ TQString KAMail::getMailBody(Q_UINT32 serialNumber)
arg << serialNumber;
arg << (int)0;
TQString body;
- if (kapp->dcopClient()->call("kmail", "KMailIface", "getDecodedBodyPart(Q_UINT32,int)", data, replyType, replyData)
+ if (kapp->dcopClient()->call("kmail", "KMailIface", "getDecodedBodyPart(TQ_UINT32,int)", data, replyType, replyData)
&& replyType == "TQString")
{
TQDataStream reply_stream(replyData, IO_ReadOnly);
diff --git a/kalarm/kamail.h b/kalarm/kamail.h
index 3ef561506..6e2d03004 100644
--- a/kalarm/kamail.h
+++ b/kalarm/kamail.h
@@ -45,7 +45,7 @@ class KAMail
static bool identitiesExist();
static uint identityUoid(const TQString& identityUoidOrName);
static TQString controlCentreAddress();
- static TQString getMailBody(Q_UINT32 serialNumber);
+ static TQString getMailBody(TQ_UINT32 serialNumber);
static TQString i18n_NeedFromEmailAddress();
static TQString i18n_sent_mail();
diff --git a/kalarm/karecurrence.cpp b/kalarm/karecurrence.cpp
index 8b7e9068f..4221a5ada 100644
--- a/kalarm/karecurrence.cpp
+++ b/kalarm/karecurrence.cpp
@@ -165,7 +165,7 @@ bool KARecurrence::init(RecurrenceRule::PeriodType recurType, int freq, int coun
*/
bool KARecurrence::set(const TQString& icalRRULE)
{
- static TQString RRULE = TQString::fromLatin1("RRULE:");
+ static TQString RRULE = TQString::tqfromLatin1("RRULE:");
mCachedType = -1;
clear();
if (icalRRULE.isEmpty())
@@ -606,7 +606,7 @@ bool KARecurrence::recursOn(const TQDate& dt) const
return true;
// We know now that it isn't in EXDATES or EXRULES,
// so we just need to check if it's in RDATES or RRULES
- if (rDates().contains(dt))
+ if (rDates().tqcontains(dt))
return true;
RecurrenceRule::List rulelist = rRules();
for (RecurrenceRule::List::ConstIterator rr = rulelist.begin(); rr != rulelist.end(); ++rr)
diff --git a/kalarm/latecancel.cpp b/kalarm/latecancel.cpp
index 3c7fab3b2..274ad9b72 100644
--- a/kalarm/latecancel.cpp
+++ b/kalarm/latecancel.cpp
@@ -58,31 +58,31 @@ LateCancelSelector::LateCancelSelector(bool allowHourMinute, TQWidget* parent, c
mCheckboxFrame = new TQFrame(mStack);
mCheckboxFrame->setFrameStyle(TQFrame::NoFrame);
mStack->addWidget(mCheckboxFrame, 1);
- TQBoxLayout* layout = new TQVBoxLayout(mCheckboxFrame, 0, 0);
+ TQBoxLayout* tqlayout = new TQVBoxLayout(mCheckboxFrame, 0, 0);
mCheckbox = new CheckBox(i18n_n_CancelIfLate(), mCheckboxFrame);
- mCheckbox->setFixedSize(mCheckbox->sizeHint());
+ mCheckbox->setFixedSize(mCheckbox->tqsizeHint());
connect(mCheckbox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotToggled(bool)));
TQWhatsThis::add(mCheckbox, whatsThis);
- layout->addWidget(mCheckbox, 0, Qt::AlignAuto);
+ tqlayout->addWidget(mCheckbox, 0, Qt::AlignAuto);
mTimeSelectorFrame = new TQFrame(mStack);
mTimeSelectorFrame->setFrameStyle(TQFrame::NoFrame);
mStack->addWidget(mTimeSelectorFrame, 2);
- layout = new TQVBoxLayout(mTimeSelectorFrame, 0, 0);
+ tqlayout = new TQVBoxLayout(mTimeSelectorFrame, 0, 0);
mTimeSelector = new TimeSelector(i18n("Cancel if late by 10 minutes", "Ca&ncel if late by"), TQString::null,
whatsThis, i18n("Enter how late will cause the alarm to be canceled"),
allowHourMinute, mTimeSelectorFrame);
connect(mTimeSelector, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotToggled(bool)));
- layout->addWidget(mTimeSelector);
+ tqlayout->addWidget(mTimeSelector);
mLayout->addWidget(mStack);
- layout = new TQHBoxLayout(mLayout, KDialog::spacingHint());
- layout->addSpacing(3*KDialog::spacingHint());
+ tqlayout = new TQHBoxLayout(mLayout, KDialog::spacingHint());
+ tqlayout->addSpacing(3*KDialog::spacingHint());
mAutoClose = new CheckBox(i18n_AutoCloseWin(), this);
- mAutoClose->setFixedSize(mAutoClose->sizeHint());
+ mAutoClose->setFixedSize(mAutoClose->tqsizeHint());
TQWhatsThis::add(mAutoClose, i18n("Automatically close the alarm window after the expiry of the late-cancelation period"));
- layout->addWidget(mAutoClose);
- layout->addStretch();
+ tqlayout->addWidget(mAutoClose);
+ tqlayout->addStretch();
mAutoClose->hide();
mAutoClose->setEnabled(false);
diff --git a/kalarm/latecancel.h b/kalarm/latecancel.h
index 04d08d62f..5b9146489 100644
--- a/kalarm/latecancel.h
+++ b/kalarm/latecancel.h
@@ -54,8 +54,8 @@ class LateCancelSelector : public QFrame
void slotToggled(bool);
private:
- TQBoxLayout* mLayout; // overall layout for the widget
- TQWidgetStack* mStack; // contains mCheckboxFrame and mTimeSelectorFrame
+ TQBoxLayout* mLayout; // overall tqlayout for the widget
+ TQWidgetStack* mStack; // tqcontains mCheckboxFrame and mTimeSelectorFrame
TQFrame* mCheckboxFrame;
CheckBox* mCheckbox; // displayed when late cancellation is not selected
TQFrame* mTimeSelectorFrame;
diff --git a/kalarm/lib/checkbox.h b/kalarm/lib/checkbox.h
index fc7f82cbd..389e66231 100644
--- a/kalarm/lib/checkbox.h
+++ b/kalarm/lib/checkbox.h
@@ -62,7 +62,7 @@ class CheckBox : public QCheckBox
*/
virtual void setReadOnly(bool readOnly);
/** Returns the widget which receives focus when the user selects the check box by clicking on it. */
- TQWidget* focusWidget() const { return mFocusWidget; }
+ TQWidget* tqfocusWidget() const { return mFocusWidget; }
/** Specifies a widget to receive focus when the user selects the check box by clicking on it.
* @param widget Widget to receive focus.
* @param enable If true, @p widget will be enabled before receiving focus. If
diff --git a/kalarm/lib/colourcombo.cpp b/kalarm/lib/colourcombo.cpp
index 9cf09ce13..0345104e0 100644
--- a/kalarm/lib/colourcombo.cpp
+++ b/kalarm/lib/colourcombo.cpp
@@ -57,7 +57,7 @@ void ColourCombo::setColours(const ColourList& colours)
{
mColourList = colours;
if (mSelectedColour != mCustomColour
- && !mColourList.contains(mSelectedColour))
+ && !mColourList.tqcontains(mSelectedColour))
{
// The current colour has been deleted
mSelectedColour = mColourList.count() ? mColourList.first() : mCustomColour;
@@ -168,7 +168,7 @@ void ColourCombo::addColours()
void ColourCombo::drawCustomItem(TQRect& rect, bool insert)
{
TQPen pen;
- if (qGray(mCustomColour.rgb()) < 128)
+ if (tqGray(mCustomColour.rgb()) < 128)
pen.setColor(Qt::white);
else
pen.setColor(Qt::black);
diff --git a/kalarm/lib/colourlist.h b/kalarm/lib/colourlist.h
index a20a44d6a..8ec2b2a94 100644
--- a/kalarm/lib/colourlist.h
+++ b/kalarm/lib/colourlist.h
@@ -82,8 +82,8 @@ class ColourList
const_iterator fromLast() const { return mList.fromLast(); }
/** Returns an iterator pointing to the colour at position @p i in the list. */
const_iterator at(size_type i) const { return mList.at(i); }
- /** Returns true if the list contains the colour @p c. */
- size_type contains(const TQColor& c) const { return mList.contains(c.rgb()); }
+ /** Returns true if the list tqcontains the colour @p c. */
+ size_type tqcontains(const TQColor& c) const { return mList.tqcontains(c.rgb()); }
/** Returns an iterator pointing to the first occurrence of colour @p c in the list.
* Returns end() if colour @p c is not in the list.
*/
diff --git a/kalarm/lib/dateedit.cpp b/kalarm/lib/dateedit.cpp
index 2fef25de5..2cc106982 100644
--- a/kalarm/lib/dateedit.cpp
+++ b/kalarm/lib/dateedit.cpp
@@ -77,7 +77,7 @@ void DateEdit::pastLimitMessage(const TQDate& limit, const TQString& error, cons
TQString errString = error;
if (errString.isNull())
{
- if (limit == TQDate::currentDate())
+ if (limit == TQDate::tqcurrentDate())
errString = i18n("today");
else
errString = KGlobal::locale()->formatDate(limit, true);
diff --git a/kalarm/lib/dateedit.h b/kalarm/lib/dateedit.h
index c7c015785..7ea09e01b 100644
--- a/kalarm/lib/dateedit.h
+++ b/kalarm/lib/dateedit.h
@@ -43,7 +43,7 @@ class DateEdit : public KDateEdit
* @param name The name of this widget.
*/
explicit DateEdit(TQWidget* parent = 0, const char* name = 0);
- /** Returns true if the widget contains a valid date. */
+ /** Returns true if the widget tqcontains a valid date. */
bool isValid() const { return date().isValid(); }
/** Returns the earliest date which can be entered.
* If there is no minimum date, returns an invalid date.
diff --git a/kalarm/lib/label.cpp b/kalarm/lib/label.cpp
index 69cef7544..92f07402a 100644
--- a/kalarm/lib/label.cpp
+++ b/kalarm/lib/label.cpp
@@ -112,7 +112,7 @@ LabelFocusWidget::LabelFocusWidget(TQWidget* parent, const char* name)
void LabelFocusWidget::focusInEvent(TQFocusEvent*)
{
- Label* parent = (Label*)parentWidget();
+ Label* parent = (Label*)tqparentWidget();
parent->activated();
}
diff --git a/kalarm/lib/lineedit.cpp b/kalarm/lib/lineedit.cpp
index 64c79ea7b..4dcdc15f8 100644
--- a/kalarm/lib/lineedit.cpp
+++ b/kalarm/lib/lineedit.cpp
@@ -122,7 +122,7 @@ void LineEdit::dropEvent(TQDropEvent* e)
if (mType == Emails)
newText = mailList.first().from();
else
- setText(mailList.first().subject()); // replace any existing text
+ setText(mailList.first().subject()); // tqreplace any existing text
}
}
// This must come before KURLDrag
@@ -144,12 +144,12 @@ void LineEdit::dropEvent(TQDropEvent* e)
{
case Url:
// URL entry field - ignore all but the first dropped URL
- setText(files.first().prettyURL()); // replace any existing text
+ setText(files.first().prettyURL()); // tqreplace any existing text
break;
case Emails:
{
// Email entry field - ignore all but mailto: URLs
- TQString mailto = TQString::fromLatin1("mailto");
+ TQString mailto = TQString::tqfromLatin1("mailto");
for (KURL::List::Iterator it = files.begin(); it != files.end(); ++it)
{
if ((*it).protocol() == mailto)
@@ -168,7 +168,7 @@ void LineEdit::dropEvent(TQDropEvent* e)
if (mType == Emails)
{
// Remove newlines from a list of email addresses, and allow an eventual mailto: protocol
- TQString mailto = TQString::fromLatin1("mailto:");
+ TQString mailto = TQString::tqfromLatin1("mailto:");
newEmails = TQStringList::split(TQRegExp("[\r\n]+"), txt);
for (TQStringList::Iterator it = newEmails.begin(); it != newEmails.end(); ++it)
{
diff --git a/kalarm/lib/lineedit.h b/kalarm/lib/lineedit.h
index 612b12a33..5d36de3c5 100644
--- a/kalarm/lib/lineedit.h
+++ b/kalarm/lib/lineedit.h
@@ -45,14 +45,14 @@ class LineEdit : public KLineEdit
Q_OBJECT
public:
/** Types of drag and drop content which will be accepted.
- * @li Text - the line edit contains general text. It accepts text, a URL
+ * @li Text - the line edit tqcontains general text. It accepts text, a URL
* or an email from KMail (the subject line is used). If multiple
* URLs or emails are dropped, only the first is used; the
* rest are ignored.
- * @li Url - the line edit contains a URL. It accepts text or a URL. If
+ * @li Url - the line edit tqcontains a URL. It accepts text or a URL. If
* multiple URLs are dropped, only the first URL is used; the
* rest are ignored.
- * @li Emails - the line edit contains email addresses. It accepts text,
+ * @li Emails - the line edit tqcontains email addresses. It accepts text,
* mailto: URLs, emails from KMail (the From address is used)
* or vcard data (e.g. from KAddressBook). If multiple emails
* are dropped, only the first is used; the rest are ignored.
diff --git a/kalarm/lib/messagebox.cpp b/kalarm/lib/messagebox.cpp
index 48c18f1cd..3345c9c4b 100644
--- a/kalarm/lib/messagebox.cpp
+++ b/kalarm/lib/messagebox.cpp
@@ -109,7 +109,7 @@ bool MessageBox::setDefaultShouldBeShownContinue(const TQString& dontShowAgainNa
return false;
// First check whether there is an existing setting
KConfig* config = mConfig ? mConfig : KGlobal::config();
- config->setGroup(TQString::fromLatin1("Notification Messages"));
+ config->setGroup(TQString::tqfromLatin1("Notification Messages"));
if (config->hasKey(dontShowAgainName))
return false;
@@ -168,10 +168,10 @@ void MessageBox::saveDontShowAgain(const TQString& dontShowAgainName, bool yesno
if (dontShowAgainName.isEmpty())
return;
KConfig* config = mConfig ? mConfig : KGlobal::config();
- config->setGroup(TQString::fromLatin1("Notification Messages"));
+ config->setGroup(TQString::tqfromLatin1("Notification Messages"));
bool global = (dontShowAgainName[0] == ':');
if (yesno)
- config->writeEntry(dontShowAgainName, TQString::fromLatin1(dontShow ? yesnoResult : ""), true, global);
+ config->writeEntry(dontShowAgainName, TQString::tqfromLatin1(dontShow ? yesnoResult : ""), true, global);
else
config->writeEntry(dontShowAgainName, !dontShow, true, global);
config->sync();
diff --git a/kalarm/lib/radiobutton.h b/kalarm/lib/radiobutton.h
index c87ef97b8..d95d13fa5 100644
--- a/kalarm/lib/radiobutton.h
+++ b/kalarm/lib/radiobutton.h
@@ -62,7 +62,7 @@ class RadioButton : public QRadioButton
*/
virtual void setReadOnly(bool readOnly);
/** Returns the widget which receives focus when the button is clicked. */
- TQWidget* focusWidget() const { return mFocusWidget; }
+ TQWidget* tqfocusWidget() const { return mFocusWidget; }
/** Specifies a widget to receive focus when the button is clicked.
* @param widget Widget to receive focus.
* @param enable If true, @p widget will be enabled before receiving focus. If
diff --git a/kalarm/lib/spinbox.cpp b/kalarm/lib/spinbox.cpp
index 6145114a3..42d91a914 100644
--- a/kalarm/lib/spinbox.cpp
+++ b/kalarm/lib/spinbox.cpp
@@ -468,9 +468,9 @@ int SpinBox::shiftStepAdjustment(int oldValue, int shiftStep)
*/
int SpinBox::whichButton(const TQPoint& pos)
{
- if (upRect().contains(pos))
+ if (upRect().tqcontains(pos))
return UP;
- if (downRect().contains(pos))
+ if (downRect().tqcontains(pos))
return DOWN;
return NO_BUTTON;
}
diff --git a/kalarm/lib/spinbox2.cpp b/kalarm/lib/spinbox2.cpp
index 48b88d51c..db74cc595 100644
--- a/kalarm/lib/spinbox2.cpp
+++ b/kalarm/lib/spinbox2.cpp
@@ -142,7 +142,7 @@ void SpinBox2::setLineStep(int step)
{
mLineStep = step;
if (reverseButtons())
- mUpdown2->setLineStep(step); // reverse layout, but still set the right buttons
+ mUpdown2->setLineStep(step); // reverse tqlayout, but still set the right buttons
else
mSpinbox->setLineStep(step);
}
@@ -153,7 +153,7 @@ void SpinBox2::setSteps(int line, int page)
mPageStep = page;
if (reverseButtons())
{
- mUpdown2->setLineStep(line); // reverse layout, but still set the right buttons
+ mUpdown2->setLineStep(line); // reverse tqlayout, but still set the right buttons
mSpinbox->setLineStep(page);
}
else
@@ -169,7 +169,7 @@ void SpinBox2::setShiftSteps(int line, int page)
mPageShiftStep = page;
if (reverseButtons())
{
- mUpdown2->setLineShiftStep(line); // reverse layout, but still set the right buttons
+ mUpdown2->setLineShiftStep(line); // reverse tqlayout, but still set the right buttons
mSpinbox->setLineShiftStep(page);
}
else
@@ -225,18 +225,18 @@ void SpinBox2::showEvent(TQShowEvent*)
arrange();
}
-TQSize SpinBox2::sizeHint() const
+TQSize SpinBox2::tqsizeHint() const
{
getMetrics();
- TQSize size = mSpinbox->sizeHint();
+ TQSize size = mSpinbox->tqsizeHint();
size.setWidth(size.width() - xSpinbox + wUpdown2 + wGap);
return size;
}
-TQSize SpinBox2::minimumSizeHint() const
+TQSize SpinBox2::tqminimumSizeHint() const
{
getMetrics();
- TQSize size = mSpinbox->minimumSizeHint();
+ TQSize size = mSpinbox->tqminimumSizeHint();
size.setWidth(size.width() - xSpinbox + wUpdown2 + wGap);
return size;
}
@@ -251,7 +251,7 @@ void SpinBox2::styleChange(TQStyle&)
}
/******************************************************************************
-* Called when the extra pair of spin buttons has repainted after a style change.
+* Called when the extra pair of spin buttons has tqrepainted after a style change.
* Updates the mirror image of the spin buttons.
*/
void SpinBox2::updateMirror()
@@ -265,14 +265,14 @@ void SpinBox2::updateMirror()
void SpinBox2::arrange()
{
getMetrics();
- TQRect arrowRect = TQStyle::visualRect(TQRect(0, 0, wUpdown2, height()), this);
+ TQRect arrowRect = TQStyle::tqvisualRect(TQRect(0, 0, wUpdown2, height()), this);
mUpdown2Frame->setGeometry(arrowRect);
mUpdown2->setGeometry(-xUpdown2, 0, mUpdown2->width(), height());
- mSpinboxFrame->setGeometry(TQStyle::visualRect(TQRect(wUpdown2 + wGap, 0, width() - wUpdown2 - wGap, height()), this));
+ mSpinboxFrame->setGeometry(TQStyle::tqvisualRect(TQRect(wUpdown2 + wGap, 0, width() - wUpdown2 - wGap, height()), this));
mSpinbox->setGeometry(-xSpinbox, 0, mSpinboxFrame->width() + xSpinbox, height());
mSpinMirror->resize(wUpdown2, mUpdown2->height());
mSpinMirror->setGeometry(arrowRect);
-//mSpinMirror->setGeometry(TQStyle::visualRect(TQRect(0, 11, wUpdown2, height()), this));
+//mSpinMirror->setGeometry(TQStyle::tqvisualRect(TQRect(0, 11, wUpdown2, height()), this));
mSpinMirror->setNormalButtons(TQPixmap::grabWidget(mUpdown2Frame, 0, 0));
}
diff --git a/kalarm/lib/spinbox2.h b/kalarm/lib/spinbox2.h
index 06a48d1af..b1d2927d4 100644
--- a/kalarm/lib/spinbox2.h
+++ b/kalarm/lib/spinbox2.h
@@ -114,8 +114,8 @@ class SpinBox2 : public QFrame
*/
bool wrapping() const { return mSpinbox->wrapping(); }
- /** Set the text alignment of the widget */
- void setAlignment(int a) { mSpinbox->setAlignment(a); }
+ /** Set the text tqalignment of the widget */
+ void tqsetAlignment(int a) { mSpinbox->tqsetAlignment(a); }
/** Sets the button symbols to use (arrows or plus/minus). */
virtual void setButtonSymbols(TQSpinBox::ButtonSymbols);
/** Returns the button symbols currently in use (arrows or plus/minus). */
@@ -130,8 +130,8 @@ class SpinBox2 : public QFrame
*/
const TQValidator* validator() const { return mSpinbox->validator(); }
- virtual TQSize sizeHint() const;
- virtual TQSize minimumSizeHint() const;
+ virtual TQSize tqsizeHint() const;
+ virtual TQSize tqminimumSizeHint() const;
/** Returns the minimum value of the spin box. */
int minValue() const { return mMinValue; }
@@ -148,13 +148,13 @@ class SpinBox2 : public QFrame
/** Returns the specified value clamped to the range of the spin box. */
int bound(int val) const;
- /** Returns the geometry of the right-hand "up" button. */
+ /** Returns the tqgeometry of the right-hand "up" button. */
TQRect upRect() const { return mSpinbox->upRect(); }
- /** Returns the geometry of the right-hand "down" button. */
+ /** Returns the tqgeometry of the right-hand "down" button. */
TQRect downRect() const { return mSpinbox->downRect(); }
- /** Returns the geometry of the left-hand "up" button. */
+ /** Returns the tqgeometry of the left-hand "up" button. */
TQRect up2Rect() const;
- /** Returns the geometry of the left-hand "down" button. */
+ /** Returns the tqgeometry of the left-hand "down" button. */
TQRect down2Rect() const;
/** Returns the unshifted step increment for the right-hand spin buttons,
@@ -285,7 +285,7 @@ class SpinBox2 : public QFrame
: SpinBox(parent, name), owner(sb2) { }
MainSpinBox(int minValue, int maxValue, int step, SpinBox2* sb2, TQWidget* parent, const char* name = 0)
: SpinBox(minValue, maxValue, step, parent, name), owner(sb2) { }
- void setAlignment(int a) { editor()->setAlignment(a); }
+ void tqsetAlignment(int a) { editor()->tqsetAlignment(a); }
virtual TQString mapValueToText(int v) { return owner->mapValueToText(v); }
virtual int mapTextToValue(bool* ok) { return owner->mapTextToValue(ok); }
TQString mapValToText(int v) { return SpinBox::mapValueToText(v); }
@@ -298,8 +298,8 @@ class SpinBox2 : public QFrame
enum { NO_BUTTON = -1, UP, DOWN, UP2, DOWN2 };
static int mReverseLayout; // widgets are mirrored right to left
- TQFrame* mUpdown2Frame; // contains visible part of the extra pair of spin buttons
- TQFrame* mSpinboxFrame; // contains the main spin box
+ TQFrame* mUpdown2Frame; // tqcontains visible part of the extra pair of spin buttons
+ TQFrame* mSpinboxFrame; // tqcontains the main spin box
ExtraSpinBox* mUpdown2; // the extra pair of spin buttons
MainSpinBox* mSpinbox; // the visible spin box
SpinMirror* mSpinMirror; // image of the extra pair of spin buttons
@@ -309,7 +309,7 @@ class SpinBox2 : public QFrame
int mLineShiftStep; // right button increment with shift pressed
int mPageStep; // left button increment
int mPageShiftStep; // left button increment with shift pressed
- bool mReverseWithLayout; // reverse button positions if reverse layout (default = true)
+ bool mReverseWithLayout; // reverse button positions if reverse tqlayout (default = true)
friend class MainSpinBox;
};
diff --git a/kalarm/lib/spinbox2private.h b/kalarm/lib/spinbox2private.h
index 682c84b8d..d25579f9d 100644
--- a/kalarm/lib/spinbox2private.h
+++ b/kalarm/lib/spinbox2private.h
@@ -45,7 +45,7 @@ class ExtraSpinBox : public SpinBox
virtual void paintEvent(TQPaintEvent*);
virtual void styleChange(TQStyle&) { mNewStylePending = true; }
private:
- bool mNewStylePending; // style has changed, but not yet repainted
+ bool mNewStylePending; // style has changed, but not yet tqrepainted
};
diff --git a/kalarm/lib/synchtimer.cpp b/kalarm/lib/synchtimer.cpp
index eecef7d4b..caed93d7b 100644
--- a/kalarm/lib/synchtimer.cpp
+++ b/kalarm/lib/synchtimer.cpp
@@ -196,7 +196,7 @@ void DailyTimer::changeTime(const TQTime& newTimeOfDay, bool triggerMissed)
void DailyTimer::start()
{
// TIMEZONE = local time
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
// Find out whether to trigger today or tomorrow.
// In preference, use the last trigger date to determine this, since
// that will avoid possible errors due to daylight savings time changes.
@@ -224,7 +224,7 @@ void DailyTimer::start()
void DailyTimer::slotTimer()
{
// TIMEZONE = local time
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
mLastDate = now.date();
TQDateTime next = TQDateTime(mLastDate.addDays(1), mTime);
uint interval = next.toTime_t() - now.toTime_t();
diff --git a/kalarm/lib/timeedit.cpp b/kalarm/lib/timeedit.cpp
index 01152fcee..170914922 100644
--- a/kalarm/lib/timeedit.cpp
+++ b/kalarm/lib/timeedit.cpp
@@ -37,13 +37,13 @@ TimeEdit::TimeEdit(TQWidget* parent, const char* name)
{
bool use12hour = KGlobal::locale()->use12Clock();
mSpinBox = new TimeSpinBox(!use12hour, this);
- mSpinBox->setFixedSize(mSpinBox->sizeHint());
+ mSpinBox->setFixedSize(mSpinBox->tqsizeHint());
connect(mSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int)));
if (use12hour)
{
mAmPm = new ComboBox(this);
setAmPmCombo(1, 1); // add "am" and "pm" options to the combo box
- mAmPm->setFixedSize(mAmPm->sizeHint());
+ mAmPm->setFixedSize(mAmPm->tqsizeHint());
connect(mAmPm, TQT_SIGNAL(highlighted(int)), TQT_SLOT(slotAmPmChanged(int)));
}
}
diff --git a/kalarm/lib/timeedit.h b/kalarm/lib/timeedit.h
index 9cbfb6f8c..45c0abd8e 100644
--- a/kalarm/lib/timeedit.h
+++ b/kalarm/lib/timeedit.h
@@ -64,7 +64,7 @@ class TimeEdit : public QHBox
* @param readOnly True to set the widget read-only, false to set it read-write.
*/
virtual void setReadOnly(bool readOnly);
- /** Returns true if the widget contains a valid value. */
+ /** Returns true if the widget tqcontains a valid value. */
bool isValid() const;
/** Sets whether the edit value is valid.
* If newly invalid, the value is displayed as asterisks.
diff --git a/kalarm/lib/timeperiod.cpp b/kalarm/lib/timeperiod.cpp
index e372615a7..291ba0872 100644
--- a/kalarm/lib/timeperiod.cpp
+++ b/kalarm/lib/timeperiod.cpp
@@ -71,7 +71,7 @@ TimePeriod::TimePeriod(bool allowHourMinute, TQWidget* parent, const char* name)
connect(mTimeSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotTimeChanged(int)));
mSpinStack->addWidget(mTimeSpinBox, 1);
- mSpinStack->setFixedSize(mSpinBox->sizeHint().expandedTo(mTimeSpinBox->sizeHint()));
+ mSpinStack->setFixedSize(mSpinBox->tqsizeHint().expandedTo(mTimeSpinBox->tqsizeHint()));
mHourMinuteRaised = mNoHourMinute;
showHourMin(!mNoHourMinute);
@@ -87,7 +87,7 @@ TimePeriod::TimePeriod(bool allowHourMinute, TQWidget* parent, const char* name)
mUnitsCombo->insertItem(i18n_days());
mUnitsCombo->insertItem(i18n_weeks());
mMaxUnitShown = WEEKS;
- mUnitsCombo->setFixedSize(mUnitsCombo->sizeHint());
+ mUnitsCombo->setFixedSize(mUnitsCombo->tqsizeHint());
connect(mUnitsCombo, TQT_SIGNAL(activated(int)), TQT_SLOT(slotUnitsSelected(int)));
setFocusProxy(mUnitsCombo);
diff --git a/kalarm/lib/timespinbox.cpp b/kalarm/lib/timespinbox.cpp
index 20073d878..ea10cb1aa 100644
--- a/kalarm/lib/timespinbox.cpp
+++ b/kalarm/lib/timespinbox.cpp
@@ -69,7 +69,7 @@ TimeSpinBox::TimeSpinBox(bool use24hour, TQWidget* parent, const char* name)
setReverseWithLayout(false); // keep buttons the same way round even if right-to-left language
setShiftSteps(5, 360); // shift-left button increments 5 min / 6 hours
setSelectOnStep(false);
- setAlignment(Qt::AlignHCenter);
+ tqsetAlignment(Qt::AlignHCenter);
connect(this, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int)));
}
@@ -88,7 +88,7 @@ TimeSpinBox::TimeSpinBox(int minMinute, int maxMinute, TQWidget* parent, const c
setReverseWithLayout(false); // keep buttons the same way round even if right-to-left language
setShiftSteps(5, 300); // shift-left button increments 5 min / 5 hours
setSelectOnStep(false);
- setAlignment(TQApplication::reverseLayout() ? Qt::AlignLeft : Qt::AlignRight);
+ tqsetAlignment(TQApplication::reverseLayout() ? Qt::AlignLeft : Qt::AlignRight);
}
TQString TimeSpinBox::shiftWhatsThis()
@@ -211,7 +211,7 @@ void TimeSpinBox::setValid(bool valid)
{
mInvalid = true;
SpinBox2::setMinValue(mMinimumValue - 1);
- setSpecialValueText(TQString::fromLatin1("**:**"));
+ setSpecialValueText(TQString::tqfromLatin1("**:**"));
SpinBox2::setValue(mMinimumValue - 1);
}
}
@@ -280,16 +280,16 @@ void TimeSpinBox::slotValueChanged(int value)
mPm = mValidator->mPm = (value >= 720);
}
-TQSize TimeSpinBox::sizeHint() const
+TQSize TimeSpinBox::tqsizeHint() const
{
- TQSize sz = SpinBox2::sizeHint();
+ TQSize sz = SpinBox2::tqsizeHint();
TQFontMetrics fm(font());
return TQSize(sz.width() + fm.width(":"), sz.height());
}
-TQSize TimeSpinBox::minimumSizeHint() const
+TQSize TimeSpinBox::tqminimumSizeHint() const
{
- TQSize sz = SpinBox2::minimumSizeHint();
+ TQSize sz = SpinBox2::tqminimumSizeHint();
TQFontMetrics fm(font());
return TQSize(sz.width() + fm.width(":"), sz.height());
}
diff --git a/kalarm/lib/timespinbox.h b/kalarm/lib/timespinbox.h
index 909541ad9..901c97e2e 100644
--- a/kalarm/lib/timespinbox.h
+++ b/kalarm/lib/timespinbox.h
@@ -90,8 +90,8 @@ class TimeSpinBox : public SpinBox2
*/
static TQString shiftWhatsThis();
- virtual TQSize sizeHint() const;
- virtual TQSize minimumSizeHint() const;
+ virtual TQSize tqsizeHint() const;
+ virtual TQSize tqminimumSizeHint() const;
public slots:
/** Sets the value of the spin box.
diff --git a/kalarm/mainwindow.cpp b/kalarm/mainwindow.cpp
index a3e8e423f..6ebe19c81 100644
--- a/kalarm/mainwindow.cpp
+++ b/kalarm/mainwindow.cpp
@@ -71,11 +71,11 @@ using namespace KCal;
static const char* UI_FILE = "kalarmui.rc";
static const char* WINDOW_NAME = "MainWindow";
-static const TQString VIEW_GROUP = TQString::fromLatin1("View");
-static const TQString SHOW_TIME_KEY = TQString::fromLatin1("ShowAlarmTime");
-static const TQString SHOW_TIME_TO_KEY = TQString::fromLatin1("ShowTimeToAlarm");
-static const TQString SHOW_ARCHIVED_KEY = TQString::fromLatin1("ShowArchivedAlarms");
-static const TQString SHOW_RESOURCES_KEY = TQString::fromLatin1("ShowResources");
+static const TQString VIEW_GROUP = TQString::tqfromLatin1("View");
+static const TQString SHOW_TIME_KEY = TQString::tqfromLatin1("ShowAlarmTime");
+static const TQString SHOW_TIME_TO_KEY = TQString::tqfromLatin1("ShowTimeToAlarm");
+static const TQString SHOW_ARCHIVED_KEY = TQString::tqfromLatin1("ShowArchivedAlarms");
+static const TQString SHOW_RESOURCES_KEY = TQString::tqfromLatin1("ShowResources");
static TQString undoText;
static TQString undoTextStripped;
@@ -123,7 +123,7 @@ MainWindow::MainWindow(bool restored)
mHiddenTrayParent(false)
{
kdDebug(5950) << "MainWindow::MainWindow()\n";
- setAutoSaveSettings(TQString::fromLatin1(WINDOW_NAME)); // save window sizes etc.
+ setAutoSaveSettings(TQString::tqfromLatin1(WINDOW_NAME)); // save window sizes etc.
setPlainCaption(kapp->aboutData()->programName());
KConfig* config = KGlobal::config();
config->setGroup(VIEW_GROUP);
@@ -136,8 +136,8 @@ MainWindow::MainWindow(bool restored)
if (KAlarm::readConfigWindowSize(WINDOW_NAME, s))
resize(s);
}
- config->setGroup(TQString::fromLatin1(WINDOW_NAME));
- TQValueList<int> order = config->readIntListEntry(TQString::fromLatin1("ColumnOrder"));
+ config->setGroup(TQString::tqfromLatin1(WINDOW_NAME));
+ TQValueList<int> order = config->readIntListEntry(TQString::tqfromLatin1("ColumnOrder"));
setAcceptDrops(true); // allow drag-and-drop onto this window
if (!mShowTimeTo)
@@ -201,10 +201,10 @@ MainWindow::~MainWindow()
*/
void MainWindow::saveProperties(KConfig* config)
{
- config->writeEntry(TQString::fromLatin1("HiddenTrayParent"), isTrayParent() && isHidden());
- config->writeEntry(TQString::fromLatin1("ShowExpired"), mShowExpired);
- config->writeEntry(TQString::fromLatin1("ShowTime"), mShowTime);
- config->writeEntry(TQString::fromLatin1("ShowTimeTo"), mShowTimeTo);
+ config->writeEntry(TQString::tqfromLatin1("HiddenTrayParent"), isTrayParent() && isHidden());
+ config->writeEntry(TQString::tqfromLatin1("ShowExpired"), mShowExpired);
+ config->writeEntry(TQString::tqfromLatin1("ShowTime"), mShowTime);
+ config->writeEntry(TQString::tqfromLatin1("ShowTimeTo"), mShowTimeTo);
}
/******************************************************************************
@@ -214,10 +214,10 @@ void MainWindow::saveProperties(KConfig* config)
*/
void MainWindow::readProperties(KConfig* config)
{
- mHiddenTrayParent = config->readBoolEntry(TQString::fromLatin1("HiddenTrayParent"));
- mShowExpired = config->readBoolEntry(TQString::fromLatin1("ShowExpired"));
- mShowTime = config->readBoolEntry(TQString::fromLatin1("ShowTime"));
- mShowTimeTo = config->readBoolEntry(TQString::fromLatin1("ShowTimeTo"));
+ mHiddenTrayParent = config->readBoolEntry(TQString::tqfromLatin1("HiddenTrayParent"));
+ mShowExpired = config->readBoolEntry(TQString::tqfromLatin1("ShowExpired"));
+ mShowTime = config->readBoolEntry(TQString::tqfromLatin1("ShowTime"));
+ mShowTimeTo = config->readBoolEntry(TQString::tqfromLatin1("ShowTimeTo"));
}
/******************************************************************************
@@ -294,7 +294,7 @@ void MainWindow::show()
// Show error message now that the main window has been displayed.
// Waiting until now lets the user easily associate the message with
// the main window which is faulty.
- KMessageBox::error(this, i18n("Failure to create menus\n(perhaps %1 missing or corrupted)").arg(TQString::fromLatin1(UI_FILE)));
+ KMessageBox::error(this, i18n("Failure to create menus\n(perhaps %1 missing or corrupted)").arg(TQString::tqfromLatin1(UI_FILE)));
mMenuError = false;
}
}
@@ -315,8 +315,8 @@ void MainWindow::hideEvent(TQHideEvent* he)
void MainWindow::columnsReordered()
{
KConfig* config = KGlobal::config();
- config->setGroup(TQString::fromLatin1(WINDOW_NAME));
- config->writeEntry(TQString::fromLatin1("ColumnOrder"), mListView->columnOrder());
+ config->setGroup(TQString::tqfromLatin1(WINDOW_NAME));
+ config->writeEntry(TQString::tqfromLatin1("ColumnOrder"), mListView->columnOrder());
config->sync();
}
@@ -367,8 +367,8 @@ void MainWindow::initActions()
mActionUndo = new KToolBarPopupAction(undoText, undoIcon, undoShortcut, this, TQT_SLOT(slotUndo()), actions, "edit_undo");
mActionRedo = new KToolBarPopupAction(redoText, redoIcon, redoShortcut, this, TQT_SLOT(slotRedo()), actions, "edit_redo");
KStdAction::find(mListView, TQT_SLOT(slotFind()), actions);
- mActionFindNext = KStdAction::findNext(mListView, TQT_SLOT(slotFindNext()), actions);
- mActionFindPrev = KStdAction::findPrev(mListView, TQT_SLOT(slotFindPrev()), actions);
+ mActionFindNext = KStdAction::tqfindNext(mListView, TQT_SLOT(slotFindNext()), actions);
+ mActionFindPrev = KStdAction::tqfindPrev(mListView, TQT_SLOT(slotFindPrev()), actions);
KStdAction::selectAll(mListView, TQT_SLOT(slotSelectAll()), actions);
KStdAction::deselect(mListView, TQT_SLOT(slotDeselect()), actions);
KStdAction::quit(this, TQT_SLOT(slotQuit()), actions);
@@ -1196,7 +1196,7 @@ void MainWindow::executeDropEvent(MainWindow* win, TQDropEvent* e)
AlarmText alarmText;
KPIM::MailList mailList;
KURL::List files;
- KCal::CalendarLocal calendar(TQString::fromLatin1("UTC"));
+ KCal::CalendarLocal calendar(TQString::tqfromLatin1("UTC"));
calendar.setLocalTime(); // default to local time (i.e. no time zone)
#ifndef NDEBUG
TQCString fmts;
@@ -1213,7 +1213,7 @@ void MainWindow::executeDropEvent(MainWindow* win, TQDropEvent* e)
* Don't change them without careful thought !!
*/
if (e->provides("message/rfc822")
- && !(bytes = e->encodedData("message/rfc822")).isEmpty())
+ && !(bytes = e->tqencodedData("message/rfc822")).isEmpty())
{
// Email message(s). Ignore all but the first.
kdDebug(5950) << "MainWindow::executeDropEvent(email)" << endl;
@@ -1299,7 +1299,7 @@ void MainWindow::slotSelection()
bool enableEnableDisable = true;
bool enableEnable = false;
bool enableDisable = false;
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
for (TQValueList<EventListViewItemBase*>::Iterator it = items.begin(); it != items.end(); ++it)
{
const KAEvent& event = ((AlarmListViewItem*)(*it))->event();
diff --git a/kalarm/messagewin.cpp b/kalarm/messagewin.cpp
index 35d769c50..0b527ac35 100644
--- a/kalarm/messagewin.cpp
+++ b/kalarm/messagewin.cpp
@@ -101,7 +101,7 @@ class MessageText : public QTextEdit
}
int scrollBarHeight() const { return horizontalScrollBar()->height(); }
int scrollBarWidth() const { return verticalScrollBar()->width(); }
- virtual TQSize sizeHint() const { return TQSize(contentsWidth() + scrollBarWidth(), contentsHeight() + scrollBarHeight()); }
+ virtual TQSize tqsizeHint() const { return TQSize(contentsWidth() + scrollBarWidth(), contentsHeight() + scrollBarHeight()); }
};
@@ -125,7 +125,7 @@ class MWMimeSourceFactory : public QMimeSourceFactory
// Basic flags for the window
static const Qt::WFlags WFLAGS = Qt::WStyle_StaysOnTop | Qt::WDestructiveClose;
-// Error message bit masks
+// Error message bit tqmasks
enum {
ErrMsg_Speak = 0x01,
ErrMsg_AudioFile = 0x02,
@@ -191,7 +191,7 @@ MessageWin::MessageWin(const KAEvent& event, const KAAlarm& alarm, bool reschedu
kdDebug(5950) << "MessageWin::MessageWin(event)" << endl;
// Set to save settings automatically, but don't save window size.
// File alarm window size is saved elsewhere.
- setAutoSaveSettings(TQString::fromLatin1("MessageWin"), false);
+ setAutoSaveSettings(TQString::tqfromLatin1("MessageWin"), false);
initView();
mWindowList.append(this);
if (event.autoClose())
@@ -298,13 +298,13 @@ void MessageWin::initView()
{
// Show the alarm date/time, together with an "Advance reminder" text where appropriate
TQFrame* frame = 0;
- TQVBoxLayout* layout = topLayout;
+ TQVBoxLayout* tqlayout = topLayout;
if (reminder)
{
frame = new TQFrame(topWidget);
frame->setFrameStyle(TQFrame::Box | TQFrame::Raised);
topLayout->addWidget(frame, 0, Qt::AlignHCenter);
- layout = new TQVBoxLayout(frame, leading + frame->frameWidth(), leading);
+ tqlayout = new TQVBoxLayout(frame, leading + frame->frameWidth(), leading);
}
// Alarm date/time
@@ -314,8 +314,8 @@ void MessageWin::initView()
: KGlobal::locale()->formatDateTime(mDateTime.dateTime()));
if (!frame)
label->setFrameStyle(TQFrame::Box | TQFrame::Raised);
- label->setFixedSize(label->sizeHint());
- layout->addWidget(label, 0, Qt::AlignHCenter);
+ label->setFixedSize(label->tqsizeHint());
+ tqlayout->addWidget(label, 0, Qt::AlignHCenter);
TQWhatsThis::add(label,
i18n("The scheduled date/time for the message (as opposed to the actual time of display)."));
@@ -323,9 +323,9 @@ void MessageWin::initView()
{
label = new TQLabel(frame);
label->setText(i18n("Reminder"));
- label->setFixedSize(label->sizeHint());
- layout->addWidget(label, 0, Qt::AlignHCenter);
- frame->setFixedSize(frame->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
+ tqlayout->addWidget(label, 0, Qt::AlignHCenter);
+ frame->setFixedSize(frame->tqsizeHint());
}
}
@@ -339,7 +339,7 @@ void MessageWin::initView()
// Display the file name
TQLabel* label = new TQLabel(mMessage, topWidget);
label->setFrameStyle(TQFrame::Box | TQFrame::Raised);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
TQWhatsThis::add(label, i18n("The file whose contents are displayed below"));
topLayout->addWidget(label, 0, Qt::AlignHCenter);
@@ -357,7 +357,7 @@ void MessageWin::initView()
opened = true;
KTextBrowser* view = new KTextBrowser(topWidget, "fileContents");
MWMimeSourceFactory msf(tmpFile, view);
- view->setMinimumSize(view->sizeHint());
+ view->setMinimumSize(view->tqsizeHint());
topLayout->addWidget(view);
// Set the default size to 20 lines square.
@@ -365,7 +365,7 @@ void MessageWin::initView()
// is overridden by the user-set default stored in the config file.
// So there is no need to calculate an accurate size.
int h = 20*view->fontMetrics().lineSpacing() + 2*view->frameWidth();
- view->resize(TQSize(h, h).expandedTo(view->sizeHint()));
+ view->resize(TQSize(h, h).expandedTo(view->tqsizeHint()));
TQWhatsThis::add(view, i18n("The contents of the file to be displayed"));
}
KIO::NetAccess::removeTempFile(tmpFile);
@@ -388,7 +388,7 @@ void MessageWin::initView()
text->setPaletteForegroundColor(mFgColour);
text->setFont(mFont);
int lineSpacing = text->fontMetrics().lineSpacing();
- TQSize s = text->sizeHint();
+ TQSize s = text->tqsizeHint();
int h = s.height();
text->setMaximumHeight(h + text->scrollBarHeight());
text->setMinimumHeight(QMIN(h, lineSpacing*4));
@@ -401,14 +401,14 @@ void MessageWin::initView()
// Don't include any horizontal margins if message is 2/3 screen width
if (!mWinModule)
mWinModule = new KWinModule(0, KWinModule::INFO_DESKTOP);
- if (text->sizeHint().width() >= mWinModule->workArea().width()*2/3)
+ if (text->tqsizeHint().width() >= mWinModule->workArea().width()*2/3)
topLayout->addWidget(text, 1, Qt::AlignHCenter);
else
{
- TQBoxLayout* layout = new TQHBoxLayout(topLayout);
- layout->addSpacing(hspace);
- layout->addWidget(text, 1, Qt::AlignHCenter);
- layout->addSpacing(hspace);
+ TQBoxLayout* tqlayout = new TQHBoxLayout(topLayout);
+ tqlayout->addSpacing(hspace);
+ tqlayout->addWidget(text, 1, Qt::AlignHCenter);
+ tqlayout->addSpacing(hspace);
}
if (!reminder)
topLayout->addStretch();
@@ -426,7 +426,7 @@ void MessageWin::initView()
mRemainingText = new TQLabel(topWidget);
mRemainingText->setFrameStyle(TQFrame::Box | TQFrame::Raised);
mRemainingText->setMargin(leading);
- if (mDateTime.isDateOnly() || TQDate::currentDate().daysTo(mDateTime.date()) > 0)
+ if (mDateTime.isDateOnly() || TQDate::tqcurrentDate().daysTo(mDateTime.date()) > 0)
{
setRemainingTextDay();
MidnightTimer::connect(this, TQT_SLOT(setRemainingTextDay())); // update every day
@@ -456,17 +456,17 @@ void MessageWin::initView()
TQGridLayout* grid = new TQGridLayout(frame, 2, 2, KDialog::marginHint(), KDialog::spacingHint());
TQLabel* label = new TQLabel(i18n("Email addressee", "To:"), frame);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
grid->addWidget(label, 0, 0, Qt::AlignLeft);
label = new TQLabel(mEvent.emailAddresses("\n"), frame);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
grid->addWidget(label, 0, 1, Qt::AlignLeft);
label = new TQLabel(i18n("Email subject", "Subject:"), frame);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
grid->addWidget(label, 1, 0, Qt::AlignLeft);
label = new TQLabel(mEvent.emailSubject(), frame);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
grid->addWidget(label, 1, 1, Qt::AlignLeft);
break;
}
@@ -484,21 +484,21 @@ void MessageWin::initView()
else
{
setCaption(i18n("Error"));
- TQBoxLayout* layout = new TQHBoxLayout(topLayout);
- layout->setMargin(2*KDialog::marginHint());
- layout->addStretch();
+ TQBoxLayout* tqlayout = new TQHBoxLayout(topLayout);
+ tqlayout->setMargin(2*KDialog::marginHint());
+ tqlayout->addStretch();
TQLabel* label = new TQLabel(topWidget);
label->setPixmap(DesktopIcon("error"));
- label->setFixedSize(label->sizeHint());
- layout->addWidget(label, 0, Qt::AlignRight);
- TQBoxLayout* vlayout = new TQVBoxLayout(layout);
+ label->setFixedSize(label->tqsizeHint());
+ tqlayout->addWidget(label, 0, Qt::AlignRight);
+ TQBoxLayout* vtqlayout = new TQVBoxLayout(tqlayout);
for (TQStringList::Iterator it = mErrorMsgs.begin(); it != mErrorMsgs.end(); ++it)
{
label = new TQLabel(*it, topWidget);
- label->setFixedSize(label->sizeHint());
- vlayout->addWidget(label, 0, Qt::AlignLeft);
+ label->setFixedSize(label->tqsizeHint());
+ vtqlayout->addWidget(label, 0, Qt::AlignLeft);
}
- layout->addStretch();
+ tqlayout->addStretch();
}
TQGridLayout* grid = new TQGridLayout(1, 4);
@@ -511,7 +511,7 @@ void MessageWin::initView()
// Prevent accidental acknowledgement of the message if the user is typing when the window appears
mOkButton->clearFocus();
mOkButton->setFocusPolicy(TQWidget::ClickFocus); // don't allow keyboard selection
- mOkButton->setFixedSize(mOkButton->sizeHint());
+ mOkButton->setFixedSize(mOkButton->tqsizeHint());
connect(mOkButton, TQT_SIGNAL(clicked()), TQT_SLOT(close()));
grid->addWidget(mOkButton, 0, gridIndex++, AlignHCenter);
TQWhatsThis::add(mOkButton, i18n("Acknowledge the alarm"));
@@ -521,7 +521,7 @@ void MessageWin::initView()
// Edit button
mEditButton = new TQPushButton(i18n("&Edit..."), topWidget);
mEditButton->setFocusPolicy(TQWidget::ClickFocus); // don't allow keyboard selection
- mEditButton->setFixedSize(mEditButton->sizeHint());
+ mEditButton->setFixedSize(mEditButton->tqsizeHint());
connect(mEditButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotEdit()));
grid->addWidget(mEditButton, 0, gridIndex++, AlignHCenter);
TQWhatsThis::add(mEditButton, i18n("Edit the alarm."));
@@ -532,7 +532,7 @@ void MessageWin::initView()
// Defer button
mDeferButton = new TQPushButton(i18n("&Defer..."), topWidget);
mDeferButton->setFocusPolicy(TQWidget::ClickFocus); // don't allow keyboard selection
- mDeferButton->setFixedSize(mDeferButton->sizeHint());
+ mDeferButton->setFixedSize(mDeferButton->tqsizeHint());
connect(mDeferButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotDefer()));
grid->addWidget(mDeferButton, 0, gridIndex++, AlignHCenter);
TQWhatsThis::add(mDeferButton,
@@ -549,7 +549,7 @@ void MessageWin::initView()
TQPixmap pixmap = MainBarIcon("player_stop");
mSilenceButton = new TQPushButton(topWidget);
mSilenceButton->setPixmap(pixmap);
- mSilenceButton->setFixedSize(mSilenceButton->sizeHint());
+ mSilenceButton->setFixedSize(mSilenceButton->tqsizeHint());
connect(mSilenceButton, TQT_SIGNAL(clicked()), TQT_SLOT(stopPlay()));
grid->addWidget(mSilenceButton, 0, gridIndex++, AlignHCenter);
TQToolTip::add(mSilenceButton, i18n("Stop sound"));
@@ -563,10 +563,10 @@ void MessageWin::initView()
if (mKMailSerialNumber)
{
// KMail button
- TQPixmap pixmap = iconLoader.loadIcon(TQString::fromLatin1("kmail"), KIcon::MainToolbar);
+ TQPixmap pixmap = iconLoader.loadIcon(TQString::tqfromLatin1("kmail"), KIcon::MainToolbar);
mKMailButton = new TQPushButton(topWidget);
mKMailButton->setPixmap(pixmap);
- mKMailButton->setFixedSize(mKMailButton->sizeHint());
+ mKMailButton->setFixedSize(mKMailButton->tqsizeHint());
connect(mKMailButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotShowKMailMessage()));
grid->addWidget(mKMailButton, 0, gridIndex++, AlignHCenter);
TQToolTip::add(mKMailButton, i18n("Locate this email in KMail", "Locate in KMail"));
@@ -576,10 +576,10 @@ void MessageWin::initView()
mKMailButton = 0;
// KAlarm button
- TQPixmap pixmap = iconLoader.loadIcon(TQString::fromLatin1(kapp->aboutData()->appName()), KIcon::MainToolbar);
+ TQPixmap pixmap = iconLoader.loadIcon(TQString::tqfromLatin1(kapp->aboutData()->appName()), KIcon::MainToolbar);
mKAlarmButton = new TQPushButton(topWidget);
mKAlarmButton->setPixmap(pixmap);
- mKAlarmButton->setFixedSize(mKAlarmButton->sizeHint());
+ mKAlarmButton->setFixedSize(mKAlarmButton->tqsizeHint());
connect(mKAlarmButton, TQT_SIGNAL(clicked()), TQT_SLOT(displayMainWindow()));
grid->addWidget(mKAlarmButton, 0, gridIndex++, AlignHCenter);
TQString actKAlarm = i18n("Activate KAlarm");
@@ -598,7 +598,7 @@ void MessageWin::initView()
mKAlarmButton->setEnabled(false);
topLayout->activate();
- setMinimumSize(TQSize(grid->sizeHint().width() + 2*KDialog::marginHint(), sizeHint().height()));
+ setMinimumSize(TQSize(grid->tqsizeHint().width() + 2*KDialog::marginHint(), tqsizeHint().height()));
bool modal = !(getWFlags() & Qt::WX11BypassWM);
@@ -615,7 +615,7 @@ void MessageWin::initView()
void MessageWin::setRemainingTextDay()
{
TQString text;
- int days = TQDate::currentDate().daysTo(mDateTime.date());
+ int days = TQDate::tqcurrentDate().daysTo(mDateTime.date());
if (days <= 0 && !mDateTime.isDateOnly())
{
// The alarm is due today, so start refreshing every minute
@@ -642,7 +642,7 @@ void MessageWin::setRemainingTextDay()
void MessageWin::setRemainingTextMinute()
{
TQString text;
- int mins = (TQDateTime::currentDateTime().secsTo(mDateTime.dateTime()) + 59) / 60;
+ int mins = (TQDateTime::tqcurrentDateTime().secsTo(mDateTime.dateTime()) + 59) / 60;
if (mins < 60)
text = i18n("in 1 minute's time", "in %n minutes' time", (mins > 0 ? mins : 0));
else if (mins % 60 == 0)
@@ -662,38 +662,38 @@ void MessageWin::saveProperties(KConfig* config)
{
if (mShown && !mErrorWindow)
{
- config->writeEntry(TQString::fromLatin1("EventID"), mEventID);
- config->writeEntry(TQString::fromLatin1("AlarmType"), mAlarmType);
- config->writeEntry(TQString::fromLatin1("Message"), mMessage);
- config->writeEntry(TQString::fromLatin1("Type"), mAction);
- config->writeEntry(TQString::fromLatin1("Font"), mFont);
- config->writeEntry(TQString::fromLatin1("BgColour"), mBgColour);
- config->writeEntry(TQString::fromLatin1("FgColour"), mFgColour);
- config->writeEntry(TQString::fromLatin1("ConfirmAck"), mConfirmAck);
+ config->writeEntry(TQString::tqfromLatin1("EventID"), mEventID);
+ config->writeEntry(TQString::tqfromLatin1("AlarmType"), mAlarmType);
+ config->writeEntry(TQString::tqfromLatin1("Message"), mMessage);
+ config->writeEntry(TQString::tqfromLatin1("Type"), mAction);
+ config->writeEntry(TQString::tqfromLatin1("Font"), mFont);
+ config->writeEntry(TQString::tqfromLatin1("BgColour"), mBgColour);
+ config->writeEntry(TQString::tqfromLatin1("FgColour"), mFgColour);
+ config->writeEntry(TQString::tqfromLatin1("ConfirmAck"), mConfirmAck);
if (mDateTime.isValid())
{
- config->writeEntry(TQString::fromLatin1("Time"), mDateTime.dateTime());
- config->writeEntry(TQString::fromLatin1("DateOnly"), mDateTime.isDateOnly());
+ config->writeEntry(TQString::tqfromLatin1("Time"), mDateTime.dateTime());
+ config->writeEntry(TQString::tqfromLatin1("DateOnly"), mDateTime.isDateOnly());
}
if (mCloseTime.isValid())
- config->writeEntry(TQString::fromLatin1("Expiry"), mCloseTime);
+ config->writeEntry(TQString::tqfromLatin1("Expiry"), mCloseTime);
#ifndef WITHOUT_ARTS
if (mAudioRepeat && mSilenceButton && mSilenceButton->isEnabled())
{
// Only need to restart sound file playing if it's being repeated
- config->writePathEntry(TQString::fromLatin1("AudioFile"), mAudioFile);
- config->writeEntry(TQString::fromLatin1("Volume"), static_cast<int>(mVolume * 100));
+ config->writePathEntry(TQString::tqfromLatin1("AudioFile"), mAudioFile);
+ config->writeEntry(TQString::tqfromLatin1("Volume"), static_cast<int>(mVolume * 100));
}
#endif
- config->writeEntry(TQString::fromLatin1("Speak"), mSpeak);
- config->writeEntry(TQString::fromLatin1("Height"), height());
- config->writeEntry(TQString::fromLatin1("DeferMins"), mDefaultDeferMinutes);
- config->writeEntry(TQString::fromLatin1("NoDefer"), mNoDefer);
- config->writeEntry(TQString::fromLatin1("NoPostAction"), mNoPostAction);
- config->writeEntry(TQString::fromLatin1("KMailSerial"), mKMailSerialNumber);
+ config->writeEntry(TQString::tqfromLatin1("Speak"), mSpeak);
+ config->writeEntry(TQString::tqfromLatin1("Height"), height());
+ config->writeEntry(TQString::tqfromLatin1("DeferMins"), mDefaultDeferMinutes);
+ config->writeEntry(TQString::tqfromLatin1("NoDefer"), mNoDefer);
+ config->writeEntry(TQString::tqfromLatin1("NoPostAction"), mNoPostAction);
+ config->writeEntry(TQString::tqfromLatin1("KMailSerial"), mKMailSerialNumber);
}
else
- config->writeEntry(TQString::fromLatin1("Invalid"), true);
+ config->writeEntry(TQString::tqfromLatin1("Invalid"), true);
}
/******************************************************************************
@@ -703,34 +703,34 @@ void MessageWin::saveProperties(KConfig* config)
*/
void MessageWin::readProperties(KConfig* config)
{
- mInvalid = config->readBoolEntry(TQString::fromLatin1("Invalid"), false);
- mEventID = config->readEntry(TQString::fromLatin1("EventID"));
- mAlarmType = KAAlarm::Type(config->readNumEntry(TQString::fromLatin1("AlarmType")));
- mMessage = config->readEntry(TQString::fromLatin1("Message"));
- mAction = KAEvent::Action(config->readNumEntry(TQString::fromLatin1("Type")));
- mFont = config->readFontEntry(TQString::fromLatin1("Font"));
- mBgColour = config->readColorEntry(TQString::fromLatin1("BgColour"));
- mFgColour = config->readColorEntry(TQString::fromLatin1("FgColour"));
- mConfirmAck = config->readBoolEntry(TQString::fromLatin1("ConfirmAck"));
+ mInvalid = config->readBoolEntry(TQString::tqfromLatin1("Invalid"), false);
+ mEventID = config->readEntry(TQString::tqfromLatin1("EventID"));
+ mAlarmType = KAAlarm::Type(config->readNumEntry(TQString::tqfromLatin1("AlarmType")));
+ mMessage = config->readEntry(TQString::tqfromLatin1("Message"));
+ mAction = KAEvent::Action(config->readNumEntry(TQString::tqfromLatin1("Type")));
+ mFont = config->readFontEntry(TQString::tqfromLatin1("Font"));
+ mBgColour = config->readColorEntry(TQString::tqfromLatin1("BgColour"));
+ mFgColour = config->readColorEntry(TQString::tqfromLatin1("FgColour"));
+ mConfirmAck = config->readBoolEntry(TQString::tqfromLatin1("ConfirmAck"));
TQDateTime invalidDateTime;
- TQDateTime dt = config->readDateTimeEntry(TQString::fromLatin1("Time"), &invalidDateTime);
- bool dateOnly = config->readBoolEntry(TQString::fromLatin1("DateOnly"));
+ TQDateTime dt = config->readDateTimeEntry(TQString::tqfromLatin1("Time"), &invalidDateTime);
+ bool dateOnly = config->readBoolEntry(TQString::tqfromLatin1("DateOnly"));
mDateTime.set(dt, dateOnly);
- mCloseTime = config->readDateTimeEntry(TQString::fromLatin1("Expiry"), &invalidDateTime);
+ mCloseTime = config->readDateTimeEntry(TQString::tqfromLatin1("Expiry"), &invalidDateTime);
#ifndef WITHOUT_ARTS
- mAudioFile = config->readPathEntry(TQString::fromLatin1("AudioFile"));
- mVolume = static_cast<float>(config->readNumEntry(TQString::fromLatin1("Volume"))) / 100;
+ mAudioFile = config->readPathEntry(TQString::tqfromLatin1("AudioFile"));
+ mVolume = static_cast<float>(config->readNumEntry(TQString::tqfromLatin1("Volume"))) / 100;
mFadeVolume = -1;
mFadeSeconds = 0;
if (!mAudioFile.isEmpty())
mAudioRepeat = true;
#endif
- mSpeak = config->readBoolEntry(TQString::fromLatin1("Speak"));
- mRestoreHeight = config->readNumEntry(TQString::fromLatin1("Height"));
- mDefaultDeferMinutes = config->readNumEntry(TQString::fromLatin1("DeferMins"));
- mNoDefer = config->readBoolEntry(TQString::fromLatin1("NoDefer"));
- mNoPostAction = config->readBoolEntry(TQString::fromLatin1("NoPostAction"));
- mKMailSerialNumber = config->readUnsignedLongNumEntry(TQString::fromLatin1("KMailSerial"));
+ mSpeak = config->readBoolEntry(TQString::tqfromLatin1("Speak"));
+ mRestoreHeight = config->readNumEntry(TQString::tqfromLatin1("Height"));
+ mDefaultDeferMinutes = config->readNumEntry(TQString::tqfromLatin1("DeferMins"));
+ mNoDefer = config->readBoolEntry(TQString::tqfromLatin1("NoDefer"));
+ mNoPostAction = config->readBoolEntry(TQString::tqfromLatin1("NoPostAction"));
+ mKMailSerialNumber = config->readUnsignedLongNumEntry(TQString::tqfromLatin1("KMailSerial"));
mShowEdit = false;
kdDebug(5950) << "MessageWin::readProperties(" << mEventID << ")" << endl;
if (mAlarmType != KAAlarm::INVALID_ALARM)
@@ -789,7 +789,7 @@ void MessageWin::playAudio()
return; // ensure zero volume doesn't play anything
#ifdef WITHOUT_ARTS
TQString play = mAudioFile;
- TQString file = TQString::fromLatin1("file:");
+ TQString file = TQString::tqfromLatin1("file:");
if (mAudioFile.startsWith(file))
play = mAudioFile.mid(file.length());
KAudioPlayer::play(TQFile::encodeName(play));
@@ -883,7 +883,7 @@ void MessageWin::slotPlayAudio()
if (!haveErrorMessage(ErrMsg_Volume))
{
KMessageBox::information(this, i18n("Unable to set master volume\n(Error accessing KMix:\n%1)").arg(mKMixError),
- TQString::null, TQString::fromLatin1("KMixError"));
+ TQString::null, TQString::tqfromLatin1("KMixError"));
clearErrorMessage(ErrMsg_Volume);
}
}
@@ -1183,7 +1183,7 @@ void MessageWin::show()
if (mCloseTime.isValid())
{
// Set a timer to auto-close the window
- int delay = TQDateTime::currentDateTime().secsTo(mCloseTime);
+ int delay = TQDateTime::tqcurrentDateTime().secsTo(mCloseTime);
if (delay < 0)
delay = 0;
TQTimer::singleShot(delay * 1000, this, TQT_SLOT(close()));
@@ -1200,18 +1200,18 @@ void MessageWin::show()
* For message windows, the size if limited to fit inside the working area of
* the desktop.
*/
-TQSize MessageWin::sizeHint() const
+TQSize MessageWin::tqsizeHint() const
{
if (mAction != KAEvent::MESSAGE)
- return MainWindowBase::sizeHint();
+ return MainWindowBase::tqsizeHint();
if (!mWinModule)
mWinModule = new KWinModule(0, KWinModule::INFO_DESKTOP);
TQSize frame = frameGeometry().size();
- TQSize contents = geometry().size();
+ TQSize contents = tqgeometry().size();
TQSize desktop = mWinModule->workArea().size();
TQSize maxSize(desktop.width() - (frame.width() - contents.width()),
desktop.height() - (frame.height() - contents.height()));
- return MainWindowBase::sizeHint().boundedTo(maxSize);
+ return MainWindowBase::tqsizeHint().boundedTo(maxSize);
}
/******************************************************************************
@@ -1233,7 +1233,7 @@ void MessageWin::showEvent(TQShowEvent* se)
* method is called, so for large windows the size needs to be
* set again later.
*/
- TQSize s = sizeHint(); // fit the window round the message
+ TQSize s = tqsizeHint(); // fit the window round the message
if (mAction == KAEvent::FILE && !mErrorMsgs.count())
KAlarm::readConfigWindowSize("FileMessage", s);
resize(s);
@@ -1246,10 +1246,10 @@ void MessageWin::showEvent(TQShowEvent* se)
* To achieve this, move the window so that the OK button is as far away
* from the cursor as possible. If the buttons are still too close to the
* cursor, disable the buttons for a short time.
- * N.B. This can't be done in show(), since the geometry of the window
+ * N.B. This can't be done in show(), since the tqgeometry of the window
* is not known until it is displayed. Unfortunately by moving the
* window in showEvent(), a flicker is unavoidable.
- * See the Qt documentation on window geometry for more details.
+ * See the Qt documentation on window tqgeometry for more details.
*/
// PROBLEM: The frame size is not known yet!
@@ -1267,7 +1267,7 @@ void MessageWin::showEvent(TQShowEvent* se)
desk &= dw->screenGeometry(dw->screenNumber(cursor));
TQRect frame = frameGeometry();
- TQRect rect = geometry();
+ TQRect rect = tqgeometry();
// Find the offsets from the outside of the frame to the edges of the OK button
TQRect button(mOkButton->mapToParent(TQPoint(0, 0)), mOkButton->mapToParent(mOkButton->rect().bottomRight()));
int buttonLeft = button.left() + rect.left() - frame.left();
@@ -1282,7 +1282,7 @@ void MessageWin::showEvent(TQShowEvent* se)
// Find the enclosing rectangle for the new button positions
// and check if the cursor is too near
- TQRect buttons = mOkButton->geometry().unite(mKAlarmButton->geometry());
+ TQRect buttons = mOkButton->tqgeometry().unite(mKAlarmButton->tqgeometry());
buttons.moveBy(rect.left() + x - frame.left(), rect.top() + y - frame.top());
int minDistance = proximityMultiple * mOkButton->height();
if ((abs(cursor.x() - buttons.left()) < minDistance
@@ -1328,7 +1328,7 @@ void MessageWin::moveEvent(TQMoveEvent* e)
*/
void MessageWin::setMaxSize()
{
- TQSize s = sizeHint();
+ TQSize s = tqsizeHint();
if (width() > s.width() || height() > s.height())
resize(s);
}
@@ -1437,8 +1437,8 @@ void MessageWin::slotShowKMailMessage()
TQCString replyType;
TQByteArray data, replyData;
TQDataStream arg(data, IO_WriteOnly);
- arg << (Q_UINT32)mKMailSerialNumber << TQString::null;
- if (kapp->dcopClient()->call("kmail", KMAIL_DCOP_OBJECT, "showMail(Q_UINT32,TQString)", data, replyType, replyData)
+ arg << (TQ_UINT32)mKMailSerialNumber << TQString::null;
+ if (kapp->dcopClient()->call("kmail", KMAIL_DCOP_OBJECT, "showMail(TQ_UINT32,TQString)", data, replyType, replyData)
&& replyType == "bool")
{
bool result;
@@ -1468,7 +1468,7 @@ void MessageWin::slotEdit()
KAlarm::UpdateStatus status;
if (AlarmCalendar::activeCalendar()->event(mEventID))
{
- // The old alarm hasn't expired yet, so replace it
+ // The old alarm hasn't expired yet, so tqreplace it
status = KAlarm::modifyEvent(mEvent, event, 0, &editDlg);
Undo::saveEdit(mEvent, event);
}
@@ -1516,7 +1516,7 @@ void MessageWin::checkDeferralLimit()
{
if (!mDeferButton || !mDeferLimit.isValid())
return;
- int n = TQDate::currentDate().daysTo(mDeferLimit.date());
+ int n = TQDate::tqcurrentDate().daysTo(mDeferLimit.date());
if (n > 0)
return;
MidnightTimer::disconnect(this, TQT_SLOT(checkDeferralLimit()));
@@ -1540,7 +1540,7 @@ void MessageWin::checkDeferralLimit()
*/
void MessageWin::slotDefer()
{
- mDeferDlg = new DeferAlarmDlg(i18n("Defer Alarm"), TQDateTime::currentDateTime().addSecs(60),
+ mDeferDlg = new DeferAlarmDlg(i18n("Defer Alarm"), TQDateTime::tqcurrentDateTime().addSecs(60),
false, this, "deferDlg");
if (mDefaultDeferMinutes > 0)
mDeferDlg->setDeferMinutes(mDefaultDeferMinutes);
@@ -1622,7 +1622,7 @@ void MessageWin::displayMainWindow()
*/
bool MessageWin::haveErrorMessage(unsigned msg) const
{
- if (!mErrorMessages.contains(mEventID))
+ if (!mErrorMessages.tqcontains(mEventID))
mErrorMessages.insert(mEventID, 0);
bool result = (mErrorMessages[mEventID] & msg);
mErrorMessages[mEventID] |= msg;
@@ -1631,7 +1631,7 @@ bool MessageWin::haveErrorMessage(unsigned msg) const
void MessageWin::clearErrorMessage(unsigned msg) const
{
- if (mErrorMessages.contains(mEventID))
+ if (mErrorMessages.tqcontains(mEventID))
{
if (mErrorMessages[mEventID] == msg)
mErrorMessages.remove(mEventID);
@@ -1673,7 +1673,7 @@ MWMimeSourceFactory::MWMimeSourceFactory(const TQString& absPath, KTextBrowser*
mLast(0)
{
view->setMimeSourceFactory(this);
- TQString type = KMimeType::findByPath(absPath)->name();
+ TQString type = KMimeType::tqfindByPath(absPath)->name();
switch (KAlarm::fileType(type))
{
case KAlarm::TextPlain:
diff --git a/kalarm/messagewin.h b/kalarm/messagewin.h
index f3ac45f4a..52c86c5fc 100644
--- a/kalarm/messagewin.h
+++ b/kalarm/messagewin.h
@@ -56,7 +56,7 @@ class MessageWin : public MainWindowBase
bool hasDefer() const { return !!mDeferButton; }
bool isValid() const { return !mInvalid; }
virtual void show();
- virtual TQSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
static int instanceCount() { return mWindowList.count(); }
static MessageWin* findEvent(const TQString& eventID);
diff --git a/kalarm/prefdlg.cpp b/kalarm/prefdlg.cpp
index ff312416d..70e720dc0 100644
--- a/kalarm/prefdlg.cpp
+++ b/kalarm/prefdlg.cpp
@@ -81,12 +81,12 @@
// %C = temporary command file to execute in terminal
// %W = temporary command file to execute in terminal, with 'sleep 86400' appended
static TQString xtermCommands[] = {
- TQString::fromLatin1("xterm -sb -hold -title %t -e %c"),
- TQString::fromLatin1("konsole --noclose -T %t -e ${SHELL:-sh} -c %c"),
- TQString::fromLatin1("gnome-terminal -t %t -e %W"),
- TQString::fromLatin1("eterm --pause -T %t -e %C"), // some systems use eterm...
- TQString::fromLatin1("Eterm --pause -T %t -e %C"), // while some use Eterm
- TQString::fromLatin1("rxvt -title %t -e ${SHELL:-sh} -c %w"),
+ TQString::tqfromLatin1("xterm -sb -hold -title %t -e %c"),
+ TQString::tqfromLatin1("konsole --noclose -T %t -e ${SHELL:-sh} -c %c"),
+ TQString::tqfromLatin1("gnome-terminal -t %t -e %W"),
+ TQString::tqfromLatin1("eterm --pause -T %t -e %C"), // some systems use eterm...
+ TQString::tqfromLatin1("Eterm --pause -T %t -e %C"), // while some use Eterm
+ TQString::tqfromLatin1("rxvt -title %t -e ${SHELL:-sh} -c %w"),
TQString::null // end of list indicator - don't change!
};
@@ -169,7 +169,7 @@ void KAlarmPrefDlg::slotApply()
TQString errmsg = mEmailPage->validate();
if (!errmsg.isEmpty())
{
- showPage(pageIndex(mEmailPage->parentWidget()));
+ showPage(pageIndex(mEmailPage->tqparentWidget()));
if (KMessageBox::warningYesNo(this, errmsg) != KMessageBox::Yes)
{
mValid = false;
@@ -179,7 +179,7 @@ void KAlarmPrefDlg::slotApply()
errmsg = mEditPage->validate();
if (!errmsg.isEmpty())
{
- showPage(pageIndex(mEditPage->parentWidget()));
+ showPage(pageIndex(mEditPage->tqparentWidget()));
KMessageBox::sorry(this, errmsg);
mValid = false;
return;
@@ -250,8 +250,8 @@ void PrefsTabBase::apply(bool syncToDisc)
MiscPrefTab::MiscPrefTab(TQVBox* frame)
: PrefsTabBase(frame)
{
- // Get alignment to use in TQGridLayout (AlignAuto doesn't work correctly there)
- int alignment = TQApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
+ // Get tqalignment to use in TQGridLayout (AlignAuto doesn't work correctly there)
+ int tqalignment = TQApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
TQGroupBox* group = new TQButtonGroup(i18n("Run Mode"), mPage, "modeGroup");
TQGridLayout* grid = new TQGridLayout(group, 6, 2, KDialog::marginHint(), KDialog::spacingHint());
@@ -262,18 +262,18 @@ MiscPrefTab::MiscPrefTab(TQVBox* frame)
// Run-on-demand radio button
mRunOnDemand = new TQRadioButton(i18n("&Run only on demand"), group, "runDemand");
- mRunOnDemand->setFixedSize(mRunOnDemand->sizeHint());
+ mRunOnDemand->setFixedSize(mRunOnDemand->tqsizeHint());
connect(mRunOnDemand, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotRunModeToggled(bool)));
TQWhatsThis::add(mRunOnDemand,
i18n("Check to run KAlarm only when required.\n\n"
"Notes:\n"
"1. Alarms are displayed even when KAlarm is not running, since alarm monitoring is done by the alarm daemon.\n"
"2. With this option selected, the system tray icon can be displayed or hidden independently of KAlarm."));
- grid->addMultiCellWidget(mRunOnDemand, 1, 1, 0, 2, alignment);
+ grid->addMultiCellWidget(mRunOnDemand, 1, 1, 0, 2, tqalignment);
// Run-in-system-tray radio button
mRunInSystemTray = new TQRadioButton(i18n("Run continuously in system &tray"), group, "runTray");
- mRunInSystemTray->setFixedSize(mRunInSystemTray->sizeHint());
+ mRunInSystemTray->setFixedSize(mRunInSystemTray->tqsizeHint());
connect(mRunInSystemTray, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotRunModeToggled(bool)));
TQWhatsThis::add(mRunInSystemTray,
i18n("Check to run KAlarm continuously in the KDE system tray.\n\n"
@@ -281,39 +281,39 @@ MiscPrefTab::MiscPrefTab(TQVBox* frame)
"1. With this option selected, closing the system tray icon will quit KAlarm.\n"
"2. You do not need to select this option in order for alarms to be displayed, since alarm monitoring is done by the alarm daemon."
" Running in the system tray simply provides easy access and a status indication."));
- grid->addMultiCellWidget(mRunInSystemTray, 2, 2, 0, 2, alignment);
+ grid->addMultiCellWidget(mRunInSystemTray, 2, 2, 0, 2, tqalignment);
// Run continuously options
mDisableAlarmsIfStopped = new TQCheckBox(i18n("Disa&ble alarms while not running"), group, "disableAl");
- mDisableAlarmsIfStopped->setFixedSize(mDisableAlarmsIfStopped->sizeHint());
+ mDisableAlarmsIfStopped->setFixedSize(mDisableAlarmsIfStopped->tqsizeHint());
connect(mDisableAlarmsIfStopped, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotDisableIfStoppedToggled(bool)));
TQWhatsThis::add(mDisableAlarmsIfStopped,
i18n("Check to disable alarms whenever KAlarm is not running. Alarms will only appear while the system tray icon is visible."));
- grid->addMultiCellWidget(mDisableAlarmsIfStopped, 3, 3, 1, 2, alignment);
+ grid->addMultiCellWidget(mDisableAlarmsIfStopped, 3, 3, 1, 2, tqalignment);
mQuitWarn = new TQCheckBox(i18n("Warn before &quitting"), group, "disableAl");
- mQuitWarn->setFixedSize(mQuitWarn->sizeHint());
+ mQuitWarn->setFixedSize(mQuitWarn->tqsizeHint());
TQWhatsThis::add(mQuitWarn,
i18n("Check to display a warning prompt before quitting KAlarm."));
- grid->addWidget(mQuitWarn, 4, 2, alignment);
+ grid->addWidget(mQuitWarn, 4, 2, tqalignment);
mAutostartTrayIcon = new TQCheckBox(i18n("Autostart at &login"), group, "autoTray");
#ifdef AUTOSTART_BY_KALARMD
connect(mAutostartTrayIcon, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotAutostartToggled(bool)));
#endif
- grid->addMultiCellWidget(mAutostartTrayIcon, 5, 5, 0, 2, alignment);
+ grid->addMultiCellWidget(mAutostartTrayIcon, 5, 5, 0, 2, tqalignment);
// Autostart alarm daemon
mAutostartDaemon = new TQCheckBox(i18n("Start alarm monitoring at lo&gin"), group, "startDaemon");
- mAutostartDaemon->setFixedSize(mAutostartDaemon->sizeHint());
+ mAutostartDaemon->setFixedSize(mAutostartDaemon->tqsizeHint());
connect(mAutostartDaemon, TQT_SIGNAL(clicked()), TQT_SLOT(slotAutostartDaemonClicked()));
TQWhatsThis::add(mAutostartDaemon,
i18n("Automatically start alarm monitoring whenever you start KDE, by running the alarm daemon (%1).\n\n"
"This option should always be checked unless you intend to discontinue use of KAlarm.")
- .arg(TQString::fromLatin1(DAEMON_APP_NAME)));
- grid->addMultiCellWidget(mAutostartDaemon, 6, 6, 0, 2, alignment);
+ .arg(TQString::tqfromLatin1(DAEMON_APP_NAME)));
+ grid->addMultiCellWidget(mAutostartDaemon, 6, 6, 0, 2, tqalignment);
- group->setFixedHeight(group->sizeHint().height());
+ group->setFixedHeight(group->tqsizeHint().height());
// Start-of-day time
TQHBox* itemBox = new TQHBox(mPage);
@@ -321,22 +321,22 @@ MiscPrefTab::MiscPrefTab(TQVBox* frame)
box->setSpacing(KDialog::spacingHint());
TQLabel* label = new TQLabel(i18n("&Start of day for date-only alarms:"), box);
mStartOfDay = new TimeEdit(box);
- mStartOfDay->setFixedSize(mStartOfDay->sizeHint());
+ mStartOfDay->setFixedSize(mStartOfDay->tqsizeHint());
label->setBuddy(mStartOfDay);
static const TQString startOfDayText = i18n("The earliest time of day at which a date-only alarm (i.e. "
"an alarm with \"any time\" specified) will be triggered.");
TQWhatsThis::add(box, TQString("%1\n\n%2").arg(startOfDayText).arg(TimeSpinBox::shiftWhatsThis()));
itemBox->setStretchFactor(new TQWidget(itemBox), 1); // left adjust the controls
- itemBox->setFixedHeight(box->sizeHint().height());
+ itemBox->setFixedHeight(box->tqsizeHint().height());
// Confirm alarm deletion?
itemBox = new TQHBox(mPage); // this is to allow left adjustment
mConfirmAlarmDeletion = new TQCheckBox(i18n("Con&firm alarm deletions"), itemBox, "confirmDeletion");
- mConfirmAlarmDeletion->setMinimumSize(mConfirmAlarmDeletion->sizeHint());
+ mConfirmAlarmDeletion->setMinimumSize(mConfirmAlarmDeletion->tqsizeHint());
TQWhatsThis::add(mConfirmAlarmDeletion,
i18n("Check to be prompted for confirmation each time you delete an alarm."));
itemBox->setStretchFactor(new TQWidget(itemBox), 1); // left adjust the controls
- itemBox->setFixedHeight(itemBox->sizeHint().height());
+ itemBox->setFixedHeight(itemBox->tqsizeHint().height());
// Expired alarms
group = new TQGroupBox(i18n("Expired Alarms"), mPage);
@@ -345,35 +345,35 @@ MiscPrefTab::MiscPrefTab(TQVBox* frame)
grid->addColSpacing(0, indentWidth());
grid->addRowSpacing(0, fontMetrics().lineSpacing()/2);
mKeepExpired = new TQCheckBox(i18n("Keep alarms after e&xpiry"), group, "keepExpired");
- mKeepExpired->setFixedSize(mKeepExpired->sizeHint());
+ mKeepExpired->setFixedSize(mKeepExpired->tqsizeHint());
connect(mKeepExpired, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotExpiredToggled(bool)));
TQWhatsThis::add(mKeepExpired,
i18n("Check to store alarms after expiry or deletion (except deleted alarms which were never triggered)."));
- grid->addMultiCellWidget(mKeepExpired, 1, 1, 0, 1, alignment);
+ grid->addMultiCellWidget(mKeepExpired, 1, 1, 0, 1, tqalignment);
box = new TQHBox(group);
box->setSpacing(KDialog::spacingHint());
mPurgeExpired = new TQCheckBox(i18n("Discard ex&pired alarms after:"), box, "purgeExpired");
- mPurgeExpired->setMinimumSize(mPurgeExpired->sizeHint());
+ mPurgeExpired->setMinimumSize(mPurgeExpired->tqsizeHint());
connect(mPurgeExpired, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotExpiredToggled(bool)));
mPurgeAfter = new SpinBox(box);
mPurgeAfter->setMinValue(1);
mPurgeAfter->setLineShiftStep(10);
- mPurgeAfter->setMinimumSize(mPurgeAfter->sizeHint());
+ mPurgeAfter->setMinimumSize(mPurgeAfter->tqsizeHint());
mPurgeAfterLabel = new TQLabel(i18n("da&ys"), box);
- mPurgeAfterLabel->setMinimumSize(mPurgeAfterLabel->sizeHint());
+ mPurgeAfterLabel->setMinimumSize(mPurgeAfterLabel->tqsizeHint());
mPurgeAfterLabel->setBuddy(mPurgeAfter);
TQWhatsThis::add(box,
i18n("Uncheck to store expired alarms indefinitely. Check to enter how long expired alarms should be stored."));
- grid->addWidget(box, 2, 1, alignment);
+ grid->addWidget(box, 2, 1, tqalignment);
mClearExpired = new TQPushButton(i18n("Clear Expired Alar&ms"), group);
- mClearExpired->setFixedSize(mClearExpired->sizeHint());
+ mClearExpired->setFixedSize(mClearExpired->tqsizeHint());
connect(mClearExpired, TQT_SIGNAL(clicked()), TQT_SLOT(slotClearExpired()));
TQWhatsThis::add(mClearExpired,
i18n("Delete all existing expired alarms."));
- grid->addWidget(mClearExpired, 3, 1, alignment);
- group->setFixedHeight(group->sizeHint().height());
+ grid->addWidget(mClearExpired, 3, 1, tqalignment);
+ group->setFixedHeight(group->tqsizeHint().height());
// Terminal window to use for command alarms
group = new TQGroupBox(i18n("Terminal for Command Alarms"), mPage);
@@ -395,15 +395,15 @@ MiscPrefTab::MiscPrefTab(TQVBox* frame)
if (args.isEmpty() || KStandardDirs::findExe(args[0]).isEmpty())
continue;
TQRadioButton* radio = new TQRadioButton(args[0], group);
- radio->setMinimumSize(radio->sizeHint());
+ radio->setMinimumSize(radio->tqsizeHint());
mXtermType->insert(radio, mXtermCount);
if (mXtermFirst < 0)
mXtermFirst = mXtermCount; // note the id of the first button
- cmd.replace("%t", kapp->aboutData()->programName());
- cmd.replace("%c", "<command>");
- cmd.replace("%w", "<command; sleep>");
- cmd.replace("%C", "[command]");
- cmd.replace("%W", "[command; sleep]");
+ cmd.tqreplace("%t", kapp->aboutData()->programName());
+ cmd.tqreplace("%c", "<command>");
+ cmd.tqreplace("%w", "<command; sleep>");
+ cmd.tqreplace("%C", "[command]");
+ cmd.tqreplace("%W", "[command; sleep]");
TQWhatsThis::add(radio, whatsThis.arg(cmd));
grid->addWidget(radio, (row = index/3 + 1), index % 3, Qt::AlignAuto);
++index;
@@ -412,7 +412,7 @@ MiscPrefTab::MiscPrefTab(TQVBox* frame)
box = new TQHBox(group);
grid->addMultiCellWidget(box, row + 1, row + 1, 0, 2, Qt::AlignAuto);
TQRadioButton* radio = new TQRadioButton(i18n("Other:"), box);
- radio->setFixedSize(radio->sizeHint());
+ radio->setFixedSize(radio->tqsizeHint());
connect(radio, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotOtherTerminalToggled(bool)));
mXtermType->insert(radio, mXtermCount);
if (mXtermFirst < 0)
@@ -604,13 +604,13 @@ EmailPrefTab::EmailPrefTab(TQVBox* frame)
mEmailClient = new ButtonGroup(box);
mEmailClient->hide();
RadioButton* radio = new RadioButton(i18n("&KMail"), box, "kmail");
- radio->setMinimumSize(radio->sizeHint());
+ radio->setMinimumSize(radio->tqsizeHint());
mEmailClient->insert(radio, Preferences::KMAIL);
radio = new RadioButton(i18n("&Sendmail"), box, "sendmail");
- radio->setMinimumSize(radio->sizeHint());
+ radio->setMinimumSize(radio->tqsizeHint());
mEmailClient->insert(radio, Preferences::SENDMAIL);
connect(mEmailClient, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(slotEmailClientChanged(int)));
- box->setFixedHeight(box->sizeHint().height());
+ box->setFixedHeight(box->tqsizeHint().height());
TQWhatsThis::add(box,
i18n("Choose how to send email when an email alarm is triggered.\n"
"KMail: The email is sent automatically via KMail. KMail is started first if necessary.\n"
@@ -619,11 +619,11 @@ EmailPrefTab::EmailPrefTab(TQVBox* frame)
box = new TQHBox(mPage); // this is to allow left adjustment
mEmailCopyToKMail = new TQCheckBox(i18n("Co&py sent emails into KMail's %1 folder").arg(KAMail::i18n_sent_mail()), box);
- mEmailCopyToKMail->setFixedSize(mEmailCopyToKMail->sizeHint());
+ mEmailCopyToKMail->setFixedSize(mEmailCopyToKMail->tqsizeHint());
TQWhatsThis::add(mEmailCopyToKMail,
i18n("After sending an email, store a copy in KMail's %1 folder").arg(KAMail::i18n_sent_mail()));
box->setStretchFactor(new TQWidget(box), 1); // left adjust the controls
- box->setFixedHeight(box->sizeHint().height());
+ box->setFixedHeight(box->tqsizeHint().height());
// Your Email Address group box
TQGroupBox* group = new TQGroupBox(i18n("Your Email Address"), mPage);
@@ -633,7 +633,7 @@ EmailPrefTab::EmailPrefTab(TQVBox* frame)
// 'From' email address controls ...
label = new Label(EditAlarmDlg::i18n_f_EmailFrom(), group);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
grid->addWidget(label, 1, 0);
mFromAddressGroup = new ButtonGroup(group);
mFromAddressGroup->hide();
@@ -642,7 +642,7 @@ EmailPrefTab::EmailPrefTab(TQVBox* frame)
// Line edit to enter a 'From' email address
radio = new RadioButton(group);
mFromAddressGroup->insert(radio, Preferences::MAIL_FROM_ADDR);
- radio->setFixedSize(radio->sizeHint());
+ radio->setFixedSize(radio->tqsizeHint());
label->setBuddy(radio);
grid->addWidget(radio, 1, 1);
mEmailAddress = new TQLineEdit(group);
@@ -655,7 +655,7 @@ EmailPrefTab::EmailPrefTab(TQVBox* frame)
// 'From' email address to be taken from Control Centre
radio = new RadioButton(i18n("&Use address from Control Center"), group);
- radio->setFixedSize(radio->sizeHint());
+ radio->setFixedSize(radio->tqsizeHint());
mFromAddressGroup->insert(radio, Preferences::MAIL_FROM_CONTROL_CENTRE);
TQWhatsThis::add(radio,
i18n("Check to use the email address set in the KDE Control Center, to identify you as the sender when sending email alarms."));
@@ -663,7 +663,7 @@ EmailPrefTab::EmailPrefTab(TQVBox* frame)
// 'From' email address to be picked from KMail's identities when the email alarm is configured
radio = new RadioButton(i18n("Use KMail &identities"), group);
- radio->setFixedSize(radio->sizeHint());
+ radio->setFixedSize(radio->tqsizeHint());
mFromAddressGroup->insert(radio, Preferences::MAIL_FROM_KMAIL);
TQWhatsThis::add(radio,
i18n("Check to use KMail's email identities to identify you as the sender when sending email alarms. "
@@ -674,7 +674,7 @@ EmailPrefTab::EmailPrefTab(TQVBox* frame)
// 'Bcc' email address controls ...
grid->addRowSpacing(4, KDialog::spacingHint());
label = new Label(i18n("'Bcc' email address", "&Bcc:"), group);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
grid->addWidget(label, 5, 0);
mBccAddressGroup = new ButtonGroup(group);
mBccAddressGroup->hide();
@@ -682,7 +682,7 @@ EmailPrefTab::EmailPrefTab(TQVBox* frame)
// Line edit to enter a 'Bcc' email address
radio = new RadioButton(group);
- radio->setFixedSize(radio->sizeHint());
+ radio->setFixedSize(radio->tqsizeHint());
mBccAddressGroup->insert(radio, Preferences::MAIL_FROM_ADDR);
label->setBuddy(radio);
grid->addWidget(radio, 5, 1);
@@ -696,22 +696,22 @@ EmailPrefTab::EmailPrefTab(TQVBox* frame)
// 'Bcc' email address to be taken from Control Centre
radio = new RadioButton(i18n("Us&e address from Control Center"), group);
- radio->setFixedSize(radio->sizeHint());
+ radio->setFixedSize(radio->tqsizeHint());
mBccAddressGroup->insert(radio, Preferences::MAIL_FROM_CONTROL_CENTRE);
TQWhatsThis::add(radio,
i18n("Check to use the email address set in the KDE Control Center, for blind copying email alarms to yourself."));
grid->addMultiCellWidget(radio, 6, 6, 1, 2, Qt::AlignAuto);
- group->setFixedHeight(group->sizeHint().height());
+ group->setFixedHeight(group->tqsizeHint().height());
box = new TQHBox(mPage); // this is to allow left adjustment
mEmailQueuedNotify = new TQCheckBox(i18n("&Notify when remote emails are queued"), box);
- mEmailQueuedNotify->setFixedSize(mEmailQueuedNotify->sizeHint());
+ mEmailQueuedNotify->setFixedSize(mEmailQueuedNotify->tqsizeHint());
TQWhatsThis::add(mEmailQueuedNotify,
i18n("Display a notification message whenever an email alarm has queued an email for sending to a remote system. "
"This could be useful if, for example, you have a dial-up connection, so that you can then ensure that the email is actually transmitted."));
box->setStretchFactor(new TQWidget(box), 1); // left adjust the controls
- box->setFixedHeight(box->sizeHint().height());
+ box->setFixedHeight(box->tqsizeHint().height());
mPage->setStretchFactor(new TQWidget(mPage), 1); // top adjust the widgets
}
@@ -825,12 +825,12 @@ FontColourPrefTab::FontColourPrefTab(TQVBox* frame)
mFontChooser = new FontColourChooser(mPage, 0, false, TQStringList(), i18n("Message Font && Color"), true, false);
mPage->setStretchFactor(mFontChooser, 1);
- TQFrame* layoutBox = new TQFrame(mPage);
- TQHBoxLayout* hlayout = new TQHBoxLayout(layoutBox);
- TQVBoxLayout* colourLayout = new TQVBoxLayout(hlayout, KDialog::spacingHint());
- hlayout->addStretch();
+ TQFrame* tqlayoutBox = new TQFrame(mPage);
+ TQHBoxLayout* htqlayout = new TQHBoxLayout(tqlayoutBox);
+ TQVBoxLayout* colourLayout = new TQVBoxLayout(htqlayout, KDialog::spacingHint());
+ htqlayout->addStretch();
- TQHBox* box = new TQHBox(layoutBox); // to group widgets for TQWhatsThis text
+ TQHBox* box = new TQHBox(tqlayoutBox); // to group widgets for TQWhatsThis text
box->setSpacing(KDialog::spacingHint()/2);
colourLayout->addWidget(box);
TQLabel* label1 = new TQLabel(i18n("Di&sabled alarm color:"), box);
@@ -840,7 +840,7 @@ FontColourPrefTab::FontColourPrefTab(TQVBox* frame)
TQWhatsThis::add(box,
i18n("Choose the text color in the alarm list for disabled alarms."));
- box = new TQHBox(layoutBox); // to group widgets for TQWhatsThis text
+ box = new TQHBox(tqlayoutBox); // to group widgets for TQWhatsThis text
box->setSpacing(KDialog::spacingHint()/2);
colourLayout->addWidget(box);
TQLabel* label2 = new TQLabel(i18n("E&xpired alarm color:"), box);
@@ -887,9 +887,9 @@ void FontColourPrefTab::setDefaults()
EditPrefTab::EditPrefTab(TQVBox* frame)
: PrefsTabBase(frame)
{
- // Get alignment to use in TQLabel::setAlignment(alignment | Qt::WordBreak)
+ // Get tqalignment to use in TQLabel::tqsetAlignment(tqalignment | Qt::WordBreak)
// (AlignAuto doesn't work correctly there)
- int alignment = TQApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
+ int tqalignment = TQApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
int groupTopMargin = fontMetrics().lineSpacing()/2;
TQString defsetting = i18n("The default setting for \"%1\" in the alarm edit dialog.");
@@ -897,118 +897,118 @@ EditPrefTab::EditPrefTab(TQVBox* frame)
// DISPLAY ALARMS
TQGroupBox* group = new TQGroupBox(i18n("Display Alarms"), mPage);
- TQBoxLayout* layout = new TQVBoxLayout(group, KDialog::marginHint(), KDialog::spacingHint());
- layout->addSpacing(groupTopMargin);
+ TQBoxLayout* tqlayout = new TQVBoxLayout(group, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->addSpacing(groupTopMargin);
mConfirmAck = new TQCheckBox(EditAlarmDlg::i18n_k_ConfirmAck(), group, "defConfAck");
- mConfirmAck->setMinimumSize(mConfirmAck->sizeHint());
+ mConfirmAck->setMinimumSize(mConfirmAck->tqsizeHint());
TQWhatsThis::add(mConfirmAck, defsetting.arg(EditAlarmDlg::i18n_ConfirmAck()));
- layout->addWidget(mConfirmAck, 0, Qt::AlignAuto);
+ tqlayout->addWidget(mConfirmAck, 0, Qt::AlignAuto);
mAutoClose = new TQCheckBox(LateCancelSelector::i18n_i_AutoCloseWinLC(), group, "defAutoClose");
- mAutoClose->setMinimumSize(mAutoClose->sizeHint());
+ mAutoClose->setMinimumSize(mAutoClose->tqsizeHint());
TQWhatsThis::add(mAutoClose, defsetting.arg(LateCancelSelector::i18n_AutoCloseWin()));
- layout->addWidget(mAutoClose, 0, Qt::AlignAuto);
+ tqlayout->addWidget(mAutoClose, 0, Qt::AlignAuto);
TQHBox* box = new TQHBox(group);
box->setSpacing(KDialog::spacingHint());
- layout->addWidget(box);
+ tqlayout->addWidget(box);
TQLabel* label = new TQLabel(i18n("Reminder &units:"), box);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
mReminderUnits = new TQComboBox(box, "defWarnUnits");
mReminderUnits->insertItem(TimePeriod::i18n_Minutes(), TimePeriod::MINUTES);
mReminderUnits->insertItem(TimePeriod::i18n_Hours_Mins(), TimePeriod::HOURS_MINUTES);
mReminderUnits->insertItem(TimePeriod::i18n_Days(), TimePeriod::DAYS);
mReminderUnits->insertItem(TimePeriod::i18n_Weeks(), TimePeriod::WEEKS);
- mReminderUnits->setFixedSize(mReminderUnits->sizeHint());
+ mReminderUnits->setFixedSize(mReminderUnits->tqsizeHint());
label->setBuddy(mReminderUnits);
TQWhatsThis::add(box,
i18n("The default units for the reminder in the alarm edit dialog."));
box->setStretchFactor(new TQWidget(box), 1); // left adjust the control
mSpecialActionsButton = new SpecialActionsButton(EditAlarmDlg::i18n_SpecialActions(), box);
- mSpecialActionsButton->setFixedSize(mSpecialActionsButton->sizeHint());
+ mSpecialActionsButton->setFixedSize(mSpecialActionsButton->tqsizeHint());
// SOUND
TQButtonGroup* bgroup = new TQButtonGroup(SoundPicker::i18n_Sound(), mPage, "soundGroup");
- layout = new TQVBoxLayout(bgroup, KDialog::marginHint(), KDialog::spacingHint());
- layout->addSpacing(groupTopMargin);
+ tqlayout = new TQVBoxLayout(bgroup, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->addSpacing(groupTopMargin);
- TQBoxLayout* hlayout = new TQHBoxLayout(layout, KDialog::spacingHint());
+ TQBoxLayout* htqlayout = new TQHBoxLayout(tqlayout, KDialog::spacingHint());
mSound = new TQComboBox(false, bgroup, "defSound");
mSound->insertItem(SoundPicker::i18n_None()); // index 0
mSound->insertItem(SoundPicker::i18n_Beep()); // index 1
mSound->insertItem(SoundPicker::i18n_File()); // index 2
if (theApp()->speechEnabled())
mSound->insertItem(SoundPicker::i18n_Speak()); // index 3
- mSound->setMinimumSize(mSound->sizeHint());
+ mSound->setMinimumSize(mSound->tqsizeHint());
TQWhatsThis::add(mSound, defsetting.arg(SoundPicker::i18n_Sound()));
- hlayout->addWidget(mSound);
- hlayout->addStretch(1);
+ htqlayout->addWidget(mSound);
+ htqlayout->addStretch(1);
#ifndef WITHOUT_ARTS
mSoundRepeat = new TQCheckBox(i18n("Repea&t sound file"), bgroup, "defRepeatSound");
- mSoundRepeat->setMinimumSize(mSoundRepeat->sizeHint());
+ mSoundRepeat->setMinimumSize(mSoundRepeat->tqsizeHint());
TQWhatsThis::add(mSoundRepeat, i18n("sound file \"Repeat\" checkbox", "The default setting for sound file \"%1\" in the alarm edit dialog.").arg(SoundDlg::i18n_Repeat()));
- hlayout->addWidget(mSoundRepeat);
+ htqlayout->addWidget(mSoundRepeat);
#endif
box = new TQHBox(bgroup); // this is to control the TQWhatsThis text display area
box->setSpacing(KDialog::spacingHint());
mSoundFileLabel = new TQLabel(i18n("Sound &file:"), box);
- mSoundFileLabel->setFixedSize(mSoundFileLabel->sizeHint());
+ mSoundFileLabel->setFixedSize(mSoundFileLabel->tqsizeHint());
mSoundFile = new TQLineEdit(box);
mSoundFileLabel->setBuddy(mSoundFile);
mSoundFileBrowse = new TQPushButton(box);
mSoundFileBrowse->setPixmap(SmallIcon("fileopen"));
- mSoundFileBrowse->setFixedSize(mSoundFileBrowse->sizeHint());
+ mSoundFileBrowse->setFixedSize(mSoundFileBrowse->tqsizeHint());
connect(mSoundFileBrowse, TQT_SIGNAL(clicked()), TQT_SLOT(slotBrowseSoundFile()));
TQToolTip::add(mSoundFileBrowse, i18n("Choose a sound file"));
TQWhatsThis::add(box,
i18n("Enter the default sound file to use in the alarm edit dialog."));
- box->setFixedHeight(box->sizeHint().height());
- layout->addWidget(box);
- bgroup->setFixedHeight(bgroup->sizeHint().height());
+ box->setFixedHeight(box->tqsizeHint().height());
+ tqlayout->addWidget(box);
+ bgroup->setFixedHeight(bgroup->tqsizeHint().height());
// COMMAND ALARMS
group = new TQGroupBox(i18n("Command Alarms"), mPage);
- layout = new TQVBoxLayout(group, KDialog::marginHint(), KDialog::spacingHint());
- layout->addSpacing(groupTopMargin);
- layout = new TQHBoxLayout(layout, KDialog::spacingHint());
+ tqlayout = new TQVBoxLayout(group, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->addSpacing(groupTopMargin);
+ tqlayout = new TQHBoxLayout(tqlayout, KDialog::spacingHint());
mCmdScript = new TQCheckBox(EditAlarmDlg::i18n_p_EnterScript(), group, "defCmdScript");
- mCmdScript->setMinimumSize(mCmdScript->sizeHint());
+ mCmdScript->setMinimumSize(mCmdScript->tqsizeHint());
TQWhatsThis::add(mCmdScript, defsetting.arg(EditAlarmDlg::i18n_EnterScript()));
- layout->addWidget(mCmdScript);
- layout->addStretch();
+ tqlayout->addWidget(mCmdScript);
+ tqlayout->addStretch();
mCmdXterm = new TQCheckBox(EditAlarmDlg::i18n_w_ExecInTermWindow(), group, "defCmdXterm");
- mCmdXterm->setMinimumSize(mCmdXterm->sizeHint());
+ mCmdXterm->setMinimumSize(mCmdXterm->tqsizeHint());
TQWhatsThis::add(mCmdXterm, defsetting.arg(EditAlarmDlg::i18n_ExecInTermWindow()));
- layout->addWidget(mCmdXterm);
+ tqlayout->addWidget(mCmdXterm);
// EMAIL ALARMS
group = new TQGroupBox(i18n("Email Alarms"), mPage);
- layout = new TQVBoxLayout(group, KDialog::marginHint(), KDialog::spacingHint());
- layout->addSpacing(groupTopMargin);
+ tqlayout = new TQVBoxLayout(group, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->addSpacing(groupTopMargin);
// BCC email to sender
mEmailBcc = new TQCheckBox(EditAlarmDlg::i18n_e_CopyEmailToSelf(), group, "defEmailBcc");
- mEmailBcc->setMinimumSize(mEmailBcc->sizeHint());
+ mEmailBcc->setMinimumSize(mEmailBcc->tqsizeHint());
TQWhatsThis::add(mEmailBcc, defsetting.arg(EditAlarmDlg::i18n_CopyEmailToSelf()));
- layout->addWidget(mEmailBcc, 0, Qt::AlignAuto);
+ tqlayout->addWidget(mEmailBcc, 0, Qt::AlignAuto);
// MISCELLANEOUS
// Show in KOrganizer
mCopyToKOrganizer = new TQCheckBox(EditAlarmDlg::i18n_g_ShowInKOrganizer(), mPage, "defShowKorg");
- mCopyToKOrganizer->setMinimumSize(mCopyToKOrganizer->sizeHint());
+ mCopyToKOrganizer->setMinimumSize(mCopyToKOrganizer->tqsizeHint());
TQWhatsThis::add(mCopyToKOrganizer, defsetting.arg(EditAlarmDlg::i18n_ShowInKOrganizer()));
// Late cancellation
box = new TQHBox(mPage);
box->setSpacing(KDialog::spacingHint());
mLateCancel = new TQCheckBox(LateCancelSelector::i18n_n_CancelIfLate(), box, "defCancelLate");
- mLateCancel->setMinimumSize(mLateCancel->sizeHint());
+ mLateCancel->setMinimumSize(mLateCancel->tqsizeHint());
TQWhatsThis::add(mLateCancel, defsetting.arg(LateCancelSelector::i18n_CancelIfLate()));
box->setStretchFactor(new TQWidget(box), 1); // left adjust the control
@@ -1016,7 +1016,7 @@ EditPrefTab::EditPrefTab(TQVBox* frame)
TQHBox* itemBox = new TQHBox(box); // this is to control the TQWhatsThis text display area
itemBox->setSpacing(KDialog::spacingHint());
label = new TQLabel(i18n("&Recurrence:"), itemBox);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
mRecurPeriod = new TQComboBox(itemBox, "defRecur");
mRecurPeriod->insertItem(RecurrenceEdit::i18n_NoRecur());
mRecurPeriod->insertItem(RecurrenceEdit::i18n_AtLogin());
@@ -1025,17 +1025,17 @@ EditPrefTab::EditPrefTab(TQVBox* frame)
mRecurPeriod->insertItem(RecurrenceEdit::i18n_Weekly());
mRecurPeriod->insertItem(RecurrenceEdit::i18n_Monthly());
mRecurPeriod->insertItem(RecurrenceEdit::i18n_Yearly());
- mRecurPeriod->setFixedSize(mRecurPeriod->sizeHint());
+ mRecurPeriod->setFixedSize(mRecurPeriod->tqsizeHint());
label->setBuddy(mRecurPeriod);
TQWhatsThis::add(itemBox,
i18n("The default setting for the recurrence rule in the alarm edit dialog."));
- box->setFixedHeight(itemBox->sizeHint().height());
+ box->setFixedHeight(itemBox->tqsizeHint().height());
// How to handle February 29th in yearly recurrences
TQVBox* vbox = new TQVBox(mPage); // this is to control the TQWhatsThis text display area
vbox->setSpacing(KDialog::spacingHint());
label = new TQLabel(i18n("In non-leap years, repeat yearly February 29th alarms on:"), vbox);
- label->setAlignment(alignment | Qt::WordBreak);
+ label->tqsetAlignment(tqalignment | Qt::WordBreak);
itemBox = new TQHBox(vbox);
itemBox->setSpacing(2*KDialog::spacingHint());
mFeb29 = new TQButtonGroup(itemBox);
@@ -1043,15 +1043,15 @@ EditPrefTab::EditPrefTab(TQVBox* frame)
TQWidget* widget = new TQWidget(itemBox);
widget->setFixedWidth(3*KDialog::spacingHint());
TQRadioButton* radio = new TQRadioButton(i18n("February 2&8th"), itemBox);
- radio->setMinimumSize(radio->sizeHint());
+ radio->setMinimumSize(radio->tqsizeHint());
mFeb29->insert(radio, KARecurrence::FEB29_FEB28);
radio = new TQRadioButton(i18n("March &1st"), itemBox);
- radio->setMinimumSize(radio->sizeHint());
+ radio->setMinimumSize(radio->tqsizeHint());
mFeb29->insert(radio, KARecurrence::FEB29_MAR1);
radio = new TQRadioButton(i18n("Do &not repeat"), itemBox);
- radio->setMinimumSize(radio->sizeHint());
+ radio->setMinimumSize(radio->tqsizeHint());
mFeb29->insert(radio, KARecurrence::FEB29_FEB29);
- itemBox->setFixedHeight(itemBox->sizeHint().height());
+ itemBox->setFixedHeight(itemBox->tqsizeHint().height());
TQWhatsThis::add(vbox,
i18n("For yearly recurrences, choose what date, if any, alarms due on February 29th should occur in non-leap years.\n"
"Note that the next scheduled occurrence of existing alarms is not re-evaluated when you change this setting."));
@@ -1200,7 +1200,7 @@ ViewPrefTab::ViewPrefTab(TQVBox* frame)
grid->addRowSpacing(0, fontMetrics().lineSpacing()/2);
mTooltipShowAlarms = new TQCheckBox(i18n("Show next &24 hours' alarms"), group, "tooltipShow");
- mTooltipShowAlarms->setMinimumSize(mTooltipShowAlarms->sizeHint());
+ mTooltipShowAlarms->setMinimumSize(mTooltipShowAlarms->tqsizeHint());
connect(mTooltipShowAlarms, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotTooltipAlarmsToggled(bool)));
TQWhatsThis::add(mTooltipShowAlarms,
i18n("Specify whether to include in the system tray tooltip, a summary of alarms due in the next 24 hours"));
@@ -1209,25 +1209,25 @@ ViewPrefTab::ViewPrefTab(TQVBox* frame)
TQHBox* box = new TQHBox(group);
box->setSpacing(KDialog::spacingHint());
mTooltipMaxAlarms = new TQCheckBox(i18n("Ma&ximum number of alarms to show:"), box, "tooltipMax");
- mTooltipMaxAlarms->setMinimumSize(mTooltipMaxAlarms->sizeHint());
+ mTooltipMaxAlarms->setMinimumSize(mTooltipMaxAlarms->tqsizeHint());
connect(mTooltipMaxAlarms, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotTooltipMaxToggled(bool)));
mTooltipMaxAlarmCount = new SpinBox(1, 99, 1, box);
mTooltipMaxAlarmCount->setLineShiftStep(5);
- mTooltipMaxAlarmCount->setMinimumSize(mTooltipMaxAlarmCount->sizeHint());
+ mTooltipMaxAlarmCount->setMinimumSize(mTooltipMaxAlarmCount->tqsizeHint());
TQWhatsThis::add(box,
i18n("Uncheck to display all of the next 24 hours' alarms in the system tray tooltip. "
"Check to enter an upper limit on the number to be displayed."));
grid->addMultiCellWidget(box, 2, 2, 1, 2, Qt::AlignAuto);
mTooltipShowTime = new TQCheckBox(MainWindow::i18n_m_ShowAlarmTime(), group, "tooltipTime");
- mTooltipShowTime->setMinimumSize(mTooltipShowTime->sizeHint());
+ mTooltipShowTime->setMinimumSize(mTooltipShowTime->tqsizeHint());
connect(mTooltipShowTime, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotTooltipTimeToggled(bool)));
TQWhatsThis::add(mTooltipShowTime,
i18n("Specify whether to show in the system tray tooltip, the time at which each alarm is due"));
grid->addMultiCellWidget(mTooltipShowTime, 3, 3, 1, 2, Qt::AlignAuto);
mTooltipShowTimeTo = new TQCheckBox(MainWindow::i18n_l_ShowTimeToAlarm(), group, "tooltipTimeTo");
- mTooltipShowTimeTo->setMinimumSize(mTooltipShowTimeTo->sizeHint());
+ mTooltipShowTimeTo->setMinimumSize(mTooltipShowTimeTo->tqsizeHint());
connect(mTooltipShowTimeTo, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotTooltipTimeToToggled(bool)));
TQWhatsThis::add(mTooltipShowTimeTo,
i18n("Specify whether to show in the system tray tooltip, how long until each alarm is due"));
@@ -1236,17 +1236,17 @@ ViewPrefTab::ViewPrefTab(TQVBox* frame)
box = new TQHBox(group); // this is to control the TQWhatsThis text display area
box->setSpacing(KDialog::spacingHint());
mTooltipTimeToPrefixLabel = new TQLabel(i18n("&Prefix:"), box);
- mTooltipTimeToPrefixLabel->setFixedSize(mTooltipTimeToPrefixLabel->sizeHint());
+ mTooltipTimeToPrefixLabel->setFixedSize(mTooltipTimeToPrefixLabel->tqsizeHint());
mTooltipTimeToPrefix = new TQLineEdit(box);
mTooltipTimeToPrefixLabel->setBuddy(mTooltipTimeToPrefix);
TQWhatsThis::add(box,
i18n("Enter the text to be displayed in front of the time until the alarm, in the system tray tooltip"));
- box->setFixedHeight(box->sizeHint().height());
+ box->setFixedHeight(box->tqsizeHint().height());
grid->addWidget(box, 5, 2, Qt::AlignAuto);
- group->setMaximumHeight(group->sizeHint().height());
+ group->setMaximumHeight(group->tqsizeHint().height());
mModalMessages = new TQCheckBox(i18n("Message &windows have a title bar and take keyboard focus"), mPage, "modalMsg");
- mModalMessages->setMinimumSize(mModalMessages->sizeHint());
+ mModalMessages->setMinimumSize(mModalMessages->tqsizeHint());
TQWhatsThis::add(mModalMessages,
i18n("Specify the characteristics of alarm message windows:\n"
"- If checked, the window is a normal window with a title bar, which grabs keyboard input when it is displayed.\n"
@@ -1259,13 +1259,13 @@ ViewPrefTab::ViewPrefTab(TQVBox* frame)
TQLabel* label = new TQLabel(i18n("System tray icon &update interval:"), box);
mDaemonTrayCheckInterval = new SpinBox(1, 9999, 1, box, "daemonCheck");
mDaemonTrayCheckInterval->setLineShiftStep(10);
- mDaemonTrayCheckInterval->setMinimumSize(mDaemonTrayCheckInterval->sizeHint());
+ mDaemonTrayCheckInterval->setMinimumSize(mDaemonTrayCheckInterval->tqsizeHint());
label->setBuddy(mDaemonTrayCheckInterval);
label = new TQLabel(i18n("seconds"), box);
TQWhatsThis::add(box,
i18n("How often to update the system tray icon to indicate whether or not the Alarm Daemon is monitoring alarms."));
itemBox->setStretchFactor(new TQWidget(itemBox), 1); // left adjust the controls
- itemBox->setFixedHeight(box->sizeHint().height());
+ itemBox->setFixedHeight(box->tqsizeHint().height());
mPage->setStretchFactor(new TQWidget(mPage), 1); // top adjust the widgets
}
diff --git a/kalarm/preferences.cpp b/kalarm/preferences.cpp
index 3c2b5f185..93e6a60b0 100644
--- a/kalarm/preferences.cpp
+++ b/kalarm/preferences.cpp
@@ -58,7 +58,7 @@ const int Preferences::default_messageButtonDelay =
const int Preferences::default_tooltipAlarmCount = 5;
const bool Preferences::default_showTooltipAlarmTime = true;
const bool Preferences::default_showTooltipTimeToAlarm = true;
-const TQString Preferences::default_tooltipTimeToPrefix = TQString::fromLatin1("+");
+const TQString Preferences::default_tooltipTimeToPrefix = TQString::tqfromLatin1("+");
const int Preferences::default_daemonTrayCheckInterval = 10; // (seconds)
const bool Preferences::default_emailCopyToKMail = false;
const bool Preferences::default_emailQueuedNotify = false;
@@ -139,65 +139,65 @@ TQTime Preferences::mOldStartOfDay;
bool Preferences::mStartOfDayChanged;
-static const TQString defaultFeb29RecurType = TQString::fromLatin1("Mar1");
-static const TQString defaultEmailClient = TQString::fromLatin1("kmail");
+static const TQString defaultFeb29RecurType = TQString::tqfromLatin1("Mar1");
+static const TQString defaultEmailClient = TQString::tqfromLatin1("kmail");
// Config file entry names
-static const TQString GENERAL_SECTION = TQString::fromLatin1("General");
-static const TQString VERSION_NUM = TQString::fromLatin1("Version");
-static const TQString MESSAGE_COLOURS = TQString::fromLatin1("MessageColours");
-static const TQString MESSAGE_BG_COLOUR = TQString::fromLatin1("MessageBackgroundColour");
-static const TQString MESSAGE_FONT = TQString::fromLatin1("MessageFont");
-static const TQString RUN_IN_SYSTEM_TRAY = TQString::fromLatin1("RunInSystemTray");
-static const TQString DISABLE_IF_STOPPED = TQString::fromLatin1("DisableAlarmsIfStopped");
-static const TQString AUTOSTART_TRAY = TQString::fromLatin1("AutostartTray");
-static const TQString FEB29_RECUR_TYPE = TQString::fromLatin1("Feb29Recur");
-static const TQString MODAL_MESSAGES = TQString::fromLatin1("ModalMessages");
-static const TQString MESSAGE_BUTTON_DELAY = TQString::fromLatin1("MessageButtonDelay");
-static const TQString TOOLTIP_ALARM_COUNT = TQString::fromLatin1("TooltipAlarmCount");
-static const TQString TOOLTIP_ALARM_TIME = TQString::fromLatin1("ShowTooltipAlarmTime");
-static const TQString TOOLTIP_TIME_TO_ALARM = TQString::fromLatin1("ShowTooltipTimeToAlarm");
-static const TQString TOOLTIP_TIME_TO_PREFIX = TQString::fromLatin1("TooltipTimeToPrefix");
-static const TQString DAEMON_TRAY_INTERVAL = TQString::fromLatin1("DaemonTrayCheckInterval");
-static const TQString EMAIL_CLIENT = TQString::fromLatin1("EmailClient");
-static const TQString EMAIL_COPY_TO_KMAIL = TQString::fromLatin1("EmailCopyToKMail");
-static const TQString EMAIL_FROM = TQString::fromLatin1("EmailFrom");
-static const TQString EMAIL_BCC_ADDRESS = TQString::fromLatin1("EmailBccAddress");
-static const TQString CMD_XTERM_COMMAND = TQString::fromLatin1("CmdXTerm");
-static const TQString START_OF_DAY = TQString::fromLatin1("StartOfDay");
-static const TQString START_OF_DAY_CHECK = TQString::fromLatin1("Sod");
-static const TQString DISABLED_COLOUR = TQString::fromLatin1("DisabledColour");
-static const TQString EXPIRED_COLOUR = TQString::fromLatin1("ExpiredColour");
-static const TQString EXPIRED_KEEP_DAYS = TQString::fromLatin1("ExpiredKeepDays");
-static const TQString DEFAULTS_SECTION = TQString::fromLatin1("Defaults");
-static const TQString DEF_LATE_CANCEL = TQString::fromLatin1("DefLateCancel");
-static const TQString DEF_AUTO_CLOSE = TQString::fromLatin1("DefAutoClose");
-static const TQString DEF_CONFIRM_ACK = TQString::fromLatin1("DefConfirmAck");
-static const TQString DEF_COPY_TO_KORG = TQString::fromLatin1("DefCopyKOrg");
-static const TQString DEF_SOUND_TYPE = TQString::fromLatin1("DefSoundType");
-static const TQString DEF_SOUND_FILE = TQString::fromLatin1("DefSoundFile");
-static const TQString DEF_SOUND_VOLUME = TQString::fromLatin1("DefSoundVolume");
-static const TQString DEF_SOUND_REPEAT = TQString::fromLatin1("DefSoundRepeat");
-static const TQString DEF_CMD_SCRIPT = TQString::fromLatin1("DefCmdScript");
-static const TQString DEF_CMD_LOG_TYPE = TQString::fromLatin1("DefCmdLogType");
-static const TQString DEF_LOG_FILE = TQString::fromLatin1("DefLogFile");
-static const TQString DEF_EMAIL_BCC = TQString::fromLatin1("DefEmailBcc");
-static const TQString DEF_RECUR_PERIOD = TQString::fromLatin1("DefRecurPeriod");
-static const TQString DEF_REMIND_UNITS = TQString::fromLatin1("RemindUnits");
-static const TQString DEF_PRE_ACTION = TQString::fromLatin1("DefPreAction");
-static const TQString DEF_POST_ACTION = TQString::fromLatin1("DefPostAction");
+static const TQString GENERAL_SECTION = TQString::tqfromLatin1("General");
+static const TQString VERSION_NUM = TQString::tqfromLatin1("Version");
+static const TQString MESSAGE_COLOURS = TQString::tqfromLatin1("MessageColours");
+static const TQString MESSAGE_BG_COLOUR = TQString::tqfromLatin1("MessageBackgroundColour");
+static const TQString MESSAGE_FONT = TQString::tqfromLatin1("MessageFont");
+static const TQString RUN_IN_SYSTEM_TRAY = TQString::tqfromLatin1("RunInSystemTray");
+static const TQString DISABLE_IF_STOPPED = TQString::tqfromLatin1("DisableAlarmsIfStopped");
+static const TQString AUTOSTART_TRAY = TQString::tqfromLatin1("AutostartTray");
+static const TQString FEB29_RECUR_TYPE = TQString::tqfromLatin1("Feb29Recur");
+static const TQString MODAL_MESSAGES = TQString::tqfromLatin1("ModalMessages");
+static const TQString MESSAGE_BUTTON_DELAY = TQString::tqfromLatin1("MessageButtonDelay");
+static const TQString TOOLTIP_ALARM_COUNT = TQString::tqfromLatin1("TooltipAlarmCount");
+static const TQString TOOLTIP_ALARM_TIME = TQString::tqfromLatin1("ShowTooltipAlarmTime");
+static const TQString TOOLTIP_TIME_TO_ALARM = TQString::tqfromLatin1("ShowTooltipTimeToAlarm");
+static const TQString TOOLTIP_TIME_TO_PREFIX = TQString::tqfromLatin1("TooltipTimeToPrefix");
+static const TQString DAEMON_TRAY_INTERVAL = TQString::tqfromLatin1("DaemonTrayCheckInterval");
+static const TQString EMAIL_CLIENT = TQString::tqfromLatin1("EmailClient");
+static const TQString EMAIL_COPY_TO_KMAIL = TQString::tqfromLatin1("EmailCopyToKMail");
+static const TQString EMAIL_FROM = TQString::tqfromLatin1("EmailFrom");
+static const TQString EMAIL_BCC_ADDRESS = TQString::tqfromLatin1("EmailBccAddress");
+static const TQString CMD_XTERM_COMMAND = TQString::tqfromLatin1("CmdXTerm");
+static const TQString START_OF_DAY = TQString::tqfromLatin1("StartOfDay");
+static const TQString START_OF_DAY_CHECK = TQString::tqfromLatin1("Sod");
+static const TQString DISABLED_COLOUR = TQString::tqfromLatin1("DisabledColour");
+static const TQString EXPIRED_COLOUR = TQString::tqfromLatin1("ExpiredColour");
+static const TQString EXPIRED_KEEP_DAYS = TQString::tqfromLatin1("ExpiredKeepDays");
+static const TQString DEFAULTS_SECTION = TQString::tqfromLatin1("Defaults");
+static const TQString DEF_LATE_CANCEL = TQString::tqfromLatin1("DefLateCancel");
+static const TQString DEF_AUTO_CLOSE = TQString::tqfromLatin1("DefAutoClose");
+static const TQString DEF_CONFIRM_ACK = TQString::tqfromLatin1("DefConfirmAck");
+static const TQString DEF_COPY_TO_KORG = TQString::tqfromLatin1("DefCopyKOrg");
+static const TQString DEF_SOUND_TYPE = TQString::tqfromLatin1("DefSoundType");
+static const TQString DEF_SOUND_FILE = TQString::tqfromLatin1("DefSoundFile");
+static const TQString DEF_SOUND_VOLUME = TQString::tqfromLatin1("DefSoundVolume");
+static const TQString DEF_SOUND_REPEAT = TQString::tqfromLatin1("DefSoundRepeat");
+static const TQString DEF_CMD_SCRIPT = TQString::tqfromLatin1("DefCmdScript");
+static const TQString DEF_CMD_LOG_TYPE = TQString::tqfromLatin1("DefCmdLogType");
+static const TQString DEF_LOG_FILE = TQString::tqfromLatin1("DefLogFile");
+static const TQString DEF_EMAIL_BCC = TQString::tqfromLatin1("DefEmailBcc");
+static const TQString DEF_RECUR_PERIOD = TQString::tqfromLatin1("DefRecurPeriod");
+static const TQString DEF_REMIND_UNITS = TQString::tqfromLatin1("RemindUnits");
+static const TQString DEF_PRE_ACTION = TQString::tqfromLatin1("DefPreAction");
+static const TQString DEF_POST_ACTION = TQString::tqfromLatin1("DefPostAction");
// Config file entry name for temporary use
-static const TQString TEMP = TQString::fromLatin1("Temp");
+static const TQString TEMP = TQString::tqfromLatin1("Temp");
// Values for EmailFrom entry
-static const TQString FROM_CONTROL_CENTRE = TQString::fromLatin1("@ControlCenter");
-static const TQString FROM_KMAIL = TQString::fromLatin1("@KMail");
+static const TQString FROM_CONTROL_CENTRE = TQString::tqfromLatin1("@ControlCenter");
+static const TQString FROM_KMAIL = TQString::tqfromLatin1("@KMail");
// Config file entry names for notification messages
-const TQString Preferences::QUIT_WARN = TQString::fromLatin1("QuitWarn");
-const TQString Preferences::CONFIRM_ALARM_DELETION = TQString::fromLatin1("ConfirmAlarmDeletion");
-const TQString Preferences::EMAIL_QUEUED_NOTIFY = TQString::fromLatin1("EmailQueuedNotify");
+const TQString Preferences::QUIT_WARN = TQString::tqfromLatin1("QuitWarn");
+const TQString Preferences::CONFIRM_ALARM_DELETION = TQString::tqfromLatin1("ConfirmAlarmDeletion");
+const TQString Preferences::EMAIL_QUEUED_NOTIFY = TQString::tqfromLatin1("EmailQueuedNotify");
static const int SODxor = 0x82451630;
inline int Preferences::startOfDayCheck()
@@ -338,10 +338,10 @@ void Preferences::read()
TQCString feb29 = config->readEntry(FEB29_RECUR_TYPE, defaultFeb29RecurType).local8Bit();
mDefaultFeb29Type = (feb29 == "Mar1") ? KARecurrence::FEB29_MAR1 : (feb29 == "Feb28") ? KARecurrence::FEB29_FEB28 : KARecurrence::FEB29_FEB29;
TQString remindUnits = config->readEntry(DEF_REMIND_UNITS);
- mDefaultReminderUnits = (remindUnits == TQString::fromLatin1("Minutes")) ? TimePeriod::MINUTES
- : (remindUnits == TQString::fromLatin1("HoursMinutes")) ? TimePeriod::HOURS_MINUTES
- : (remindUnits == TQString::fromLatin1("Days")) ? TimePeriod::DAYS
- : (remindUnits == TQString::fromLatin1("Weeks")) ? TimePeriod::WEEKS : default_defaultReminderUnits;
+ mDefaultReminderUnits = (remindUnits == TQString::tqfromLatin1("Minutes")) ? TimePeriod::MINUTES
+ : (remindUnits == TQString::tqfromLatin1("HoursMinutes")) ? TimePeriod::HOURS_MINUTES
+ : (remindUnits == TQString::tqfromLatin1("Days")) ? TimePeriod::DAYS
+ : (remindUnits == TQString::tqfromLatin1("Weeks")) ? TimePeriod::WEEKS : default_defaultReminderUnits;
mDefaultPreAction = config->readEntry(DEF_PRE_ACTION, default_defaultPreAction);
mDefaultPostAction = config->readEntry(DEF_POST_ACTION, default_defaultPostAction);
mInstance->emitPreferencesChanged();
@@ -406,10 +406,10 @@ void Preferences::save(bool syncToDisc)
TQString value;
switch (mDefaultReminderUnits)
{
- case TimePeriod::MINUTES: value = TQString::fromLatin1("Minutes"); break;
- case TimePeriod::HOURS_MINUTES: value = TQString::fromLatin1("HoursMinutes"); break;
- case TimePeriod::DAYS: value = TQString::fromLatin1("Days"); break;
- case TimePeriod::WEEKS: value = TQString::fromLatin1("Weeks"); break;
+ case TimePeriod::MINUTES: value = TQString::tqfromLatin1("Minutes"); break;
+ case TimePeriod::HOURS_MINUTES: value = TQString::tqfromLatin1("HoursMinutes"); break;
+ case TimePeriod::DAYS: value = TQString::tqfromLatin1("Days"); break;
+ case TimePeriod::WEEKS: value = TQString::tqfromLatin1("Weeks"); break;
default: value = TQString::null; break;
}
config->writeEntry(DEF_REMIND_UNITS, value);
@@ -558,12 +558,12 @@ void Preferences::convertOldPrefs()
if (version <= KAlarm::Version(1,4,21))
{
// Convert KAlarm 1.4.21 preferences
- static const TQString OLD_REMIND_UNITS = TQString::fromLatin1("DefRemindUnits");
+ static const TQString OLD_REMIND_UNITS = TQString::tqfromLatin1("DefRemindUnits");
config->setGroup(DEFAULTS_SECTION);
int intUnit = config->readNumEntry(OLD_REMIND_UNITS, 0);
- TQString strUnit = (intUnit == 1) ? TQString::fromLatin1("Days")
- : (intUnit == 2) ? TQString::fromLatin1("Weeks")
- : TQString::fromLatin1("HoursMinutes");
+ TQString strUnit = (intUnit == 1) ? TQString::tqfromLatin1("Days")
+ : (intUnit == 2) ? TQString::tqfromLatin1("Weeks")
+ : TQString::tqfromLatin1("HoursMinutes");
config->deleteEntry(OLD_REMIND_UNITS);
config->writeEntry(DEF_REMIND_UNITS, strUnit);
}
@@ -571,11 +571,11 @@ void Preferences::convertOldPrefs()
if (version <= KAlarm::Version(1,4,20))
{
// Convert KAlarm 1.4.20 preferences
- static const TQString VIEW_SECTION = TQString::fromLatin1("View");
- static const TQString SHOW_ARCHIVED_ALARMS = TQString::fromLatin1("ShowArchivedAlarms");
- static const TQString SHOW_EXPIRED_ALARMS = TQString::fromLatin1("ShowExpiredAlarms");
- static const TQString SHOW_ALARM_TIME = TQString::fromLatin1("ShowAlarmTime");
- static const TQString SHOW_TIME_TO_ALARM = TQString::fromLatin1("ShowTimeToAlarm");
+ static const TQString VIEW_SECTION = TQString::tqfromLatin1("View");
+ static const TQString SHOW_ARCHIVED_ALARMS = TQString::tqfromLatin1("ShowArchivedAlarms");
+ static const TQString SHOW_EXPIRED_ALARMS = TQString::tqfromLatin1("ShowExpiredAlarms");
+ static const TQString SHOW_ALARM_TIME = TQString::tqfromLatin1("ShowAlarmTime");
+ static const TQString SHOW_TIME_TO_ALARM = TQString::tqfromLatin1("ShowTimeToAlarm");
config->setGroup(GENERAL_SECTION);
bool showExpired = config->readBoolEntry(SHOW_EXPIRED_ALARMS, false);
bool showTime = config->readBoolEntry(SHOW_ALARM_TIME, true);
@@ -592,7 +592,7 @@ void Preferences::convertOldPrefs()
if (version <= KAlarm::Version(1,4,5))
{
// Convert KAlarm 1.4.5 preferences
- static const TQString DEF_SOUND = TQString::fromLatin1("DefSound");
+ static const TQString DEF_SOUND = TQString::tqfromLatin1("DefSound");
config->setGroup(DEFAULTS_SECTION);
bool sound = config->readBoolEntry(DEF_SOUND, false);
if (!sound)
@@ -603,9 +603,9 @@ void Preferences::convertOldPrefs()
if (version < KAlarm::Version(1,3,0))
{
// Convert KAlarm pre-1.3 preferences
- static const TQString EMAIL_ADDRESS = TQString::fromLatin1("EmailAddress");
- static const TQString EMAIL_USE_CTRL_CENTRE = TQString::fromLatin1("EmailUseControlCenter");
- static const TQString EMAIL_BCC_USE_CTRL_CENTRE = TQString::fromLatin1("EmailBccUseControlCenter");
+ static const TQString EMAIL_ADDRESS = TQString::tqfromLatin1("EmailAddress");
+ static const TQString EMAIL_USE_CTRL_CENTRE = TQString::tqfromLatin1("EmailUseControlCenter");
+ static const TQString EMAIL_BCC_USE_CTRL_CENTRE = TQString::tqfromLatin1("EmailBccUseControlCenter");
TQMap<TQString, TQString> entries = config->entryMap(GENERAL_SECTION);
if (entries.find(EMAIL_FROM) == entries.end()
&& entries.find(EMAIL_USE_CTRL_CENTRE) != entries.end())
@@ -628,7 +628,7 @@ void Preferences::convertOldPrefs()
config->deleteEntry(EMAIL_USE_CTRL_CENTRE);
}
// Convert KAlarm 1.2 preferences
- static const TQString DEF_CMD_XTERM = TQString::fromLatin1("DefCmdXterm");
+ static const TQString DEF_CMD_XTERM = TQString::tqfromLatin1("DefCmdXterm");
config->setGroup(DEFAULTS_SECTION);
if (config->hasKey(DEF_CMD_XTERM))
{
diff --git a/kalarm/recurrenceedit.cpp b/kalarm/recurrenceedit.cpp
index bc70e4fe0..3924d428b 100644
--- a/kalarm/recurrenceedit.cpp
+++ b/kalarm/recurrenceedit.cpp
@@ -93,7 +93,7 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
mNoEmitTypeChanged(true),
mReadOnly(readOnly)
{
- TQBoxLayout* layout;
+ TQBoxLayout* tqlayout;
TQVBoxLayout* topLayout = new TQVBoxLayout(this, 0, KDialog::spacingHint());
/* Create the recurrence rule Group box which holds the recurrence period
@@ -106,11 +106,11 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
TQGroupBox* recurGroup = new TQGroupBox(1, Qt::Vertical, i18n("Recurrence Rule"), this, "recurGroup");
topLayout->addWidget(recurGroup);
TQFrame* ruleFrame = new TQFrame(recurGroup, "ruleFrame");
- layout = new TQVBoxLayout(ruleFrame, 0);
- layout->addSpacing(KDialog::spacingHint()/2);
+ tqlayout = new TQVBoxLayout(ruleFrame, 0);
+ tqlayout->addSpacing(KDialog::spacingHint()/2);
- layout = new TQHBoxLayout(layout, 0);
- TQBoxLayout* lay = new TQVBoxLayout(layout, 0);
+ tqlayout = new TQHBoxLayout(tqlayout, 0);
+ TQBoxLayout* lay = new TQVBoxLayout(tqlayout, 0);
mRuleButtonGroup = new ButtonGroup(1, Qt::Horizontal, ruleFrame);
mRuleButtonGroup->setInsideMargin(0);
mRuleButtonGroup->setFrameStyle(TQFrame::NoFrame);
@@ -119,43 +119,43 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
connect(mRuleButtonGroup, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(periodClicked(int)));
mNoneButton = new RadioButton(i18n_Norecur(), mRuleButtonGroup);
- mNoneButton->setFixedSize(mNoneButton->sizeHint());
+ mNoneButton->setFixedSize(mNoneButton->tqsizeHint());
mNoneButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mNoneButton, i18n("Do not repeat the alarm"));
mAtLoginButton = new RadioButton(i18n_l_Atlogin(), mRuleButtonGroup);
- mAtLoginButton->setFixedSize(mAtLoginButton->sizeHint());
+ mAtLoginButton->setFixedSize(mAtLoginButton->tqsizeHint());
mAtLoginButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mAtLoginButton,
i18n("Trigger the alarm at the specified date/time and at every login until then.\n"
"Note that it will also be triggered any time the alarm daemon is restarted."));
mSubDailyButton = new RadioButton(i18n_u_HourlyMinutely(), mRuleButtonGroup);
- mSubDailyButton->setFixedSize(mSubDailyButton->sizeHint());
+ mSubDailyButton->setFixedSize(mSubDailyButton->tqsizeHint());
mSubDailyButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mSubDailyButton,
i18n("Repeat the alarm at hourly/minutely intervals"));
mDailyButton = new RadioButton(i18n_d_Daily(), mRuleButtonGroup);
- mDailyButton->setFixedSize(mDailyButton->sizeHint());
+ mDailyButton->setFixedSize(mDailyButton->tqsizeHint());
mDailyButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mDailyButton,
i18n("Repeat the alarm at daily intervals"));
mWeeklyButton = new RadioButton(i18n_w_Weekly(), mRuleButtonGroup);
- mWeeklyButton->setFixedSize(mWeeklyButton->sizeHint());
+ mWeeklyButton->setFixedSize(mWeeklyButton->tqsizeHint());
mWeeklyButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mWeeklyButton,
i18n("Repeat the alarm at weekly intervals"));
mMonthlyButton = new RadioButton(i18n_m_Monthly(), mRuleButtonGroup);
- mMonthlyButton->setFixedSize(mMonthlyButton->sizeHint());
+ mMonthlyButton->setFixedSize(mMonthlyButton->tqsizeHint());
mMonthlyButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mMonthlyButton,
i18n("Repeat the alarm at monthly intervals"));
mYearlyButton = new RadioButton(i18n_y_Yearly(), mRuleButtonGroup);
- mYearlyButton->setFixedSize(mYearlyButton->sizeHint());
+ mYearlyButton->setFixedSize(mYearlyButton->tqsizeHint());
mYearlyButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mYearlyButton,
i18n("Repeat the alarm at annual intervals"));
@@ -170,7 +170,7 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
// Sub-repetition button
mSubRepetition = new RepetitionButton(i18n("Sub-Repetition"), true, ruleFrame);
- mSubRepetition->setFixedSize(mSubRepetition->sizeHint());
+ mSubRepetition->setFixedSize(mSubRepetition->tqsizeHint());
mSubRepetition->setReadOnly(mReadOnly);
connect(mSubRepetition, TQT_SIGNAL(needsInitialisation()), TQT_SIGNAL(repeatNeedsInitialisation()));
connect(mSubRepetition, TQT_SIGNAL(changed()), TQT_SIGNAL(frequencyChanged()));
@@ -178,16 +178,16 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
lay->addSpacing(KDialog::spacingHint());
lay->addWidget(mSubRepetition);
- lay = new TQVBoxLayout(layout);
+ lay = new TQVBoxLayout(tqlayout);
lay->addStretch();
- layout = new TQHBoxLayout(lay);
+ tqlayout = new TQHBoxLayout(lay);
- layout->addSpacing(KDialog::marginHint());
+ tqlayout->addSpacing(KDialog::marginHint());
TQFrame* divider = new TQFrame(ruleFrame);
divider->setFrameStyle(TQFrame::VLine | TQFrame::Sunken);
- layout->addWidget(divider);
- layout->addSpacing(KDialog::marginHint());
+ tqlayout->addWidget(divider);
+ tqlayout->addSpacing(KDialog::marginHint());
mNoRule = new NoRule(ruleFrame, "noFrame");
mSubDailyRule = new SubDailyRule(mReadOnly, ruleFrame, "subdayFrame");
@@ -203,39 +203,39 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
connect(mYearlyRule, TQT_SIGNAL(frequencyChanged()), this, TQT_SIGNAL(frequencyChanged()));
mRuleStack = new TQWidgetStack(ruleFrame);
- layout->addWidget(mRuleStack);
- layout->addStretch(1);
+ tqlayout->addWidget(mRuleStack);
+ tqlayout->addStretch(1);
mRuleStack->addWidget(mNoRule, 0);
mRuleStack->addWidget(mSubDailyRule, 1);
mRuleStack->addWidget(mDailyRule, 2);
mRuleStack->addWidget(mWeeklyRule, 3);
mRuleStack->addWidget(mMonthlyRule, 4);
mRuleStack->addWidget(mYearlyRule, 5);
- layout->addSpacing(KDialog::marginHint());
+ tqlayout->addSpacing(KDialog::marginHint());
- // Create the recurrence range group which contains the controls
+ // Create the recurrence range group which tqcontains the controls
// which specify how long the recurrence is to last.
mRangeButtonGroup = new ButtonGroup(i18n("Recurrence End"), this, "mRangeButtonGroup");
connect(mRangeButtonGroup, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(rangeTypeClicked()));
topLayout->addWidget(mRangeButtonGroup);
- TQVBoxLayout* vlayout = new TQVBoxLayout(mRangeButtonGroup, KDialog::marginHint(), KDialog::spacingHint());
- vlayout->addSpacing(fontMetrics().lineSpacing()/2);
+ TQVBoxLayout* vtqlayout = new TQVBoxLayout(mRangeButtonGroup, KDialog::marginHint(), KDialog::spacingHint());
+ vtqlayout->addSpacing(fontMetrics().lineSpacing()/2);
mNoEndDateButton = new RadioButton(i18n("No &end"), mRangeButtonGroup);
- mNoEndDateButton->setFixedSize(mNoEndDateButton->sizeHint());
+ mNoEndDateButton->setFixedSize(mNoEndDateButton->tqsizeHint());
mNoEndDateButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mNoEndDateButton, i18n("Repeat the alarm indefinitely"));
- vlayout->addWidget(mNoEndDateButton, 1, Qt::AlignAuto);
+ vtqlayout->addWidget(mNoEndDateButton, 1, Qt::AlignAuto);
TQSize size = mNoEndDateButton->size();
- layout = new TQHBoxLayout(vlayout, KDialog::spacingHint());
+ tqlayout = new TQHBoxLayout(vtqlayout, KDialog::spacingHint());
mRepeatCountButton = new RadioButton(i18n("End a&fter:"), mRangeButtonGroup);
mRepeatCountButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mRepeatCountButton,
i18n("Repeat the alarm for the number of times specified"));
mRepeatCountEntry = new SpinBox(1, 9999, 1, mRangeButtonGroup);
- mRepeatCountEntry->setFixedSize(mRepeatCountEntry->sizeHint());
+ mRepeatCountEntry->setFixedSize(mRepeatCountEntry->tqsizeHint());
mRepeatCountEntry->setLineShiftStep(10);
mRepeatCountEntry->setSelectOnStep(false);
mRepeatCountEntry->setReadOnly(mReadOnly);
@@ -244,44 +244,44 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
i18n("Enter the total number of times to trigger the alarm"));
mRepeatCountButton->setFocusWidget(mRepeatCountEntry);
mRepeatCountLabel = new TQLabel(i18n("occurrence(s)"), mRangeButtonGroup);
- mRepeatCountLabel->setFixedSize(mRepeatCountLabel->sizeHint());
- layout->addWidget(mRepeatCountButton);
- layout->addSpacing(KDialog::spacingHint());
- layout->addWidget(mRepeatCountEntry);
- layout->addWidget(mRepeatCountLabel);
- layout->addStretch();
- size = size.expandedTo(mRepeatCountButton->sizeHint());
-
- layout = new TQHBoxLayout(vlayout, KDialog::spacingHint());
+ mRepeatCountLabel->setFixedSize(mRepeatCountLabel->tqsizeHint());
+ tqlayout->addWidget(mRepeatCountButton);
+ tqlayout->addSpacing(KDialog::spacingHint());
+ tqlayout->addWidget(mRepeatCountEntry);
+ tqlayout->addWidget(mRepeatCountLabel);
+ tqlayout->addStretch();
+ size = size.expandedTo(mRepeatCountButton->tqsizeHint());
+
+ tqlayout = new TQHBoxLayout(vtqlayout, KDialog::spacingHint());
mEndDateButton = new RadioButton(i18n("End &by:"), mRangeButtonGroup);
mEndDateButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mEndDateButton,
i18n("Repeat the alarm until the date/time specified.\n\n"
"Note: This applies to the main recurrence only. It does not limit any sub-repetition which will occur regardless after the last main recurrence."));
mEndDateEdit = new DateEdit(mRangeButtonGroup);
- mEndDateEdit->setFixedSize(mEndDateEdit->sizeHint());
+ mEndDateEdit->setFixedSize(mEndDateEdit->tqsizeHint());
mEndDateEdit->setReadOnly(mReadOnly);
TQWhatsThis::add(mEndDateEdit,
i18n("Enter the last date to repeat the alarm"));
mEndDateButton->setFocusWidget(mEndDateEdit);
mEndTimeEdit = new TimeEdit(mRangeButtonGroup);
- mEndTimeEdit->setFixedSize(mEndTimeEdit->sizeHint());
+ mEndTimeEdit->setFixedSize(mEndTimeEdit->tqsizeHint());
mEndTimeEdit->setReadOnly(mReadOnly);
static const TQString lastTimeText = i18n("Enter the last time to repeat the alarm.");
TQWhatsThis::add(mEndTimeEdit, TQString("%1\n\n%2").arg(lastTimeText).arg(TimeSpinBox::shiftWhatsThis()));
mEndAnyTimeCheckBox = new CheckBox(i18n("Any time"), mRangeButtonGroup);
- mEndAnyTimeCheckBox->setFixedSize(mEndAnyTimeCheckBox->sizeHint());
+ mEndAnyTimeCheckBox->setFixedSize(mEndAnyTimeCheckBox->tqsizeHint());
mEndAnyTimeCheckBox->setReadOnly(mReadOnly);
connect(mEndAnyTimeCheckBox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotAnyTimeToggled(bool)));
TQWhatsThis::add(mEndAnyTimeCheckBox,
i18n("Stop repeating the alarm after your first login on or after the specified end date"));
- layout->addWidget(mEndDateButton);
- layout->addSpacing(KDialog::spacingHint());
- layout->addWidget(mEndDateEdit);
- layout->addWidget(mEndTimeEdit);
- layout->addWidget(mEndAnyTimeCheckBox);
- layout->addStretch();
- size = size.expandedTo(mEndDateButton->sizeHint());
+ tqlayout->addWidget(mEndDateButton);
+ tqlayout->addSpacing(KDialog::spacingHint());
+ tqlayout->addWidget(mEndDateEdit);
+ tqlayout->addWidget(mEndTimeEdit);
+ tqlayout->addWidget(mEndAnyTimeCheckBox);
+ tqlayout->addStretch();
+ size = size.expandedTo(mEndDateButton->tqsizeHint());
// Line up the widgets to the right of the radio buttons
mRepeatCountButton->setFixedSize(size);
@@ -293,17 +293,17 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
mExceptionGroup = new TQGroupBox(i18n("E&xceptions"), this, "mExceptionGroup");
topLayout->addWidget(mExceptionGroup);
topLayout->setStretchFactor(mExceptionGroup, 2);
- vlayout = new TQVBoxLayout(mExceptionGroup, KDialog::marginHint(), KDialog::spacingHint());
- vlayout->addSpacing(fontMetrics().lineSpacing()/2);
- layout = new TQHBoxLayout(vlayout, KDialog::spacingHint());
- vlayout = new TQVBoxLayout(layout);
+ vtqlayout = new TQVBoxLayout(mExceptionGroup, KDialog::marginHint(), KDialog::spacingHint());
+ vtqlayout->addSpacing(fontMetrics().lineSpacing()/2);
+ tqlayout = new TQHBoxLayout(vtqlayout, KDialog::spacingHint());
+ vtqlayout = new TQVBoxLayout(tqlayout);
mExceptionDateList = new TQListBox(mExceptionGroup);
- mExceptionDateList->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
+ mExceptionDateList->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
connect(mExceptionDateList, TQT_SIGNAL(selectionChanged()), TQT_SLOT(enableExceptionButtons()));
TQWhatsThis::add(mExceptionDateList,
i18n("The list of exceptions, i.e. dates/times excluded from the recurrence"));
- vlayout->addWidget(mExceptionDateList);
+ vtqlayout->addWidget(mExceptionDateList);
if (mReadOnly)
{
@@ -313,36 +313,36 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
}
else
{
- vlayout = new TQVBoxLayout(layout);
+ vtqlayout = new TQVBoxLayout(tqlayout);
mExceptionDateEdit = new DateEdit(mExceptionGroup);
- mExceptionDateEdit->setFixedSize(mExceptionDateEdit->sizeHint());
- mExceptionDateEdit->setDate(TQDate::currentDate());
+ mExceptionDateEdit->setFixedSize(mExceptionDateEdit->tqsizeHint());
+ mExceptionDateEdit->setDate(TQDate::tqcurrentDate());
TQWhatsThis::add(mExceptionDateEdit,
i18n("Enter a date to insert in the exceptions list. "
"Use in conjunction with the Add or Change button below."));
- vlayout->addWidget(mExceptionDateEdit);
+ vtqlayout->addWidget(mExceptionDateEdit);
- layout = new TQHBoxLayout(vlayout, KDialog::spacingHint());
+ tqlayout = new TQHBoxLayout(vtqlayout, KDialog::spacingHint());
TQPushButton* button = new TQPushButton(i18n("Add"), mExceptionGroup);
- button->setFixedSize(button->sizeHint());
+ button->setFixedSize(button->tqsizeHint());
connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(addException()));
TQWhatsThis::add(button,
i18n("Add the date entered above to the exceptions list"));
- layout->addWidget(button);
+ tqlayout->addWidget(button);
mChangeExceptionButton = new TQPushButton(i18n("Change"), mExceptionGroup);
- mChangeExceptionButton->setFixedSize(mChangeExceptionButton->sizeHint());
+ mChangeExceptionButton->setFixedSize(mChangeExceptionButton->tqsizeHint());
connect(mChangeExceptionButton, TQT_SIGNAL(clicked()), TQT_SLOT(changeException()));
TQWhatsThis::add(mChangeExceptionButton,
i18n("Replace the currently highlighted item in the exceptions list with the date entered above"));
- layout->addWidget(mChangeExceptionButton);
+ tqlayout->addWidget(mChangeExceptionButton);
mDeleteExceptionButton = new TQPushButton(i18n("Delete"), mExceptionGroup);
- mDeleteExceptionButton->setFixedSize(mDeleteExceptionButton->sizeHint());
+ mDeleteExceptionButton->setFixedSize(mDeleteExceptionButton->tqsizeHint());
connect(mDeleteExceptionButton, TQT_SIGNAL(clicked()), TQT_SLOT(deleteException()));
TQWhatsThis::add(mDeleteExceptionButton,
i18n("Remove the currently highlighted item from the exceptions list"));
- layout->addWidget(mDeleteExceptionButton);
+ tqlayout->addWidget(mDeleteExceptionButton);
}
mNoEmitTypeChanged = false;
@@ -1029,30 +1029,30 @@ Rule::Rule(const TQString& freqText, const TQString& freqWhatsThis, bool time, b
box->setSpacing(KDialog::spacingHint());
TQLabel* label = new TQLabel(i18n("Recur e&very"), box);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
if (time)
{
mIntSpinBox = 0;
mSpinBox = mTimeSpinBox = new TimeSpinBox(1, 5999, box);
- mTimeSpinBox->setFixedSize(mTimeSpinBox->sizeHint());
+ mTimeSpinBox->setFixedSize(mTimeSpinBox->tqsizeHint());
mTimeSpinBox->setReadOnly(readOnly);
}
else
{
mTimeSpinBox = 0;
mSpinBox = mIntSpinBox = new SpinBox(1, 999, 1, box);
- mIntSpinBox->setFixedSize(mIntSpinBox->sizeHint());
+ mIntSpinBox->setFixedSize(mIntSpinBox->tqsizeHint());
mIntSpinBox->setReadOnly(readOnly);
}
connect(mSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SIGNAL(frequencyChanged()));
label->setBuddy(mSpinBox);
label = new TQLabel(freqText, box);
- label->setFixedSize(label->sizeHint());
- box->setFixedSize(sizeHint());
+ label->setFixedSize(label->tqsizeHint());
+ box->setFixedSize(tqsizeHint());
TQWhatsThis::add(box, freqWhatsThis);
new TQWidget(freqBox); // left adjust the visible widgets
- freqBox->setFixedHeight(freqBox->sizeHint().height());
+ freqBox->setFixedHeight(freqBox->tqsizeHint().height());
freqBox->setFocusProxy(mSpinBox);
}
@@ -1112,11 +1112,11 @@ DayWeekRule::DayWeekRule(const TQString& freqText, const TQString& freqWhatsThis
: Rule(freqText, freqWhatsThis, false, readOnly, parent, name),
mSavedDays(7)
{
- TQGridLayout* grid = new TQGridLayout(layout(), 1, 4, KDialog::spacingHint());
+ TQGridLayout* grid = new TQGridLayout(tqlayout(), 1, 4, KDialog::spacingHint());
grid->setRowStretch(0, 1);
TQLabel* label = new TQLabel(i18n("On: Tuesday", "O&n:"), this);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
grid->addWidget(label, 0, 0, Qt::AlignRight | Qt::AlignTop);
grid->addColSpacing(1, KDialog::spacingHint());
@@ -1129,11 +1129,11 @@ DayWeekRule::DayWeekRule(const TQString& freqText, const TQString& freqWhatsThis
{
int day = KAlarm::localeDayInWeek_to_weekDay(i);
mDayBox[i] = new CheckBox(calendar->weekDayName(day), box);
- mDayBox[i]->setFixedSize(mDayBox[i]->sizeHint());
+ mDayBox[i]->setFixedSize(mDayBox[i]->tqsizeHint());
mDayBox[i]->setReadOnly(readOnly);
dgrid->addWidget(mDayBox[i], i%4, i/4, Qt::AlignAuto);
}
- box->setFixedSize(box->sizeHint());
+ box->setFixedSize(box->tqsizeHint());
TQWhatsThis::add(box, daysWhatsThis);
grid->addWidget(box, 0, 2, Qt::AlignAuto);
label->setBuddy(mDayBox[0]);
@@ -1258,10 +1258,10 @@ MonthYearRule::MonthYearRule(const TQString& freqText, const TQString& freqWhats
// Month day selector
TQHBox* box = new TQHBox(this);
box->setSpacing(KDialog::spacingHint());
- layout()->addWidget(box);
+ tqlayout()->addWidget(box);
mDayButton = new RadioButton(i18n("On day number in the month", "O&n day"), box);
- mDayButton->setFixedSize(mDayButton->sizeHint());
+ mDayButton->setFixedSize(mDayButton->tqsizeHint());
mDayButton->setReadOnly(readOnly);
mDayButtonId = mButtonGroup->insert(mDayButton);
TQWhatsThis::add(mDayButton, i18n("Repeat the alarm on the selected day of the month"));
@@ -1271,22 +1271,22 @@ MonthYearRule::MonthYearRule(const TQString& freqText, const TQString& freqWhats
for (int i = 0; i < 31; ++i)
mDayCombo->insertItem(TQString::number(i + 1));
mDayCombo->insertItem(i18n("Last day of month", "Last"));
- mDayCombo->setFixedSize(mDayCombo->sizeHint());
+ mDayCombo->setFixedSize(mDayCombo->tqsizeHint());
mDayCombo->setReadOnly(readOnly);
TQWhatsThis::add(mDayCombo, i18n("Select the day of the month on which to repeat the alarm"));
mDayButton->setFocusWidget(mDayCombo);
connect(mDayCombo, TQT_SIGNAL(activated(int)), TQT_SLOT(slotDaySelected(int)));
box->setStretchFactor(new TQWidget(box), 1); // left adjust the controls
- box->setFixedHeight(box->sizeHint().height());
+ box->setFixedHeight(box->tqsizeHint().height());
// Month position selector
box = new TQHBox(this);
box->setSpacing(KDialog::spacingHint());
- layout()->addWidget(box);
+ tqlayout()->addWidget(box);
mPosButton = new RadioButton(i18n("On the 1st Tuesday", "On t&he"), box);
- mPosButton->setFixedSize(mPosButton->sizeHint());
+ mPosButton->setFixedSize(mPosButton->tqsizeHint());
mPosButton->setReadOnly(readOnly);
mPosButtonId = mButtonGroup->insert(mPosButton);
TQWhatsThis::add(mPosButton,
@@ -1309,7 +1309,7 @@ MonthYearRule::MonthYearRule(const TQString& freqText, const TQString& freqWhats
mWeekCombo->setSizeLimit(11);
}
TQWhatsThis::add(mWeekCombo, i18n("Select the week of the month in which to repeat the alarm"));
- mWeekCombo->setFixedSize(mWeekCombo->sizeHint());
+ mWeekCombo->setFixedSize(mWeekCombo->tqsizeHint());
mWeekCombo->setReadOnly(readOnly);
mPosButton->setFocusWidget(mWeekCombo);
@@ -1324,7 +1324,7 @@ MonthYearRule::MonthYearRule(const TQString& freqText, const TQString& freqWhats
TQWhatsThis::add(mDayOfWeekCombo, i18n("Select the day of the week on which to repeat the alarm"));
box->setStretchFactor(new TQWidget(box), 1); // left adjust the controls
- box->setFixedHeight(box->sizeHint().height());
+ box->setFixedHeight(box->tqsizeHint().height());
connect(mButtonGroup, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(clicked(int)));
}
@@ -1456,47 +1456,47 @@ YearlyRule::YearlyRule(bool readOnly, TQWidget* parent, const char* name)
true, readOnly, parent, name)
{
// Set up the month selection widgets
- TQBoxLayout* hlayout = new TQHBoxLayout(layout(), KDialog::spacingHint());
+ TQBoxLayout* htqlayout = new TQHBoxLayout(tqlayout(), KDialog::spacingHint());
TQLabel* label = new TQLabel(i18n("List of months to select", "Months:"), this);
- label->setFixedSize(label->sizeHint());
- hlayout->addWidget(label, 0, Qt::AlignAuto | Qt::AlignTop);
+ label->setFixedSize(label->tqsizeHint());
+ htqlayout->addWidget(label, 0, Qt::AlignAuto | Qt::AlignTop);
// List the months of the year.
TQWidget* w = new TQWidget(this); // this is to control the TQWhatsThis text display area
- hlayout->addWidget(w, 1, Qt::AlignAuto);
+ htqlayout->addWidget(w, 1, Qt::AlignAuto);
TQGridLayout* grid = new TQGridLayout(w, 4, 3, 0, KDialog::spacingHint());
const KCalendarSystem* calendar = KGlobal::locale()->calendar();
- int year = TQDate::currentDate().year();
+ int year = TQDate::tqcurrentDate().year();
for (int i = 0; i < 12; ++i)
{
mMonthBox[i] = new CheckBox(calendar->monthName(i + 1, year, true), w);
- mMonthBox[i]->setFixedSize(mMonthBox[i]->sizeHint());
+ mMonthBox[i]->setFixedSize(mMonthBox[i]->tqsizeHint());
mMonthBox[i]->setReadOnly(readOnly);
grid->addWidget(mMonthBox[i], i%3, i/3, Qt::AlignAuto);
}
connect(mMonthBox[1], TQT_SIGNAL(toggled(bool)), TQT_SLOT(enableFeb29()));
- w->setFixedHeight(w->sizeHint().height());
+ w->setFixedHeight(w->tqsizeHint().height());
TQWhatsThis::add(w, i18n("Select the months of the year in which to repeat the alarm"));
// February 29th handling option
TQHBox* f29box = new TQHBox(this);
- layout()->addWidget(f29box);
+ tqlayout()->addWidget(f29box);
TQHBox* box = new TQHBox(f29box); // this is to control the TQWhatsThis text display area
box->setSpacing(KDialog::spacingHint());
mFeb29Label = new TQLabel(i18n("February 2&9th alarm in non-leap years:"), box);
- mFeb29Label->setFixedSize(mFeb29Label->sizeHint());
+ mFeb29Label->setFixedSize(mFeb29Label->tqsizeHint());
mFeb29Combo = new ComboBox(false, box);
mFeb29Combo->insertItem(i18n("No date", "None"));
mFeb29Combo->insertItem(i18n("1st March (short form)", "1 Mar"));
mFeb29Combo->insertItem(i18n("28th February (short form)", "28 Feb"));
- mFeb29Combo->setFixedSize(mFeb29Combo->sizeHint());
+ mFeb29Combo->setFixedSize(mFeb29Combo->tqsizeHint());
mFeb29Combo->setReadOnly(readOnly);
mFeb29Label->setBuddy(mFeb29Combo);
- box->setFixedSize(box->sizeHint());
+ box->setFixedSize(box->tqsizeHint());
TQWhatsThis::add(box,
i18n("Select which date, if any, the February 29th alarm should trigger in non-leap years"));
new TQWidget(f29box); // left adjust the visible widgets
- f29box->setFixedHeight(f29box->sizeHint().height());
+ f29box->setFixedHeight(f29box->tqsizeHint().height());
}
void YearlyRule::setDefaultValues(int dayOfMonth, int dayOfWeek, int month)
diff --git a/kalarm/recurrenceeditprivate.h b/kalarm/recurrenceeditprivate.h
index 47dfaa6c2..51a7085db 100644
--- a/kalarm/recurrenceeditprivate.h
+++ b/kalarm/recurrenceeditprivate.h
@@ -53,7 +53,7 @@ class Rule : public NoRule
int frequency() const;
void setFrequency(int);
virtual void setFrequencyFocus() { mSpinBox->setFocus(); }
- TQVBoxLayout* layout() const { return mLayout; }
+ TQVBoxLayout* tqlayout() const { return mLayout; }
virtual TQWidget* validate(TQString&) { return 0; }
virtual void saveState();
virtual bool stateChanged() const;
diff --git a/kalarm/reminder.cpp b/kalarm/reminder.cpp
index 60c603368..e10e04e22 100644
--- a/kalarm/reminder.cpp
+++ b/kalarm/reminder.cpp
@@ -51,19 +51,19 @@ Reminder::Reminder(const TQString& caption, const TQString& reminderWhatsThis, c
mTime = new TimeSelector(caption, i18n("in advance"), reminderWhatsThis,
valueWhatsThis, allowHourMinute, this, "timeOption");
- mTime->setFixedSize(mTime->sizeHint());
+ mTime->setFixedSize(mTime->tqsizeHint());
connect(mTime, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotReminderToggled(bool)));
topLayout->addWidget(mTime);
if (showOnceOnly)
{
- TQBoxLayout* layout = new TQHBoxLayout(topLayout, KDialog::spacingHint());
- layout->addSpacing(3*KDialog::spacingHint());
+ TQBoxLayout* tqlayout = new TQHBoxLayout(topLayout, KDialog::spacingHint());
+ tqlayout->addSpacing(3*KDialog::spacingHint());
mOnceOnly = new CheckBox(i18n_u_first_recurrence_only(), this);
- mOnceOnly->setFixedSize(mOnceOnly->sizeHint());
+ mOnceOnly->setFixedSize(mOnceOnly->tqsizeHint());
TQWhatsThis::add(mOnceOnly, i18n("Display the reminder only before the first time the alarm is scheduled"));
- layout->addWidget(mOnceOnly);
- layout->addStretch();
+ tqlayout->addWidget(mOnceOnly);
+ tqlayout->addStretch();
}
else
mOnceOnly = 0;
diff --git a/kalarm/repetition.cpp b/kalarm/repetition.cpp
index 2df201300..b2241b716 100644
--- a/kalarm/repetition.cpp
+++ b/kalarm/repetition.cpp
@@ -165,7 +165,7 @@ RepetitionDlg::RepetitionDlg(const TQString& caption, bool readOnly, TQWidget* p
"checking this option makes the alarm trigger multiple times at each recurrence."),
i18n("Enter the time between repetitions of the alarm"),
true, page);
- mTimeSelector->setFixedSize(mTimeSelector->sizeHint());
+ mTimeSelector->setFixedSize(mTimeSelector->tqsizeHint());
connect(mTimeSelector, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(intervalChanged(int)));
connect(mTimeSelector, TQT_SIGNAL(toggled(bool)), TQT_SLOT(repetitionToggled(bool)));
topLayout->addWidget(mTimeSelector, 0, Qt::AlignAuto);
@@ -174,38 +174,38 @@ RepetitionDlg::RepetitionDlg(const TQString& caption, bool readOnly, TQWidget* p
connect(mButtonGroup, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(typeClicked()));
topLayout->addWidget(mButtonGroup);
- TQBoxLayout* vlayout = new TQVBoxLayout(mButtonGroup, marginHint(), spacing);
- TQBoxLayout* layout = new TQHBoxLayout(vlayout, spacing);
+ TQBoxLayout* vtqlayout = new TQVBoxLayout(mButtonGroup, marginHint(), spacing);
+ TQBoxLayout* tqlayout = new TQHBoxLayout(vtqlayout, spacing);
mCountButton = new RadioButton(i18n("&Number of repetitions:"), mButtonGroup);
- mCountButton->setFixedSize(mCountButton->sizeHint());
+ mCountButton->setFixedSize(mCountButton->tqsizeHint());
TQWhatsThis::add(mCountButton,
i18n("Check to specify the number of times the alarm should repeat after each recurrence"));
- layout->addWidget(mCountButton);
+ tqlayout->addWidget(mCountButton);
mCount = new SpinBox(1, MAX_COUNT, 1, mButtonGroup);
- mCount->setFixedSize(mCount->sizeHint());
+ mCount->setFixedSize(mCount->tqsizeHint());
mCount->setLineShiftStep(10);
mCount->setSelectOnStep(false);
connect(mCount, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(countChanged(int)));
TQWhatsThis::add(mCount,
i18n("Enter the number of times to trigger the alarm after its initial occurrence"));
- layout->addWidget(mCount);
+ tqlayout->addWidget(mCount);
mCountButton->setFocusWidget(mCount);
- layout->addStretch();
+ tqlayout->addStretch();
- layout = new TQHBoxLayout(vlayout, spacing);
+ tqlayout = new TQHBoxLayout(vtqlayout, spacing);
mDurationButton = new RadioButton(i18n("&Duration:"), mButtonGroup);
- mDurationButton->setFixedSize(mDurationButton->sizeHint());
+ mDurationButton->setFixedSize(mDurationButton->tqsizeHint());
TQWhatsThis::add(mDurationButton,
i18n("Check to specify how long the alarm is to be repeated"));
- layout->addWidget(mDurationButton);
+ tqlayout->addWidget(mDurationButton);
mDuration = new TimePeriod(true, mButtonGroup);
- mDuration->setFixedSize(mDuration->sizeHint());
+ mDuration->setFixedSize(mDuration->tqsizeHint());
connect(mDuration, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(durationChanged(int)));
TQWhatsThis::add(mDuration,
i18n("Enter the length of time to repeat the alarm"));
- layout->addWidget(mDuration);
+ tqlayout->addWidget(mDuration);
mDurationButton->setFocusWidget(mDuration);
- layout->addStretch();
+ tqlayout->addStretch();
mCountButton->setChecked(true);
repetitionToggled(false);
diff --git a/kalarm/sounddlg.cpp b/kalarm/sounddlg.cpp
index 2df7542b1..691ba936f 100644
--- a/kalarm/sounddlg.cpp
+++ b/kalarm/sounddlg.cpp
@@ -78,14 +78,14 @@ SoundDlg::SoundDlg(const TQString& file, float volume, float fadeVolume, int fad
{
TQWidget* page = new TQWidget(this);
setMainWidget(page);
- TQVBoxLayout* layout = new TQVBoxLayout(page, 0, spacingHint());
+ TQVBoxLayout* tqlayout = new TQVBoxLayout(page, 0, spacingHint());
// File play button
TQHBox* box = new TQHBox(page);
- layout->addWidget(box);
+ tqlayout->addWidget(box);
mFilePlay = new TQPushButton(box);
mFilePlay->setPixmap(SmallIcon("player_play"));
- mFilePlay->setFixedSize(mFilePlay->sizeHint());
+ mFilePlay->setFixedSize(mFilePlay->tqsizeHint());
connect(mFilePlay, TQT_SIGNAL(clicked()), TQT_SLOT(playSound()));
TQToolTip::add(mFilePlay, i18n("Test the sound"));
TQWhatsThis::add(mFilePlay, i18n("Play the selected sound file."));
@@ -98,36 +98,36 @@ SoundDlg::SoundDlg(const TQString& file, float volume, float fadeVolume, int fad
// File browse button
mFileBrowseButton = new PushButton(box);
mFileBrowseButton->setPixmap(SmallIcon("fileopen"));
- mFileBrowseButton->setFixedSize(mFileBrowseButton->sizeHint());
+ mFileBrowseButton->setFixedSize(mFileBrowseButton->tqsizeHint());
connect(mFileBrowseButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotPickFile()));
TQToolTip::add(mFileBrowseButton, i18n("Choose a file"));
TQWhatsThis::add(mFileBrowseButton, i18n("Select a sound file to play."));
// Sound repetition checkbox
mRepeatCheckbox = new CheckBox(i18n_p_Repeat(), page);
- mRepeatCheckbox->setFixedSize(mRepeatCheckbox->sizeHint());
+ mRepeatCheckbox->setFixedSize(mRepeatCheckbox->tqsizeHint());
TQWhatsThis::add(mRepeatCheckbox,
i18n("If checked, the sound file will be played repeatedly for as long as the message is displayed."));
- layout->addWidget(mRepeatCheckbox);
+ tqlayout->addWidget(mRepeatCheckbox);
// Volume
TQGroupBox* group = new TQGroupBox(i18n("Volume"), page);
- layout->addWidget(group);
+ tqlayout->addWidget(group);
TQGridLayout* grid = new TQGridLayout(group, 4, 3, marginHint(), spacingHint());
grid->addRowSpacing(0, fontMetrics().height() - marginHint() + spacingHint());
grid->setColStretch(2, 1);
int indentWidth = 3 * KDialog::spacingHint();
grid->addColSpacing(0, indentWidth);
grid->addColSpacing(1, indentWidth);
- // Get alignment to use in TQGridLayout (AlignAuto doesn't work correctly there)
- int alignment = TQApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
+ // Get tqalignment to use in TQGridLayout (AlignAuto doesn't work correctly there)
+ int tqalignment = TQApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
// 'Set volume' checkbox
box = new TQHBox(group);
box->setSpacing(spacingHint());
grid->addMultiCellWidget(box, 1, 1, 0, 2);
mVolumeCheckbox = new CheckBox(i18n_v_SetVolume(), box);
- mVolumeCheckbox->setFixedSize(mVolumeCheckbox->sizeHint());
+ mVolumeCheckbox->setFixedSize(mVolumeCheckbox->tqsizeHint());
connect(mVolumeCheckbox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotVolumeToggled(bool)));
TQWhatsThis::add(mVolumeCheckbox,
i18n("Select to choose the volume for playing the sound file."));
@@ -136,30 +136,30 @@ SoundDlg::SoundDlg(const TQString& file, float volume, float fadeVolume, int fad
mVolumeSlider = new Slider(0, 100, 10, 0, Qt::Horizontal, box);
mVolumeSlider->setTickmarks(TQSlider::Below);
mVolumeSlider->setTickInterval(10);
- mVolumeSlider->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed));
+ mVolumeSlider->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed));
TQWhatsThis::add(mVolumeSlider, i18n("Choose the volume for playing the sound file."));
mVolumeCheckbox->setFocusWidget(mVolumeSlider);
// Fade checkbox
mFadeCheckbox = new CheckBox(i18n("Fade"), group);
- mFadeCheckbox->setFixedSize(mFadeCheckbox->sizeHint());
+ mFadeCheckbox->setFixedSize(mFadeCheckbox->tqsizeHint());
connect(mFadeCheckbox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotFadeToggled(bool)));
TQWhatsThis::add(mFadeCheckbox,
i18n("Select to fade the volume when the sound file first starts to play."));
- grid->addMultiCellWidget(mFadeCheckbox, 2, 2, 1, 2, alignment);
+ grid->addMultiCellWidget(mFadeCheckbox, 2, 2, 1, 2, tqalignment);
// Fade time
mFadeBox = new TQHBox(group);
mFadeBox->setSpacing(spacingHint());
- grid->addWidget(mFadeBox, 3, 2, alignment);
+ grid->addWidget(mFadeBox, 3, 2, tqalignment);
TQLabel* label = new TQLabel(i18n("Time period over which to fade the sound", "Fade time:"), mFadeBox);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
mFadeTime = new SpinBox(1, 999, 1, mFadeBox);
mFadeTime->setLineShiftStep(10);
- mFadeTime->setFixedSize(mFadeTime->sizeHint());
+ mFadeTime->setFixedSize(mFadeTime->tqsizeHint());
label->setBuddy(mFadeTime);
label = new TQLabel(i18n("seconds"), mFadeBox);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
TQWhatsThis::add(mFadeBox, i18n("Enter how many seconds to fade the sound before reaching the set volume."));
// Fade slider
@@ -167,11 +167,11 @@ SoundDlg::SoundDlg(const TQString& file, float volume, float fadeVolume, int fad
mFadeVolumeBox->setSpacing(spacingHint());
grid->addWidget(mFadeVolumeBox, 4, 2);
label = new TQLabel(i18n("Initial volume:"), mFadeVolumeBox);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
mFadeSlider = new Slider(0, 100, 10, 0, Qt::Horizontal, mFadeVolumeBox);
mFadeSlider->setTickmarks(TQSlider::Below);
mFadeSlider->setTickInterval(10);
- mFadeSlider->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed));
+ mFadeSlider->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed));
label->setBuddy(mFadeSlider);
TQWhatsThis::add(mFadeVolumeBox, i18n("Choose the initial volume for playing the sound file."));
@@ -412,7 +412,7 @@ bool SoundDlg::checkFile()
#endif
{
// It's a relative path.
- // Find the first sound resource that contains files.
+ // Find the first sound resource that tqcontains files.
TQStringList soundDirs = KGlobal::dirs()->resourceDirs("sound");
if (!soundDirs.isEmpty())
{
diff --git a/kalarm/soundpicker.cpp b/kalarm/soundpicker.cpp
index cd40a778f..ec09c2b86 100644
--- a/kalarm/soundpicker.cpp
+++ b/kalarm/soundpicker.cpp
@@ -64,7 +64,7 @@ SoundPicker::SoundPicker(TQWidget* parent, const char* name)
mTypeBox->setSpacing(KDialog::spacingHint());
TQLabel* label = new TQLabel(i18n("An audio sound", "&Sound:"), mTypeBox);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
// Sound type combo box
// The order of combo box entries must correspond with the 'Type' enum.
@@ -81,7 +81,7 @@ SoundPicker::SoundPicker(TQWidget* parent, const char* name)
// Sound file picker button
mFilePicker = new PushButton(this);
mFilePicker->setPixmap(SmallIcon("playsound"));
- mFilePicker->setFixedSize(mFilePicker->sizeHint());
+ mFilePicker->setFixedSize(mFilePicker->tqsizeHint());
connect(mFilePicker, TQT_SIGNAL(clicked()), TQT_SLOT(slotPickFile()));
TQToolTip::add(mFilePicker, i18n("Configure sound file"));
TQWhatsThis::add(mFilePicker, i18n("Configure a sound file to play when the alarm is displayed."));
@@ -283,7 +283,7 @@ TQString SoundPicker::browseFile(TQString& defaultDir, const TQString& initialFi
defaultDir = kdeSoundDir;
}
#ifdef WITHOUT_ARTS
- TQString filter = TQString::fromLatin1("*.wav *.mp3 *.ogg|%1\n*|%2").arg(i18n("Sound Files")).arg(i18n("All Files"));
+ TQString filter = TQString::tqfromLatin1("*.wav *.mp3 *.ogg|%1\n*|%2").arg(i18n("Sound Files")).arg(i18n("All Files"));
#else
TQStringList filters = KDE::PlayObjectFactory::mimeTypes();
TQString filter = filters.join(" ");
diff --git a/kalarm/specialactions.cpp b/kalarm/specialactions.cpp
index ed8555859..fabff6edd 100644
--- a/kalarm/specialactions.cpp
+++ b/kalarm/specialactions.cpp
@@ -95,12 +95,12 @@ SpecialActionsDlg::SpecialActionsDlg(const TQString& preAction, const TQString&
{
TQWidget* page = new TQWidget(this);
setMainWidget(page);
- TQVBoxLayout* layout = new TQVBoxLayout(page, 0, spacingHint());
+ TQVBoxLayout* tqlayout = new TQVBoxLayout(page, 0, spacingHint());
mActions = new SpecialActions(page);
mActions->setActions(preAction, postAction);
- layout->addWidget(mActions);
- layout->addSpacing(KDialog::spacingHint());
+ tqlayout->addWidget(mActions);
+ tqlayout->addSpacing(KDialog::spacingHint());
TQSize s;
if (KAlarm::readConfigWindowSize(SPEC_ACT_DIALOG_NAME, s))
@@ -142,7 +142,7 @@ SpecialActions::SpecialActions(TQWidget* parent, const char* name)
// Pre-alarm action
TQLabel* label = new TQLabel(i18n("Pre-a&larm action:"), this);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
topLayout->addWidget(label, 0, Qt::AlignAuto);
mPreAction = new KLineEdit(this);
@@ -156,7 +156,7 @@ SpecialActions::SpecialActions(TQWidget* parent, const char* name)
// Post-alarm action
label = new TQLabel(i18n("Post-alar&m action:"), this);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
topLayout->addWidget(label, 0, Qt::AlignAuto);
mPostAction = new KLineEdit(this);
diff --git a/kalarm/templatedlg.cpp b/kalarm/templatedlg.cpp
index f586f2e7b..dab8b45d2 100644
--- a/kalarm/templatedlg.cpp
+++ b/kalarm/templatedlg.cpp
@@ -50,34 +50,34 @@ TemplateDlg::TemplateDlg(TQWidget* parent, const char* name)
TQBoxLayout* topLayout = new TQHBoxLayout(topWidget);
topLayout->setSpacing(spacingHint());
- TQBoxLayout* layout = new TQVBoxLayout(topLayout);
+ TQBoxLayout* tqlayout = new TQVBoxLayout(topLayout);
mTemplateList = new TemplateListView(true, i18n("The list of alarm templates"), topWidget);
mTemplateList->setSelectionMode(TQListView::Extended);
- mTemplateList->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
+ mTemplateList->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
connect(mTemplateList, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotSelectionChanged()));
- layout->addWidget(mTemplateList);
+ tqlayout->addWidget(mTemplateList);
- layout = new TQVBoxLayout(topLayout);
+ tqlayout = new TQVBoxLayout(topLayout);
TQPushButton* button = new TQPushButton(i18n("&New..."), topWidget);
connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(slotNew()));
TQWhatsThis::add(button, i18n("Create a new alarm template"));
- layout->addWidget(button);
+ tqlayout->addWidget(button);
mEditButton = new TQPushButton(i18n("&Edit..."), topWidget);
connect(mEditButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotEdit()));
TQWhatsThis::add(mEditButton, i18n("Edit the currently highlighted alarm template"));
- layout->addWidget(mEditButton);
+ tqlayout->addWidget(mEditButton);
mCopyButton = new TQPushButton(i18n("Co&py"), topWidget);
connect(mCopyButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotCopy()));
TQWhatsThis::add(mCopyButton,
i18n("Create a new alarm template based on a copy of the currently highlighted template"));
- layout->addWidget(mCopyButton);
+ tqlayout->addWidget(mCopyButton);
mDeleteButton = new TQPushButton(i18n("&Delete"), topWidget);
connect(mDeleteButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotDelete()));
TQWhatsThis::add(mDeleteButton, i18n("Delete the currently highlighted alarm template"));
- layout->addWidget(mDeleteButton);
+ tqlayout->addWidget(mDeleteButton);
KAccel* accel = new KAccel(this);
accel->insert(KStdAccel::SelectAll, mTemplateList, TQT_SLOT(slotSelectAll()));
diff --git a/kalarm/timeselector.cpp b/kalarm/timeselector.cpp
index 9ec5c9813..31e69d749 100644
--- a/kalarm/timeselector.cpp
+++ b/kalarm/timeselector.cpp
@@ -41,18 +41,18 @@ TimeSelector::TimeSelector(const TQString& selectText, const TQString& postfix,
{
setFrameStyle(TQFrame::NoFrame);
TQVBoxLayout* topLayout = new TQVBoxLayout(this, 0, KDialog::spacingHint());
- TQHBoxLayout* layout = new TQHBoxLayout(topLayout, KDialog::spacingHint());
+ TQHBoxLayout* tqlayout = new TQHBoxLayout(topLayout, KDialog::spacingHint());
mSelect = new CheckBox(selectText, this);
- mSelect->setFixedSize(mSelect->sizeHint());
+ mSelect->setFixedSize(mSelect->tqsizeHint());
connect(mSelect, TQT_SIGNAL(toggled(bool)), TQT_SLOT(selectToggled(bool)));
TQWhatsThis::add(mSelect, selectWhatsThis);
- layout->addWidget(mSelect);
+ tqlayout->addWidget(mSelect);
TQHBox* box = new TQHBox(this); // to group widgets for TQWhatsThis text
box->setSpacing(KDialog::spacingHint());
- layout->addWidget(box);
+ tqlayout->addWidget(box);
mPeriod = new TimePeriod(allowHourMinute, box);
- mPeriod->setFixedSize(mPeriod->sizeHint());
+ mPeriod->setFixedSize(mPeriod->tqsizeHint());
mPeriod->setSelectOnStep(false);
connect(mPeriod, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(periodChanged(int)));
mSelect->setFocusWidget(mPeriod);
diff --git a/kalarm/traywindow.cpp b/kalarm/traywindow.cpp
index 14ee6bf4a..41fd9e4db 100644
--- a/kalarm/traywindow.cpp
+++ b/kalarm/traywindow.cpp
@@ -226,7 +226,7 @@ void TrayWindow::tooltipAlarmText(TQString& text) const
KAEvent event;
const TQString& prefix = Preferences::tooltipTimeToPrefix();
int maxCount = Preferences::tooltipAlarmCount();
- TQDateTime now = TQDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::tqcurrentDateTime();
// Get today's and tomorrow's alarms, sorted in time order
TQValueList<TipItem> items;
@@ -348,7 +348,7 @@ bool TrayWindow::inSystemTray() const
*/
void TrayTooltip::maybeTip(const TQPoint&)
{
- TrayWindow* parent = (TrayWindow*)parentWidget();
+ TrayWindow* parent = (TrayWindow*)tqparentWidget();
TQString text;
if (Daemon::monitoringAlarms())
text = kapp->aboutData()->programName();
diff --git a/kalarm/undo.cpp b/kalarm/undo.cpp
index 8d6a46a32..e1998e9cf 100644
--- a/kalarm/undo.cpp
+++ b/kalarm/undo.cpp
@@ -68,7 +68,7 @@ class UndoItem
UndoItem(Undo::Type);
static TQString addDeleteActionText(KAEvent::Status, bool add);
TQString description(const KAEvent&) const;
- void replaceWith(UndoItem* item) { Undo::replace(this, item); }
+ void tqreplaceWith(UndoItem* item) { Undo::tqreplace(this, item); }
int mId; // unique identifier (only for mType = UNDO, REDO)
Undo::Type mType; // which list (if any) the object is in
@@ -298,7 +298,7 @@ void Undo::removeRedos(const TQString& eventID)
{
if (item->deleteID(id))
{
- // The old multi-redo was replaced with a new single redo
+ // The old multi-redo was tqreplaced with a new single redo
delete item;
}
++it;
@@ -398,7 +398,7 @@ void Undo::remove(UndoItem* item, bool undo)
/******************************************************************************
* Replace an undo item in one of the lists.
*/
-void Undo::replace(UndoItem* old, UndoItem* New)
+void Undo::tqreplace(UndoItem* old, UndoItem* New)
{
Type type = old->type();
List* list = (type == UNDO) ? &mUndoList : (type == REDO) ? &mRedoList : 0;
@@ -654,8 +654,8 @@ UndoItem* UndoMulti<T>::restore()
/******************************************************************************
* If one of the multiple items has the specified ID, delete it.
* If an item is deleted and there is only one item left, the UndoMulti
-* instance is removed from its list and replaced by the remaining UndoItem instead.
-* Reply = true if this instance was replaced. The caller must delete it.
+* instance is removed from its list and tqreplaced by the remaining UndoItem instead.
+* Reply = true if this instance was tqreplaced. The caller must delete it.
* = false otherwise.
*/
template <class T>
@@ -672,7 +672,7 @@ bool UndoMulti<T>::deleteID(const TQString& id)
{
// There is only one entry left after removal.
// Replace 'this' multi instance with the remaining single entry.
- replaceWith(item);
+ tqreplaceWith(item);
return true;
}
else
diff --git a/kalarm/undo.h b/kalarm/undo.h
index 0af181530..cca197f89 100644
--- a/kalarm/undo.h
+++ b/kalarm/undo.h
@@ -70,7 +70,7 @@ class Undo : public QObject
// Methods for use by UndoItem class
static void add(UndoItem*, bool undo);
static void remove(UndoItem*, bool undo);
- static void replace(UndoItem* old, UndoItem* New);
+ static void tqreplace(UndoItem* old, UndoItem* New);
private:
typedef TQValueList<UndoItem*>::Iterator Iterator;