diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-08 20:42:18 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-08 20:42:18 -0600 |
commit | 10b44ce36c2c0660f2fadd7b9f73690e7b6799dd (patch) | |
tree | 6997450b4fa2f651eb82809cf6dbba970fea0a9b /ui/qt5/horizonwizard.cc | |
parent | b035b598ad70567611f973a01e6045a308084566 (diff) | |
download | horizon-10b44ce36c2c0660f2fadd7b9f73690e7b6799dd.tar.gz horizon-10b44ce36c2c0660f2fadd7b9f73690e7b6799dd.tar.bz2 horizon-10b44ce36c2c0660f2fadd7b9f73690e7b6799dd.tar.xz horizon-10b44ce36c2c0660f2fadd7b9f73690e7b6799dd.zip |
Qt UI: Formatting and file heading fixes
Diffstat (limited to 'ui/qt5/horizonwizard.cc')
-rw-r--r-- | ui/qt5/horizonwizard.cc | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc index db2722a..5a6527d 100644 --- a/ui/qt5/horizonwizard.cc +++ b/ui/qt5/horizonwizard.cc @@ -1,3 +1,15 @@ +/* + * horizonwizard.cc - Implementation of the main Wizard class + * horizon-qt5, the Qt 5 user interface for + * Project Horizon + * + * Copyright (c) 2019 Adélie Linux and contributors. All rights reserved. + * This code is licensed under the AGPL 3.0 license, as noted in the + * LICENSE-code file in the root directory of this repository. + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + #include "horizonwizard.hh" #include "horizonhelpwindow.hh" @@ -11,10 +23,7 @@ #include "networkingpage.hh" #include "netsimplewifipage.hh" -using std::map; -using std::string; - -static map<int, string> help_id_map = { +static std::map<int, std::string> help_id_map = { {HorizonWizard::Page_Intro, "intro"}, {HorizonWizard::Page_Input, "input"}, {HorizonWizard::Page_Partition, "partition"}, @@ -70,8 +79,8 @@ HorizonWizard::HorizonWizard(QWidget *parent) : QWizard(parent) { nohelp.exec(); return; } - string helppath = ":/wizard_help/resources/" + - help_id_map.at(currentId()) + "-help.txt"; + std::string helppath = ":/wizard_help/resources/" + + help_id_map.at(currentId()) + "-help.txt"; QFile helpfile(helppath.c_str()); helpfile.open(QFile::ReadOnly); HorizonHelpWindow help(&helpfile, this); |