Reindentation and code style update

This commit is contained in:
ArsenArsen 2017-10-05 19:21:52 +02:00
parent a3bd380733
commit 3e6a3b0407
No known key found for this signature in database
GPG Key ID: 683D2F43B0CA4BD2
19 changed files with 88 additions and 84 deletions

View File

@ -1,3 +1,4 @@
# vim: set syntax=yaml :
AccessModifierOffset: -4 AccessModifierOffset: -4
AlignEscapedNewlinesLeft: false AlignEscapedNewlinesLeft: false
AlignTrailingComments: true AlignTrailingComments: true
@ -24,7 +25,7 @@ IndentFunctionDeclarationAfterType: false
IndentWidth: 4 IndentWidth: 4
Language: Cpp Language: Cpp
MaxEmptyLinesToKeep: 2 MaxEmptyLinesToKeep: 2
NamespaceIndentation: None NamespaceIndentation: All
ObjCSpaceAfterProperty: true ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 100 PenaltyBreakBeforeFirstCallParameter: 100

View File

@ -9,7 +9,9 @@
namespace ioutils { namespace ioutils {
extern QNetworkAccessManager networkManager; extern QNetworkAccessManager networkManager;
void getJson(QUrl target, QList<QPair<QString, QString>> headers, std::function<void(QJsonDocument, QByteArray, QNetworkReply *)> callback); void getJson(QUrl target,
QList<QPair<QString, QString>> headers,
std::function<void(QJsonDocument, QByteArray, QNetworkReply *)> callback);
void postJson(QUrl target, void postJson(QUrl target,
QList<QPair<QString, QString>> headers, QList<QPair<QString, QString>> headers,
QByteArray body, QByteArray body,

View File

@ -10,7 +10,8 @@ QPixmap fullscreenArea(bool cursor = true, qreal x = 0, qreal y = 0, qreal w = -
QPixmap window(WId wid, QScreen *w = QApplication::primaryScreen()); QPixmap window(WId wid, QScreen *w = QApplication::primaryScreen());
void toClipboard(QString value); void toClipboard(QString value);
QPoint smallestScreenCoordinate(); QPoint smallestScreenCoordinate();
QPixmap renderText(QString toRender, int padding = 5, QColor background = Qt::transparent, QColor pen = Qt::white, QFont font = QFont()); QPixmap
renderText(QString toRender, int padding = 5, QColor background = Qt::transparent, QColor pen = Qt::white, QFont font = QFont());
} }
#endif // SCREENSHOTUTIL_HPP #endif // SCREENSHOTUTIL_HPP