summaryrefslogtreecommitdiff
path: root/src/plugins/qmljsinspector/qmljstoolbarcolorbox.h
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@nokia.com>2012-03-23 12:39:19 +0100
committerKai Koehne <kai.koehne@nokia.com>2012-03-26 11:39:11 +0200
commitf14dffe68143b89405ba2616986dac52ae29cb0f (patch)
tree4dfac517fe7159a05d53ab750e17987552cbb5f8 /src/plugins/qmljsinspector/qmljstoolbarcolorbox.h
parentebeb5b7f4901efc228f8db9cbca8d25ffa540dbb (diff)
downloadqt-creator-f14dffe68143b89405ba2616986dac52ae29cb0f.tar.gz
QmlJSInspector: Remove Color Picker Tool
Change-Id: Ic1a158f3e96052fcf30071ec827c23a4a83625f5 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'src/plugins/qmljsinspector/qmljstoolbarcolorbox.h')
-rw-r--r--src/plugins/qmljsinspector/qmljstoolbarcolorbox.h75
1 files changed, 0 insertions, 75 deletions
diff --git a/src/plugins/qmljsinspector/qmljstoolbarcolorbox.h b/src/plugins/qmljsinspector/qmljstoolbarcolorbox.h
deleted file mode 100644
index 449804d139..0000000000
--- a/src/plugins/qmljsinspector/qmljstoolbarcolorbox.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-**
-** GNU Lesser General Public License Usage
-**
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this file.
-** Please review the following information to ensure the GNU Lesser General
-** Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** Other Usage
-**
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info@nokia.com.
-**
-**************************************************************************/
-#ifndef TOOLBARCOLORBOX_H
-#define TOOLBARCOLORBOX_H
-
-#include <QLabel>
-#include <QColor>
-#include <QPoint>
-
-QT_FORWARD_DECLARE_CLASS(QContextMenuEvent)
-QT_FORWARD_DECLARE_CLASS(QAction)
-
-namespace QmlJSInspector {
-
-class ToolBarColorBox : public QLabel
-{
- Q_OBJECT
-public:
- explicit ToolBarColorBox(QWidget *parent = 0);
- void setColor(const QColor &color);
- void setInnerBorderColor(const QColor &color);
- void setOuterBorderColor(const QColor &color);
-
-protected:
- void contextMenuEvent(QContextMenuEvent *ev);
- void mousePressEvent(QMouseEvent *ev);
- void mouseMoveEvent(QMouseEvent *ev);
-private slots:
- void copyColorToClipboard();
-
-private:
- QPixmap createDragPixmap(int size = 24) const;
-
-private:
- bool m_dragStarted;
- QPoint m_dragBeginPoint;
- QAction *m_copyHexColorAction;
- QColor m_color;
-
- QColor m_borderColorOuter;
- QColor m_borderColorInner;
-};
-
-} // namespace QmlJSInspector
-
-#endif // TOOLBARCOLORBOX_H