comparison mainwindow.cpp @ 53:3c46b2ac45d3

* Put proper labels &c in changeset items; colour branches and users; etc
author Chris Cannam
date Fri, 12 Nov 2010 16:48:18 +0000
parents 384420567575
children f583e44d9d31
comparison
equal deleted inserted replaced
52:384420567575 53:3c46b2ac45d3
1 /**************************************************************************** 1 /****************************************************************************
2 ** Copyright (C) Jari Korhonen, 2010 (under lgpl) 2 ** Copyright (C) Jari Korhonen, 2010 (under lgpl)
3 ****************************************************************************/ 3 ****************************************************************************/
4 4
5 #include "mainwindow.h"
6 #include "settingsdialog.h"
7 5
8 #include <QStringList> 6 #include <QStringList>
9 #include <QDir> 7 #include <QDir>
10 #include <QNetworkInterface> 8 #include <QNetworkInterface>
11 #include <QHostAddress> 9 #include <QHostAddress>
15 #include <QMessageBox> 13 #include <QMessageBox>
16 #include <QMenuBar> 14 #include <QMenuBar>
17 #include <QApplication> 15 #include <QApplication>
18 #include <QToolBar> 16 #include <QToolBar>
19 #include <QSettings> 17 #include <QSettings>
18
19 #include "mainwindow.h"
20 #include "settingsdialog.h"
21 #include "colourset.h"
20 22
21 23
22 MainWindow::MainWindow() 24 MainWindow::MainWindow()
23 { 25 {
24 QString wndTitle; 26 QString wndTitle;
1443 firstStart = settings.value("firststart", QVariant(true)).toBool(); 1445 firstStart = settings.value("firststart", QVariant(true)).toBool();
1444 1446
1445 initialFileTypesBits = (unsigned char) settings.value("viewFileTypes", QVariant(DEFAULT_HG_STAT_BITS)).toInt(); 1447 initialFileTypesBits = (unsigned char) settings.value("viewFileTypes", QVariant(DEFAULT_HG_STAT_BITS)).toInt();
1446 resize(size); 1448 resize(size);
1447 move(pos); 1449 move(pos);
1450
1451 ColourSet *cs = ColourSet::instance();
1452 cs->clearDefaultNames();
1453 cs->addDefaultName("");
1454 cs->addDefaultName("default");
1455 cs->addDefaultName(userInfo);
1448 } 1456 }
1449 1457
1450 1458
1451 void MainWindow::writeSettings() 1459 void MainWindow::writeSettings()
1452 { 1460 {