Commit ca28befc authored by Victor Yacovlev's avatar Victor Yacovlev

MSVC warnings fixes

parent 3e0201de
......@@ -143,7 +143,7 @@ void MainButton::drawAddons(QPainter* painter)
if(direction==DOWN)painter->drawLines(downArrow);
if(direction==LEFT)painter->drawLines(leftArrow);
if(direction==RIGHT)painter->drawLines(rightArrow);
if(direction==TEXT)
if(direction==TEXTT)
{
if(!downFlag)painter->setPen(QColor(10,10,10));
QFont font("FreeSans");
......
......@@ -36,7 +36,7 @@
#define DOWN 2
#define LEFT 3
#define RIGHT 4
#define TEXT 5
#define TEXTT 5
......@@ -84,7 +84,7 @@ class MainButton : public QWidget
*/
~MainButton(){};
void setDirection(int d){direction=d;};
void setText(QString t){text=t;direction=TEXT;};
void setText(QString t){text=t;direction=TEXTT;};
bool isChecked(){return checked;};
void setCheckable(bool flag){checkable=true;};
void setChecked(bool flag)
......
......@@ -282,7 +282,7 @@ void MainButton::drawAddons(QPainter* painter)
if(direction==DOWN)painter->drawLines(downArrow);
if(direction==LEFT)painter->drawLines(leftArrow);
if(direction==RIGHT)painter->drawLines(rightArrow);
if(direction==TEXT)
if(direction==TEXTT)
{
if(!downFlag)painter->setPen(QColor(10,10,10));
QFont font("FreeSans");
......
......@@ -33,7 +33,7 @@
#define DOWN 2
#define LEFT 3
#define RIGHT 4
#define TEXT 5
#define TEXTT 5
......@@ -113,7 +113,7 @@ public:
*/
~MainButton(){};
inline void setDirection(int d){direction=d;}
inline void setText(const QString &t){text=t;direction=TEXT;}
inline void setText(const QString &t){text=t;direction=TEXTT;}
inline bool isChecked() const {return checked;}
inline void setCheckable(bool flag){Q_UNUSED(flag);checkable=true;}
inline void setChecked(bool flag)
......
......@@ -284,7 +284,7 @@ void MainButton::drawAddons(QPainter* painter)
if(direction==DOWN)painter->drawLines(downArrow);
if(direction==LEFT)painter->drawLines(leftArrow);
if(direction==RIGHT)painter->drawLines(rightArrow);
if(direction==TEXT)
if(direction==TEXTT)
{
if(!downFlag)painter->setPen(QColor(10,10,10));
QFont font("FreeSans");
......
......@@ -33,7 +33,7 @@
#define DOWN 2
#define LEFT 3
#define RIGHT 4
#define TEXT 5
#define TEXTT 5
......@@ -112,7 +112,7 @@ class MainButton : public QWidget
*/
~MainButton(){};
void setDirection(int d){direction=d;};
void setText(QString t){text=t;direction=TEXT;};
void setText(QString t){text=t;direction=TEXTT;};
bool isChecked(){return checked;};
void setCheckable(bool){checkable=true;};
void setChecked(bool flag)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment