astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2020-07-20 21:41:46 +02:00
parent d7f9dc25cd
commit 5fca5830c5
2 changed files with 6 additions and 7 deletions

View File

@ -10,7 +10,8 @@ void HelpBrowser::setHelpEngine(QHelpEngine *helpEngine)
mHelpEngine = helpEngine;
}
QVariant HelpBrowser::loadResource(int type, const QUrl &name){
QVariant HelpBrowser::loadResource(int type, const QUrl &name)
{
if (name.scheme() == "qthelp") {
QString url(name.toString());
while (url.indexOf("/./") > 0)

View File

@ -5,23 +5,21 @@
#include <QTextBrowser>
namespace Ui {
class HelpDialog;
class HelpDialog;
}
class QHelpEngine;
class HelpBrowser : public QTextBrowser
{
class HelpBrowser : public QTextBrowser {
public:
HelpBrowser(QWidget* parent = 0) : QTextBrowser(parent), mHelpEngine(nullptr) {}
void setHelpEngine(QHelpEngine *helpEngine);
QVariant loadResource (int type, const QUrl& name);
QVariant loadResource(int type, const QUrl& name);
private:
QHelpEngine* mHelpEngine;
};
class HelpDialog : public QDialog
{
class HelpDialog : public QDialog {
Q_OBJECT
public: