From f19c54c167659d8476f445b5c22a5e5237b50c93 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 29 Jun 2015 18:52:07 +0000 Subject: skinned: reverted previous commits git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5189 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Ui/skinned/horizontalslider.h | 65 ------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 src/plugins/Ui/skinned/horizontalslider.h (limited to 'src/plugins/Ui/skinned/horizontalslider.h') diff --git a/src/plugins/Ui/skinned/horizontalslider.h b/src/plugins/Ui/skinned/horizontalslider.h deleted file mode 100644 index c69bf4bbe..000000000 --- a/src/plugins/Ui/skinned/horizontalslider.h +++ /dev/null @@ -1,65 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2015 by Ilya Kotov * - * forkotov02@hotmail.ru * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - ***************************************************************************/ -#ifndef HORIZONTALSLIDER_H -#define HORIZONTALSLIDER_H - -#include -#include - -class Skin; -class PixmapWidget; -/** - @author Ilya Kotov -*/ -class HorizontalSlider : public QWidget -{ -Q_OBJECT -public: - HorizontalSlider(QWidget *parent = 0); - - ~HorizontalSlider(); - -public slots: - void setPos(int pos, int max); - -signals: - void sliderMoved (int); - -private slots: - void updateSkin(); - -private: - Skin *m_skin; - PixmapWidget *m_scroll; - int m_old; - bool m_moving, m_pressed; - int press_pos; - int m_min, m_max, m_value, pos, m_pos; - int convert(int); // value = convert(position); - QColor m_normal, m_normal_bg; - -protected: - void paintEvent(QPaintEvent*); - void mousePressEvent(QMouseEvent*); - void mouseReleaseEvent(QMouseEvent*); - void mouseMoveEvent(QMouseEvent*); -}; - -#endif -- cgit v1.2.3-13-gbd6f