added some cli arg support #280

This commit is contained in:
itsmattkc
2019-01-09 13:31:00 +11:00
parent 59ae02d8dc
commit d798edfd05
3 changed files with 52 additions and 14 deletions
+2 -11
View File
@@ -56,7 +56,6 @@ MainWindow* mainWindow;
QTimer autorecovery_timer;
QString config_fn;
QString appName;
bool demoNoticeShown = false;
void MainWindow::setup_layout(bool reset) {
@@ -95,13 +94,6 @@ void MainWindow::setup_layout(bool reset) {
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent)
{
appName = "Olive (January 2019 | Alpha";
#ifdef GITHASH
appName += " | ";
appName += GITHASH;
#endif
appName += ")";
enable_launch_with_project = false;
setup_debug();
@@ -137,8 +129,6 @@ MainWindow::MainWindow(QWidget *parent) :
setTabPosition(Qt::AllDockWidgetAreas, QTabWidget::North);
updateTitle("");
setDockNestingEnabled(true);
layout()->invalidate();
@@ -239,9 +229,10 @@ MainWindow::~MainWindow() {
close_debug();
}
void MainWindow::launch_with_project(const char* s) {
void MainWindow::launch_with_project(const QString& s) {
project_url = s;
enable_launch_with_project = true;
demoNoticeShown = true;
}
void MainWindow::make_new_menu(QMenu *parent) {