summaryrefslogtreecommitdiff
path: root/ZeroTierUI/mainwindow.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-02-01 21:55:32 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-02-01 21:55:32 -0800
commit3a9b0cf132f7ee3fb2a596f78293f6507ad70c30 (patch)
tree922cbb358508e65317e374dc0b24938a7b5c1563 /ZeroTierUI/mainwindow.cpp
parent2a3e646b943724641a5304178109d9b8041bfa36 (diff)
downloadinfinitytier-3a9b0cf132f7ee3fb2a596f78293f6507ad70c30.tar.gz
infinitytier-3a9b0cf132f7ee3fb2a596f78293f6507ad70c30.zip
UI quick start guide.
Diffstat (limited to 'ZeroTierUI/mainwindow.cpp')
-rw-r--r--ZeroTierUI/mainwindow.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/ZeroTierUI/mainwindow.cpp b/ZeroTierUI/mainwindow.cpp
index ffb27af1..c03a95d7 100644
--- a/ZeroTierUI/mainwindow.cpp
+++ b/ZeroTierUI/mainwindow.cpp
@@ -51,6 +51,7 @@
#include "aboutwindow.h"
#include "networkwidget.h"
#include "ui_mainwindow.h"
+#include "ui_quickstartdialog.h"
#ifdef __APPLE__
#include <stdio.h>
@@ -144,6 +145,13 @@ void MainWindow::timerEvent(QTimerEvent *event) // event can be null since code
if (this->firstTimerTick) {
this->firstTimerTick = false;
this->killTimer(this->pollServiceTimerId);
+
+ if (!settings->value("shown_quickStart",false).toBool()) {
+ on_actionQuick_Start_triggered();
+ settings->setValue("shown_quickStart",true);
+ settings->sync();
+ }
+
this->pollServiceTimerId = this->startTimer(1500);
}
@@ -387,3 +395,12 @@ void MainWindow::on_addressButton_clicked()
{
QApplication::clipboard()->setText(this->myAddress);
}
+
+void MainWindow::on_actionQuick_Start_triggered()
+{
+ Ui::QuickstartDialog qd;
+ QDialog *qdd = new QDialog(this);
+ qd.setupUi(qdd);
+ qdd->setModal(false);
+ qdd->show();
+}