mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-29 01:53:54 -07:00
Connect from commandline (#3556)
* - Use Qt argument parser - Add --connect command line option. * Better version info
This commit is contained in:
parent
9118871afb
commit
073c531855
3 changed files with 29 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue