- if (img.height() > height() || img.width() > width())
- img = img.scaled(width(), height(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
+ connect(Client::coreConnection(), SIGNAL(stateChanged(CoreConnection::ConnectionState)), this, SLOT(coreConnectionStateChanged()));
+ connect(_connectButton, SIGNAL(clicked(bool)), this, SLOT(showCoreConnectionDlg()));
+ layout->addWidget(_connectButton);
+ }
+}