change: change code style to Linux style except indent.
This commit is contained in:
+30
-31
@@ -24,47 +24,46 @@
|
||||
#include <olive/core/core.h>
|
||||
#include <QObject>
|
||||
|
||||
namespace olive {
|
||||
namespace olive
|
||||
{
|
||||
|
||||
using namespace core;
|
||||
|
||||
class ColorCoding : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
class ColorCoding : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum Code {
|
||||
kRed,
|
||||
kMaroon,
|
||||
kOrange,
|
||||
kBrown,
|
||||
kYellow,
|
||||
kOlive,
|
||||
kLime,
|
||||
kGreen,
|
||||
kCyan,
|
||||
kTeal,
|
||||
kBlue,
|
||||
kNavy,
|
||||
kPink,
|
||||
kPurple,
|
||||
kSilver,
|
||||
kGray
|
||||
};
|
||||
enum Code {
|
||||
kRed,
|
||||
kMaroon,
|
||||
kOrange,
|
||||
kBrown,
|
||||
kYellow,
|
||||
kOlive,
|
||||
kLime,
|
||||
kGreen,
|
||||
kCyan,
|
||||
kTeal,
|
||||
kBlue,
|
||||
kNavy,
|
||||
kPink,
|
||||
kPurple,
|
||||
kSilver,
|
||||
kGray
|
||||
};
|
||||
|
||||
static QString GetColorName(int c);
|
||||
static QString GetColorName(int c);
|
||||
|
||||
static Color GetColor(int c);
|
||||
static Color GetColor(int c);
|
||||
|
||||
static Qt::GlobalColor GetUISelectorColor(const Color& c);
|
||||
static Qt::GlobalColor GetUISelectorColor(const Color &c);
|
||||
|
||||
static const QVector<Color>& standard_colors()
|
||||
{
|
||||
return colors_;
|
||||
}
|
||||
static const QVector<Color> &standard_colors()
|
||||
{
|
||||
return colors_;
|
||||
}
|
||||
|
||||
private:
|
||||
static QVector<Color> colors_;
|
||||
|
||||
static QVector<Color> colors_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user