summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/ppp/kpppwidget.cpp
Side-by-side diff
Diffstat (limited to 'noncore/settings/networksettings/ppp/kpppwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/kpppwidget.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/noncore/settings/networksettings/ppp/kpppwidget.cpp b/noncore/settings/networksettings/ppp/kpppwidget.cpp
index 8d70cd4..f8a8dc3 100644
--- a/noncore/settings/networksettings/ppp/kpppwidget.cpp
+++ b/noncore/settings/networksettings/ppp/kpppwidget.cpp
@@ -232,62 +232,45 @@ KPPPWidget::KPPPWidget( QWidget *parent, const char *name, bool modal, WFlags fl
// stats = new PPPStats;
// KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon());
// constructor of con_win reads position from config file
// con_win = new ConWindow(0, "conw", this);
// KWin::setIcons(con_win->winId(), kapp->icon(), kapp->miniIcon());
// statdlg = new PPPStatsDlg(0, "stats", this, stats);
// statdlg->hide();
- debugwindow = new DebugWidget(0,"debugwindow");
- // KWin::setIcons(debugwindow->winId(), kapp->icon(), kapp->miniIcon());
- debugwindow->hide();
-
// load up the accounts combo box
// resetaccounts();
// con = new ConnectWidget(0, "con");
//KWin::setIcons(con->winId(), kapp->icon(), kapp->miniIcon() );
// connect(this, SIGNAL(begin_connect()),con, SLOT(preinit()));
// Is this the best we can do here? it's not right.
// QRect desk = QApplication::desktop()->screenGeometry(
// QApplication::desktop()->screenNumber(topLevelWidget()));
// con->setGeometry(desk.center().x()-175, desk.center().y()-55, 350,110);
// connect the ConnectWidgets various signals
-// connect(con, SIGNAL(closeDebugWindow()),
-// debugwindow, SLOT(hide()));
-// connect(con, SIGNAL(debugMessage(const QString &)),
-// debugwindow, SLOT(statusLabel(const QString &)));
-// connect(con, SIGNAL(toggleDebugWindow()),
-// debugwindow, SLOT(toggleVisibility()));
-// connect(con, SIGNAL(debugPutChar(unsigned char)),
-// debugwindow, SLOT(addChar(unsigned char)));
// // connect(con, SIGNAL(startAccounting()),
// // this, SLOT(startAccounting()));
// // connect(con, SIGNAL(stopAccounting()),
// // this, SLOT(stopAccounting()));
// connect(qApp, SIGNAL(saveYourself()),
// this, SLOT(saveMyself()));
// connect(qApp, SIGNAL(shutDown()),
// this, SLOT(shutDown()));
-// debugwindow->setGeometry(desk.center().x()+190, desk.center().y()-55,
-// debugwindow->width(),debugwindow->height());
-
-// move(desk.center().x()-width()/2, desk.center().y()-height()/2);
-
// KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
// m_strCmdlAccount = args->getOption("c");
// m_bQuitOnDisconnect = args->isSet("q");
// if(!m_strCmdlAccount.isEmpty()) {
// m_bCmdlAccount = true;
// kdDebug(5002) << "cmdl_account: " << m_bCmdlAccount << endl;
// }
// if(m_bCmdlAccount){
@@ -626,33 +609,24 @@ void KPPPWidget::beginConnect() {
QString s = i18n("You must specify a telephone number!");
QMessageBox::warning(this, "error", s);
return;
}
this->hide();
QString tit = i18n("Connecting to: %1").arg(PPPData::data()->accname());
// con->setCaption(tit);
// con->show();
- bool show_debug = PPPData::data()->get_show_log_window();
-// con->debug->setOn(show_debug); // toggle button
- debugwindow->clear();
- if (!show_debug)
- debugwindow->hide();
- else {
- debugwindow->show();
-// con->raise();
- }
emit begin_connect();
}
void KPPPWidget::disconnect() {
if (!PPPData::data()->command_before_disconnect().isEmpty()) {
// con_win->hide();
// con->show();
// con->setCaption(i18n("Disconnecting..."));
// con->setMsg(i18n("Executing command before disconnection."));