Merge pull request #2074 from G10h4ck/fix_retroshare_gui_missing_include

retroshare-gui: fix missing include in jsonapipage
This commit is contained in:
csoler 2020-10-08 21:19:43 +02:00 committed by GitHub
commit d5a1250f8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 9 deletions

View File

@ -38,7 +38,7 @@
class RsGxsForums;
/**
* Pointer to global instance of RsGxsChannels service implementation
* Pointer to global instance of RsGxsForums service implementation
* @jsonapi{development}
*/
extern RsGxsForums* rsGxsForums;

View File

@ -1,7 +1,7 @@
/*******************************************************************************
* gui/settings/JsonApiPage.h *
* *
* Copyright (C) 2018 Gioacchino Mazzurco <gio@eigenlab.org> *
* Copyright (C) 2018-2020 Gioacchino Mazzurco <gio@eigenlab.org> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Affero General Public License as *
@ -20,7 +20,8 @@
#pragma once
#include <retroshare-gui/configpage.h>
#include "retroshare-gui/configpage.h"
#include "gui/common/FilesDefs.h"
#include "ui_JsonApiPage.h"
class JsonApiPage : public ConfigPage
@ -30,14 +31,16 @@ class JsonApiPage : public ConfigPage
public:
JsonApiPage(QWidget * parent = nullptr, Qt::WindowFlags flags = 0);
~JsonApiPage() {}
~JsonApiPage() override = default;
/** Loads the settings for this page */
virtual QPixmap iconPixmap() const override
{
return FilesDefs::getPixmapFromQtResourcePath(
":/icons/svg/empty-circle.svg" );
}
virtual QPixmap iconPixmap() const
{ return FilesDefs::getPixmapFromQtResourcePath(":/icons/svg/empty-circle.svg"); }
virtual QString pageName() const { return tr("JSON API"); }
virtual QString helpText() const;
virtual QString pageName() const override { return tr("JSON API"); }
virtual QString helpText() const override;
/** Call this after start of libretroshare/Retroshare
* checks the settings and starts JSON API if required */