Merge commit 'ce2ca1381519a2e261d7f76dffa874d559d979c2' into staging
This commit is contained in:
commit
779f70057b
@ -1,16 +1,17 @@
|
|||||||
---
|
---
|
||||||
Language: Cpp
|
BasedOnStyle: Chromium
|
||||||
BasedOnStyle: Chromium
|
|
||||||
IndentWidth: 4
|
IndentWidth: 4
|
||||||
AlignConsecutiveMacros: false
|
|
||||||
AlignConsecutiveAssignments: false
|
|
||||||
AllowShortIfStatementsOnASingleLine: false
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
|
ColumnLimit: 140
|
||||||
|
---
|
||||||
|
Language: Cpp
|
||||||
|
AlignConsecutiveMacros: None
|
||||||
|
AlignConsecutiveAssignments: None
|
||||||
BraceWrapping:
|
BraceWrapping:
|
||||||
AfterFunction: true
|
AfterFunction: true
|
||||||
SplitEmptyFunction: false
|
SplitEmptyFunction: false
|
||||||
SplitEmptyRecord: false
|
SplitEmptyRecord: false
|
||||||
SplitEmptyNamespace: false
|
SplitEmptyNamespace: false
|
||||||
BreakBeforeBraces: Custom
|
BreakBeforeBraces: Custom
|
||||||
BreakConstructorInitializers: BeforeComma
|
BreakConstructorInitializers: BeforeComma
|
||||||
ColumnLimit: 140
|
|
||||||
Cpp11BracedListStyle: false
|
Cpp11BracedListStyle: false
|
||||||
|
@ -16,9 +16,8 @@
|
|||||||
#include "ui/pages/instance/OtherLogsPage.h"
|
#include "ui/pages/instance/OtherLogsPage.h"
|
||||||
#include "ui/pages/instance/WorldListPage.h"
|
#include "ui/pages/instance/WorldListPage.h"
|
||||||
#include "ui/pages/instance/ServersPage.h"
|
#include "ui/pages/instance/ServersPage.h"
|
||||||
#include "ui/pages/instance/GameOptionsPage.h"
|
|
||||||
|
|
||||||
class InstancePageProvider : public QObject, public BasePageProvider
|
class InstancePageProvider : protected QObject, public BasePageProvider
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
@ -68,7 +68,7 @@ bool JavaCommon::checkJVMArgs(QString jvmargs, QWidget *parent)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void JavaCommon::javaWasOk(QWidget *parent, JavaCheckResult result)
|
void JavaCommon::javaWasOk(QWidget *parent, const JavaCheckResult &result)
|
||||||
{
|
{
|
||||||
QString text;
|
QString text;
|
||||||
text += QObject::tr("Java test succeeded!<br />Platform reported: %1<br />Java version "
|
text += QObject::tr("Java test succeeded!<br />Platform reported: %1<br />Java version "
|
||||||
@ -83,7 +83,7 @@ void JavaCommon::javaWasOk(QWidget *parent, JavaCheckResult result)
|
|||||||
CustomMessageBox::selectable(parent, QObject::tr("Java test success"), text, QMessageBox::Information)->show();
|
CustomMessageBox::selectable(parent, QObject::tr("Java test success"), text, QMessageBox::Information)->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void JavaCommon::javaArgsWereBad(QWidget *parent, JavaCheckResult result)
|
void JavaCommon::javaArgsWereBad(QWidget *parent, const JavaCheckResult &result)
|
||||||
{
|
{
|
||||||
auto htmlError = result.errorLog;
|
auto htmlError = result.errorLog;
|
||||||
QString text;
|
QString text;
|
||||||
@ -93,7 +93,7 @@ void JavaCommon::javaArgsWereBad(QWidget *parent, JavaCheckResult result)
|
|||||||
CustomMessageBox::selectable(parent, QObject::tr("Java test failure"), text, QMessageBox::Warning)->show();
|
CustomMessageBox::selectable(parent, QObject::tr("Java test failure"), text, QMessageBox::Warning)->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void JavaCommon::javaBinaryWasBad(QWidget *parent, JavaCheckResult result)
|
void JavaCommon::javaBinaryWasBad(QWidget *parent, const JavaCheckResult &result)
|
||||||
{
|
{
|
||||||
QString text;
|
QString text;
|
||||||
text += QObject::tr(
|
text += QObject::tr(
|
||||||
|
@ -11,11 +11,11 @@ namespace JavaCommon
|
|||||||
bool checkJVMArgs(QString args, QWidget *parent);
|
bool checkJVMArgs(QString args, QWidget *parent);
|
||||||
|
|
||||||
// Show a dialog saying that the Java binary was usable
|
// Show a dialog saying that the Java binary was usable
|
||||||
void javaWasOk(QWidget *parent, JavaCheckResult result);
|
void javaWasOk(QWidget *parent, const JavaCheckResult &result);
|
||||||
// Show a dialog saying that the Java binary was not usable because of bad options
|
// Show a dialog saying that the Java binary was not usable because of bad options
|
||||||
void javaArgsWereBad(QWidget *parent, JavaCheckResult result);
|
void javaArgsWereBad(QWidget *parent, const JavaCheckResult &result);
|
||||||
// Show a dialog saying that the Java binary was not usable
|
// Show a dialog saying that the Java binary was not usable
|
||||||
void javaBinaryWasBad(QWidget *parent, JavaCheckResult result);
|
void javaBinaryWasBad(QWidget *parent, const JavaCheckResult &result);
|
||||||
// Show a dialog if we couldn't find Java Checker
|
// Show a dialog if we couldn't find Java Checker
|
||||||
void javaCheckNotFound(QWidget *parent);
|
void javaCheckNotFound(QWidget *parent);
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ JavaVersion::JavaVersion(const QString &rhs)
|
|||||||
operator=(rhs);
|
operator=(rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString JavaVersion::toString()
|
QString JavaVersion::toString() const
|
||||||
{
|
{
|
||||||
return m_string;
|
return m_string;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ public:
|
|||||||
|
|
||||||
bool requiresPermGen();
|
bool requiresPermGen();
|
||||||
|
|
||||||
QString toString();
|
QString toString() const;
|
||||||
|
|
||||||
int major()
|
int major()
|
||||||
{
|
{
|
||||||
|
@ -591,10 +591,7 @@ QVariant PackProfile::data(const QModelIndex &index, int role) const
|
|||||||
}
|
}
|
||||||
case Qt::DecorationRole:
|
case Qt::DecorationRole:
|
||||||
{
|
{
|
||||||
switch(column)
|
if (column == NameColumn) {
|
||||||
{
|
|
||||||
case NameColumn:
|
|
||||||
{
|
|
||||||
auto severity = patch->getProblemSeverity();
|
auto severity = patch->getProblemSeverity();
|
||||||
switch (severity)
|
switch (severity)
|
||||||
{
|
{
|
||||||
@ -606,11 +603,7 @@ QVariant PackProfile::data(const QModelIndex &index, int role) const
|
|||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
default:
|
return QVariant();
|
||||||
{
|
|
||||||
return QVariant();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
@ -28,7 +28,7 @@ struct GameType {
|
|||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
Unknown = -1,
|
Unknown = -1,
|
||||||
Survival = 0,
|
Survival,
|
||||||
Creative,
|
Creative,
|
||||||
Adventure,
|
Adventure,
|
||||||
Spectator
|
Spectator
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
#include <QObject>
|
||||||
class QAccessibleInterface;
|
class QAccessibleInterface;
|
||||||
|
|
||||||
QAccessibleInterface *groupViewAccessibleFactory(const QString &classname, QObject *object);
|
QAccessibleInterface *groupViewAccessibleFactory(const QString &classname, QObject *object);
|
||||||
|
@ -19,9 +19,8 @@
|
|||||||
nil.enable = true;
|
nil.enable = true;
|
||||||
|
|
||||||
clang-format = {
|
clang-format = {
|
||||||
enable =
|
enable = true;
|
||||||
false; # As most of the codebase is **not** formatted, we don't want clang-format yet
|
types_or = ["c" "c++" "java" "json" "objective-c"];
|
||||||
types_or = ["c" "c++"];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user