From ef659d72dcbcb7f609373af1c6343201cb6e773a Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 28 Jun 2011 06:35:10 +0000 Subject: Remove unused NetCom constructor parameter. Make sure maximise/minimise buttons are not hidden on windows. --- client/mainwindow.cc | 4 ++-- client/netcom.cc | 4 +--- 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 = ""); -- cgit v1.2.3