summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authordeva <deva>2011-06-28 06:35:10 +0000
committerdeva <deva>2011-06-28 06:35:10 +0000
commitef659d72dcbcb7f609373af1c6343201cb6e773a (patch)
tree1b80cd56363cd3b6d0023d97968d86a2fed8bc92 /client
parenta4b5fd34f5c3d98a438ae3519cd404c2aeeaf330 (diff)
Remove unused NetCom constructor parameter. Make sure maximise/minimise buttons are not hidden on windows.
Diffstat (limited to 'client')
-rw-r--r--client/mainwindow.cc4
-rw-r--r--client/netcom.cc4
-rw-r--r--client/netcom.h2
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 = "");