diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/mainwindow.cc | 4 | ||||
-rw-r--r-- | client/netcom.cc | 4 | ||||
-rw-r--r-- | client/netcom.h | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 492d601..b9aab28 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -69,8 +69,8 @@ MainWindow *gmainwindow = NULL; MainWindow::MainWindow(QString patientid, QString templ, QString host, quint16 port, QString user) - : QMainWindow(0, Qt::WindowContextHelpButtonHint), - netcom(this, host, port) + : QMainWindow(0), // Qt::WindowContextHelpButtonHint + netcom(host, port) { gmainwindow = this; diff --git a/client/netcom.cc b/client/netcom.cc index 0680f8c..7873c2b 100644 --- a/client/netcom.cc +++ b/client/netcom.cc @@ -50,10 +50,8 @@ #endif #endif -NetCom::NetCom(QWidget *wdg, QString host, quint16 port) +NetCom::NetCom(QString host, quint16 port) { - this->wdg = wdg; - QUrl url; url.setHost(host); url.setPort(port); diff --git a/client/netcom.h b/client/netcom.h index 1ee06d6..46d40d0 100644 --- a/client/netcom.h +++ b/client/netcom.h @@ -51,7 +51,7 @@ typedef enum { class NetCom : public QObject { Q_OBJECT public: - NetCom(QWidget *wdg, QString host, quint16 port); + NetCom(QString host, quint16 port); ~NetCom(); void send(QString templ, QString macro = ""); |