summaryrefslogtreecommitdiffstats
path: root/kalarm/traywindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/traywindow.cpp')
-rw-r--r--kalarm/traywindow.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kalarm/traywindow.cpp b/kalarm/traywindow.cpp
index e968e02ba..14ee6bf4a 100644
--- a/kalarm/traywindow.cpp
+++ b/kalarm/traywindow.cpp
@@ -22,7 +22,7 @@
#include <stdlib.h>
-#include <qtooltip.h>
+#include <tqtooltip.h>
#include <kapplication.h>
#include <klocale.h>
@@ -53,16 +53,16 @@
class TrayTooltip : public QToolTip
{
public:
- TrayTooltip(QWidget* parent) : QToolTip(parent) { }
+ TrayTooltip(TQWidget* parent) : TQToolTip(parent) { }
virtual ~TrayTooltip() {}
protected:
- virtual void maybeTip(const QPoint&);
+ virtual void maybeTip(const TQPoint&);
};
struct TipItem
{
- QDateTime dateTime;
- QString text;
+ TQDateTime dateTime;
+ TQString text;
};
@@ -87,16 +87,16 @@ TrayWindow::TrayWindow(MainWindow* parent, const char* name)
KActionCollection* actcol = actionCollection();
AlarmEnableAction* a = Daemon::createAlarmEnableAction(actcol, "tAlarmEnable");
a->plug(contextMenu());
- connect(a, SIGNAL(switched(bool)), SLOT(setEnabledStatus(bool)));
- KAlarm::createNewAlarmAction(i18n("&New Alarm..."), this, SLOT(slotNewAlarm()), actcol, "tNew")->plug(contextMenu());
- KAlarm::createNewFromTemplateAction(i18n("New Alarm From &Template"), this, SLOT(slotNewFromTemplate(const KAEvent&)), actcol, "tNewFromTempl")->plug(contextMenu());
- KStdAction::preferences(this, SLOT(slotPreferences()), actcol)->plug(contextMenu());
+ connect(a, TQT_SIGNAL(switched(bool)), TQT_SLOT(setEnabledStatus(bool)));
+ KAlarm::createNewAlarmAction(i18n("&New Alarm..."), this, TQT_SLOT(slotNewAlarm()), actcol, "tNew")->plug(contextMenu());
+ KAlarm::createNewFromTemplateAction(i18n("New Alarm From &Template"), this, TQT_SLOT(slotNewFromTemplate(const KAEvent&)), actcol, "tNewFromTempl")->plug(contextMenu());
+ KStdAction::preferences(this, TQT_SLOT(slotPreferences()), actcol)->plug(contextMenu());
// Replace the default handler for the Quit context menu item
const char* quitName = KStdAction::name(KStdAction::Quit);
actcol->remove(actcol->action(quitName));
actcol->accel()->remove(quitName);
- KStdAction::quit(this, SLOT(slotQuit()), actcol);
+ KStdAction::quit(this, TQT_SLOT(slotQuit()), actcol);
// Set icon to correspond with the alarms enabled menu status
Daemon::checkStatus();
@@ -171,7 +171,7 @@ void TrayWindow::setEnabledStatus(bool status)
* A left click displays the KAlarm main window.
* A middle button click displays the New Alarm window.
*/
-void TrayWindow::mousePressEvent(QMouseEvent* e)
+void TrayWindow::mousePressEvent(TQMouseEvent* e)
{
if (e->button() == LeftButton && !theApp()->wantRunInSystemTray())
{
@@ -189,7 +189,7 @@ void TrayWindow::mousePressEvent(QMouseEvent* e)
* The main window (if not hidden) is raised and made the active window.
* If this is done in mousePressEvent(), it doesn't work.
*/
-void TrayWindow::mouseReleaseEvent(QMouseEvent* e)
+void TrayWindow::mouseReleaseEvent(TQMouseEvent* e)
{
if (e->button() == LeftButton && mAssocMainWindow && mAssocMainWindow->isVisible())
{
@@ -203,7 +203,7 @@ void TrayWindow::mouseReleaseEvent(QMouseEvent* e)
/******************************************************************************
* Called when the drag cursor enters the panel icon.
*/
-void TrayWindow::dragEnterEvent(QDragEnterEvent* e)
+void TrayWindow::dragEnterEvent(TQDragEnterEvent* e)
{
MainWindow::executeDragEnterEvent(e);
}
@@ -212,7 +212,7 @@ void TrayWindow::dragEnterEvent(QDragEnterEvent* e)
* Called when an object is dropped on the panel icon.
* If the object is recognised, the edit alarm dialog is opened appropriately.
*/
-void TrayWindow::dropEvent(QDropEvent* e)
+void TrayWindow::dropEvent(TQDropEvent* e)
{
MainWindow::executeDropEvent(0, e);
}
@@ -221,16 +221,16 @@ void TrayWindow::dropEvent(QDropEvent* e)
* Return the tooltip text showing alarms due in the next 24 hours.
* The limit of 24 hours is because only times, not dates, are displayed.
*/
-void TrayWindow::tooltipAlarmText(QString& text) const
+void TrayWindow::tooltipAlarmText(TQString& text) const
{
KAEvent event;
- const QString& prefix = Preferences::tooltipTimeToPrefix();
+ const TQString& prefix = Preferences::tooltipTimeToPrefix();
int maxCount = Preferences::tooltipAlarmCount();
- QDateTime now = QDateTime::currentDateTime();
+ TQDateTime now = TQDateTime::currentDateTime();
// Get today's and tomorrow's alarms, sorted in time order
- QValueList<TipItem> items;
- QValueList<TipItem>::Iterator iit;
+ TQValueList<TipItem> items;
+ TQValueList<TipItem>::Iterator iit;
KCal::Event::List events = AlarmCalendar::activeCalendar()->eventsWithAlarms(now.date(), now.addDays(1));
for (KCal::Event::List::ConstIterator it = events.begin(); it != events.end(); ++it)
{
@@ -346,10 +346,10 @@ bool TrayWindow::inSystemTray() const
/******************************************************************************
* Displays the appropriate tooltip depending on preference settings.
*/
-void TrayTooltip::maybeTip(const QPoint&)
+void TrayTooltip::maybeTip(const TQPoint&)
{
TrayWindow* parent = (TrayWindow*)parentWidget();
- QString text;
+ TQString text;
if (Daemon::monitoringAlarms())
text = kapp->aboutData()->programName();
else