diff options
Diffstat (limited to 'kmilo/powerbook2')
-rw-r--r-- | kmilo/powerbook2/pb_monitor.cpp | 12 | ||||
-rw-r--r-- | kmilo/powerbook2/pb_monitor.h | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/kmilo/powerbook2/pb_monitor.cpp b/kmilo/powerbook2/pb_monitor.cpp index 84c72d5..340d38b 100644 --- a/kmilo/powerbook2/pb_monitor.cpp +++ b/kmilo/powerbook2/pb_monitor.cpp @@ -45,12 +45,12 @@ extern "C" { } #define BUFFERLEN 200 -const QString tpmodes[] = { I18N_NOOP("No Tap"), I18N_NOOP("Tap"), I18N_NOOP("Drag"), I18N_NOOP("Lock") }; +const TQString tpmodes[] = { I18N_NOOP("No Tap"), I18N_NOOP("Tap"), I18N_NOOP("Drag"), I18N_NOOP("Lock") }; namespace KMilo { -PowerBookMonitor::PowerBookMonitor(QObject *parent, const char *name, - const QStringList& args) +PowerBookMonitor::PowerBookMonitor(TQObject *parent, const char *name, + const TQStringList& args) : Monitor(parent, name, args), m_progress( 0 ) { @@ -79,7 +79,7 @@ Monitor::DisplayType PowerBookMonitor::poll() Monitor::DisplayType rc = None; // Drain the queue, send the last message struct tagitem* tag = readMessage(); - m_message = QString::null; + m_message = TQString::null; while ( tag && tag->tag != TAG_END ) { switch ( tag->tag ) { case TAG_VOLUME: @@ -97,7 +97,7 @@ Monitor::DisplayType PowerBookMonitor::poll() case TAG_TPMODE: { rc = Monitor::Tap; - QString marg = tpmodes[ tag->data & 3 ]; + TQString marg = tpmodes[ tag->data & 3 ]; m_message = i18n( "Operating mode set to: %1." ).arg( marg ); } break; @@ -120,7 +120,7 @@ int PowerBookMonitor::progress() const return m_progress; } -QString PowerBookMonitor::message() const +TQString PowerBookMonitor::message() const { return m_message; } diff --git a/kmilo/powerbook2/pb_monitor.h b/kmilo/powerbook2/pb_monitor.h index a6bf651..e9dfb71 100644 --- a/kmilo/powerbook2/pb_monitor.h +++ b/kmilo/powerbook2/pb_monitor.h @@ -34,19 +34,19 @@ namespace KMilo { class PowerBookMonitor : public KMilo::Monitor { public: - PowerBookMonitor(QObject *parent, const char *name, const QStringList&); + PowerBookMonitor(TQObject *parent, const char *name, const TQStringList&); virtual ~PowerBookMonitor(); virtual bool init(); virtual DisplayType poll(); virtual int progress() const; - virtual QString message() const; + virtual TQString message() const; private: struct tagitem* readMessage(); private: int m_progress; - QString m_message; + TQString m_message; bool m_sleep; }; |