aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/skinned/shadedbar.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-12 21:03:34 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-12 21:03:34 +0000
commit7ef8d11baeaf1847ba7f1df5d858f8cffea9300d (patch)
treea741fb49db8834efd4b46d760b89082547eb2a9d /src/plugins/Ui/skinned/shadedbar.h
parent6f301f5880f7efce76ed46e7b502830642b87370 (diff)
downloadqmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.tar.gz
qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.tar.bz2
qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.zip
coding style fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9470 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/shadedbar.h')
-rw-r--r--src/plugins/Ui/skinned/shadedbar.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/Ui/skinned/shadedbar.h b/src/plugins/Ui/skinned/shadedbar.h
index e4ebb6b7f..c11c59d3a 100644
--- a/src/plugins/Ui/skinned/shadedbar.h
+++ b/src/plugins/Ui/skinned/shadedbar.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2007-2009 by Ilya Kotov *
+ * Copyright (C) 2007-2020 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -36,11 +36,11 @@ public:
ShadedBar(QWidget *parent = nullptr, uint slider1 = 0, uint slider2 = 0, uint slider3 = 0);
~ShadedBar();
- int value()
+ inline int value()
{
return m_value;
}
- int isPressed()
+ inline int isPressed()
{
return m_moving;
}
@@ -57,9 +57,9 @@ private slots:
private:
Skin *m_skin;
- bool m_moving;
- int press_pos;
- int m_max, m_min, m_pos, m_value, m_old, m_x;
+ bool m_moving = false;
+ int m_press_pos = 0;
+ int m_max = 100, m_min = 0, m_pos = 0, m_value = 0, m_old;
QPixmap m_pixmap;
int convert(int); // value = convert(position);
void draw();