diff options
Diffstat (limited to 'kpf/src/AppletItem.cpp')
-rw-r--r-- | kpf/src/AppletItem.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/kpf/src/AppletItem.cpp b/kpf/src/AppletItem.cpp index e605f692..4c70640e 100644 --- a/kpf/src/AppletItem.cpp +++ b/kpf/src/AppletItem.cpp @@ -21,11 +21,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include <qlabel.h> -#include <qlayout.h> -#include <qtimer.h> -#include <qfileinfo.h> -#include <qcursor.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqtimer.h> +#include <tqfileinfo.h> +#include <tqcursor.h> #include <kiconloader.h> #include <klocale.h> @@ -43,8 +43,8 @@ namespace KPF { - AppletItem::AppletItem(WebServer * server, QWidget * parent) - : QWidget (parent, "KPF::AppletItem"), + AppletItem::AppletItem(WebServer * server, TQWidget * parent) + : TQWidget (parent, "KPF::AppletItem"), server_ (server), configDialog_ (0L), monitorWindow_ (0L), @@ -60,9 +60,9 @@ namespace KPF graph_->installEventFilter(this); - (new QVBoxLayout(this))->addWidget(graph_); + (new TQVBoxLayout(this))->addWidget(graph_); - QString popupTitle(i18n("kpf - %1").arg(server_->root())); + TQString popupTitle(i18n("kpf - %1").arg(server_->root())); popup_ = new KPopupMenu(this); @@ -94,8 +94,8 @@ namespace KPF connect ( monitorWindow_, - SIGNAL(dying(ActiveMonitorWindow *)), - SLOT(slotActiveMonitorWindowDying(ActiveMonitorWindow *)) + TQT_SIGNAL(dying(ActiveMonitorWindow *)), + TQT_SLOT(slotActiveMonitorWindowDying(ActiveMonitorWindow *)) ); } @@ -110,20 +110,20 @@ namespace KPF void AppletItem::setBackground() { - QResizeEvent e(size(), size()); + TQResizeEvent e(size(), size()); kapp->sendEvent(graph_, &e); graph_->update(); } bool - AppletItem::eventFilter(QObject *, QEvent * ev) + AppletItem::eventFilter(TQObject *, TQEvent * ev) { switch (ev->type()) { - case QEvent::MouseButtonRelease: + case TQEvent::MouseButtonRelease: { - QMouseEvent * e = static_cast<QMouseEvent *>(ev); + TQMouseEvent * e = static_cast<TQMouseEvent *>(ev); if (0 == e) { @@ -157,9 +157,9 @@ namespace KPF } break; - case QEvent::MouseButtonPress: + case TQEvent::MouseButtonPress: { - QMouseEvent * e = static_cast<QMouseEvent *>(ev); + TQMouseEvent * e = static_cast<TQMouseEvent *>(ev); if (0 == e) { @@ -178,7 +178,7 @@ namespace KPF popup_->changeItem (Pause, SmallIcon("player_pause"), i18n("Pause")); - switch (popup_->exec(QCursor::pos())) + switch (popup_->exec(TQCursor::pos())) { case NewServer: emit(newServer()); @@ -212,9 +212,9 @@ namespace KPF } break; - case QEvent::DragEnter: + case TQEvent::DragEnter: { - QDragEnterEvent * e = static_cast<QDragEnterEvent *>(ev); + TQDragEnterEvent * e = static_cast<TQDragEnterEvent *>(ev); if (0 == e) { @@ -233,7 +233,7 @@ namespace KPF const KURL &url = l[0]; - if (!url.isLocalFile() || !QFileInfo(url.path()).isDir()) + if (!url.isLocalFile() || !TQFileInfo(url.path()).isDir()) break; e->accept(); @@ -241,9 +241,9 @@ namespace KPF } break; - case QEvent::Drop: + case TQEvent::Drop: { - QDropEvent * e = static_cast<QDropEvent *>(ev); + TQDropEvent * e = static_cast<TQDropEvent *>(ev); if (0 == e) { @@ -262,7 +262,7 @@ namespace KPF const KURL &url = l[0]; - if (!url.isLocalFile() || !QFileInfo(url.path()).isDir()) + if (!url.isLocalFile() || !TQFileInfo(url.path()).isDir()) break; e->accept(); @@ -320,8 +320,8 @@ namespace KPF connect ( monitorWindow_, - SIGNAL(dying(ActiveMonitorWindow *)), - SLOT(slotActiveMonitorWindowDying(ActiveMonitorWindow *)) + TQT_SIGNAL(dying(ActiveMonitorWindow *)), + TQT_SLOT(slotActiveMonitorWindowDying(ActiveMonitorWindow *)) ); #endif @@ -332,7 +332,7 @@ namespace KPF void AppletItem::removeServer() { - QTimer::singleShot(0, this, SLOT(slotSuicide())); + TQTimer::singleShot(0, this, TQT_SLOT(slotSuicide())); } void @@ -349,8 +349,8 @@ namespace KPF connect ( configDialog_, - SIGNAL(dying(SingleServerConfigDialog *)), - SLOT(slotConfigDialogDying(SingleServerConfigDialog *)) + TQT_SIGNAL(dying(SingleServerConfigDialog *)), + TQT_SLOT(slotConfigDialogDying(SingleServerConfigDialog *)) ); configDialog_->show(); |