diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kppp/docking.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kppp/docking.cpp')
-rw-r--r-- | kppp/docking.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kppp/docking.cpp b/kppp/docking.cpp index d3f449a1..e5cd0c5e 100644 --- a/kppp/docking.cpp +++ b/kppp/docking.cpp @@ -38,7 +38,7 @@ extern KPPPWidget *p_kppp; // static member DockWidget *DockWidget::dock_widget = 0; -DockWidget::DockWidget(QWidget *parent, const char *name, PPPStats *st) +DockWidget::DockWidget(TQWidget *parent, const char *name, PPPStats *st) : KSystemTray(parent, name), stats(st) { // load pixmaps @@ -50,12 +50,12 @@ DockWidget::DockWidget(QWidget *parent, const char *name, PPPStats *st) // popup menu for right mouse button popup_m = contextMenu(); toggleID = popup_m->insertItem(i18n("Restore"), - this, SLOT(toggle_window_state())); - popup_m->insertItem(i18n("Details"), p_kppp, SLOT(showStats())); + this, TQT_SLOT(toggle_window_state())); + popup_m->insertItem(i18n("Details"), p_kppp, TQT_SLOT(showStats())); popup_m->insertSeparator(); - popup_m->insertItem(i18n("Disconnect"), p_kppp, SLOT(disconnect())); + popup_m->insertItem(i18n("Disconnect"), p_kppp, TQT_SLOT(disconnect())); // connect to stats for little modem animation - connect(stats, SIGNAL(statsChanged(int)), SLOT(paintIcon(int))); + connect(stats, TQT_SIGNAL(statsChanged(int)), TQT_SLOT(paintIcon(int))); DockWidget::dock_widget = this; } @@ -66,7 +66,7 @@ DockWidget::~DockWidget() { } -void DockWidget::paintEvent (QPaintEvent *) { +void DockWidget::paintEvent (TQPaintEvent *) { paintIcon(PPPStats::BytesNone); } @@ -74,7 +74,7 @@ void DockWidget::paintEvent (QPaintEvent *) { void DockWidget::paintIcon (int status) { // animate modem lights - const QPixmap *pixmap; + const TQPixmap *pixmap; if(isVisible()) { switch(status) @@ -112,7 +112,7 @@ void DockWidget::stop_stats() { } -void DockWidget::mousePressEvent(QMouseEvent *e) { +void DockWidget::mousePressEvent(TQMouseEvent *e) { // open/close connect-window on right mouse button if ( e->button() == LeftButton ) { toggle_window_state(); @@ -120,7 +120,7 @@ void DockWidget::mousePressEvent(QMouseEvent *e) { // open popup menu on left mouse button if ( e->button() == RightButton ) { - QString text; + TQString text; if(p_kppp->con_win->isVisible()) text = i18n("Minimize"); else |