Connect from commandline (#3556)

* - Use Qt argument parser
- Add --connect command line option.

* Better version info
This commit is contained in:
Rob Blanckaert 2019-02-06 00:08:24 -08:00 committed by Zach H
parent 9118871afb
commit 073c531855
3 changed files with 29 additions and 4 deletions

View file

@ -137,9 +137,14 @@ private:
DlgConnect *dlgConnect;
GameReplay *replay;
DlgTipOfTheDay *tip;
QUrl connectTo;
public:
explicit MainWindow(QWidget *parent = nullptr);
void setConnectTo(QString url)
{
connectTo = QUrl(QString("cockatrice://%1").arg(url));
}
~MainWindow() override;
protected: