Preferecnes: add the initial skeleton

This Preferences dialog should be visually similar to the
old one - the main difference is how it acts on the preferences.
It's also not based on .ui files since it's a very simple widget
I prefered to mount it by hand - no more than 6 lines of c++ code.

Right now we have only one preference page on this, and nothing
is hoocked up.

I've also changed mainwindow a bit to only show this dialog for
testing purposes.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-09-17 17:16:40 -03:00 committed by Dirk Hohndel
parent 255325e219
commit b7a476169d
5 changed files with 118 additions and 1 deletions

View file

@ -40,6 +40,7 @@
#include "divesitehelpers.h"
#include "windowtitleupdate.h"
#include "locationinformation.h"
#include "preferences/preferencesdialog.h"
#ifndef NO_USERMANUAL
#include "usermanual.h"
@ -254,6 +255,8 @@ MainWindow::MainWindow() : QMainWindow(),
ui.menubar->show();
set_git_update_cb(&updateProgress);
PreferencesDialogV2 *d = new PreferencesDialogV2();
d->show();
}
MainWindow::~MainWindow()