Big-Ugly Style Update (#278)
* Bulk replaced tabs with spaces * Bulk removed trailing whitespace from lines * Replaced c-style comments with c++-style comments in file banners * Replace nested namespace definitions with single concise definitions (C++17), this keeps the indentation more manageable * Cleanup ordering and spacing of include directives * Bulk renaming of header file extensions from '.h' to '.hpp'. * Update CODING-STYLE.md * Update target_compile_features from cxx_std_11 to cxx_std_20. * Refresh .clang-format file. Still needs a lot of tweaking.
This commit is contained in:
+65
-64
@@ -1,88 +1,89 @@
|
||||
/* ReportBugDialog.cpp
|
||||
*
|
||||
* Copyright (C) 2019 Jaye Evins <evins@snaught.com>
|
||||
*
|
||||
* This file is part of gLabels-qt.
|
||||
*
|
||||
* gLabels-qt is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* gLabels-qt is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with gLabels-qt. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
// ReportBugDialog.cpp
|
||||
//
|
||||
// Copyright (C) 2019 Jaye Evins <evins@snaught.com>
|
||||
//
|
||||
// This file is part of gLabels-qt.
|
||||
//
|
||||
// gLabels-qt is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// gLabels-qt is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with gLabels-qt. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
|
||||
#include "ReportBugDialog.h"
|
||||
|
||||
#include "model/Version.h"
|
||||
#include "ReportBugDialog.hpp"
|
||||
|
||||
#include "model/Version.hpp"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDesktopServices>
|
||||
#include <QUrl>
|
||||
#include <QtDebug>
|
||||
|
||||
|
||||
namespace glabels
|
||||
{
|
||||
|
||||
///
|
||||
/// Constructor
|
||||
///
|
||||
ReportBugDialog::ReportBugDialog( QWidget *parent )
|
||||
: QDialog(parent)
|
||||
{
|
||||
setupUi( this );
|
||||
///
|
||||
/// Constructor
|
||||
///
|
||||
ReportBugDialog::ReportBugDialog( QWidget *parent )
|
||||
: QDialog(parent)
|
||||
{
|
||||
setupUi( this );
|
||||
|
||||
QString title = tr("How to Report a Bug");
|
||||
titleLabel->setText( QString( "<span style='font-size:14pt;font-weight:bold;'>%1</span>" ).arg( title ) );
|
||||
|
||||
QString directionsP1 =
|
||||
tr( "To submit a bug report, click on the button below. This will open a "
|
||||
"web browser to the gLabels github issue tracking page." );
|
||||
QString title = tr("How to Report a Bug");
|
||||
titleLabel->setText( QString( "<span style='font-size:14pt;font-weight:bold;'>%1</span>" ).arg( title ) );
|
||||
|
||||
p1Label->setText( QString( "<p>%1</p>" ).arg( directionsP1 ) );
|
||||
QString directionsP1 =
|
||||
tr( "To submit a bug report, click on the button below. This will open a "
|
||||
"web browser to the gLabels github issue tracking page." );
|
||||
|
||||
QString directionsP2 =
|
||||
tr( "Before submitting a report, look through the existing issues for similar "
|
||||
"or related bugs. If the issue has already been reported, please consider "
|
||||
"contributing to its report instead. Otherwise, create a new issue report. "
|
||||
"Please paste the following information into the issue description." );
|
||||
p1Label->setText( QString( "<p>%1</p>" ).arg( directionsP1 ) );
|
||||
|
||||
p2Label->setText( QString( "<p>%1</p>" ).arg( directionsP2 ) );
|
||||
QString directionsP2 =
|
||||
tr( "Before submitting a report, look through the existing issues for similar "
|
||||
"or related bugs. If the issue has already been reported, please consider "
|
||||
"contributing to its report instead. Otherwise, create a new issue report. "
|
||||
"Please paste the following information into the issue description." );
|
||||
|
||||
infoText->append( model::Version::details() );
|
||||
p2Label->setText( QString( "<p>%1</p>" ).arg( directionsP2 ) );
|
||||
|
||||
QString directionsP3 =
|
||||
tr( "Be sure to include a detailed description of the problem and how to "
|
||||
"recreate it. Attach any screenshots and/or example glabels project "
|
||||
"files that may illustrate the problem." );
|
||||
infoText->append( model::Version::details() );
|
||||
|
||||
p3Label->setText( QString( "<p>%1</p>" ).arg( directionsP3 ) );
|
||||
QString directionsP3 =
|
||||
tr( "Be sure to include a detailed description of the problem and how to "
|
||||
"recreate it. Attach any screenshots and/or example glabels project "
|
||||
"files that may illustrate the problem." );
|
||||
|
||||
}
|
||||
p3Label->setText( QString( "<p>%1</p>" ).arg( directionsP3 ) );
|
||||
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// "Copy" Button Clicked Slot
|
||||
///
|
||||
void ReportBugDialog::onCopyButtonClicked()
|
||||
{
|
||||
infoText->selectAll();
|
||||
infoText->copy();
|
||||
}
|
||||
///
|
||||
/// "Copy" Button Clicked Slot
|
||||
///
|
||||
void ReportBugDialog::onCopyButtonClicked()
|
||||
{
|
||||
infoText->selectAll();
|
||||
infoText->copy();
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// "Website" Button Clicked Slot
|
||||
///
|
||||
void ReportBugDialog::onWebsiteButtonClicked()
|
||||
{
|
||||
QDesktopServices::openUrl( QUrl(model::Version::BUG_WEBSITE) );
|
||||
}
|
||||
///
|
||||
/// "Website" Button Clicked Slot
|
||||
///
|
||||
void ReportBugDialog::onWebsiteButtonClicked()
|
||||
{
|
||||
QDesktopServices::openUrl( QUrl(model::Version::BUG_WEBSITE) );
|
||||
}
|
||||
|
||||
} // namespace glabels
|
||||
|
||||
Reference in New Issue
Block a user