Clang-format (#3028)

* 1/3 Add .clang-format file and travis compilation check

* 2/3 Run clang-format

* 3/3 Fix compilation problems due to include reordering

* 3bis/3 AfterControlStatement: false
This commit is contained in:
ctrlaltca 2018-01-27 10:41:32 +01:00 committed by GitHub
parent 8dbdd24c8e
commit b29bd9e070
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
272 changed files with 13378 additions and 9535 deletions

View file

@ -1,11 +1,11 @@
#ifndef WINDOW_SETS_H
#define WINDOW_SETS_H
#include <QDialogButtonBox>
#include <QGridLayout>
#include <QLabel>
#include <QMainWindow>
#include <QSet>
#include <QDialogButtonBox>
#include <QLabel>
#include <QGridLayout>
class SetsModel;
class SetsProxyModel;
@ -14,7 +14,8 @@ class CardDatabase;
class QItemSelection;
class QTreeView;
class WndSets : public QMainWindow {
class WndSets : public QMainWindow
{
Q_OBJECT
private:
SetsModel *model;
@ -27,10 +28,16 @@ private:
QLabel *labNotes;
QGridLayout *mainLayout;
void rebuildMainLayout(int actionToTake);
enum {NO_SETS_SELECTED, SOME_SETS_SELECTED};
enum
{
NO_SETS_SELECTED,
SOME_SETS_SELECTED
};
public:
WndSets(QWidget *parent = 0);
~WndSets();
protected:
void selectRows(QSet<int> rows);
private slots:
@ -44,7 +51,7 @@ private slots:
void actDown();
void actTop();
void actBottom();
void actToggleButtons(const QItemSelection & selected, const QItemSelection & deselected);
void actToggleButtons(const QItemSelection &selected, const QItemSelection &deselected);
};
#endif