aboutsummaryrefslogtreecommitdiff
path: root/src/gatscon/clientwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/gatscon/clientwidget.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/gatscon/clientwidget.cpp b/src/gatscon/clientwidget.cpp
index 6039035..0ea04a3 100644
--- a/src/gatscon/clientwidget.cpp
+++ b/src/gatscon/clientwidget.cpp
@@ -1,5 +1,4 @@
1#include "clientwidget.h" 1#include "clientwidget.h"
2#include "connectdlg.h"
3#include "clientthread.h" 2#include "clientthread.h"
4 3
5#include "gatstotree.h" 4#include "gatstotree.h"
@@ -11,23 +10,17 @@
11 10
12using namespace Bu; 11using namespace Bu;
13 12
14ClientWidget::ClientWidget( QWidget *pParent ) : 13ClientWidget::ClientWidget( QWidget *pParent, const QByteArray &baHost,
14 int iPort ) :
15 QWidget( pParent ) 15 QWidget( pParent )
16{ 16{
17 setupUi( this ); 17 setupUi( this );
18 18
19 { 19 pCli = new ClientThread( this, baHost, iPort );
20 ConnectDlg dlg( this );
21 dlg.exec();
22
23 sio << "Connect: " << dlg.getHostname().constData() << ":"
24 << dlg.getPort() << sio.nl;
25
26 pCli = new ClientThread( this, dlg.getHostname(), dlg.getPort() );
27 }
28 pCli->start();
29 connect( pCli, SIGNAL(recv( Gats::Object *)), 20 connect( pCli, SIGNAL(recv( Gats::Object *)),
30 this, SLOT(recv(Gats::Object *)), Qt::QueuedConnection ); 21 this, SLOT(recv(Gats::Object *)), Qt::QueuedConnection );
22
23 pCli->start();
31} 24}
32 25
33ClientWidget::~ClientWidget() 26ClientWidget::~ClientWidget()