forked from qt-creator/qt-creator
Valgrind: Remove dead code
Change-Id: I77fdb0f07dabf742bccd88016463b01f45c011ca Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -18,7 +18,6 @@ HEADERS += \
|
|||||||
callgrindtool.h \
|
callgrindtool.h \
|
||||||
callgrindvisualisation.h \
|
callgrindvisualisation.h \
|
||||||
callgrindengine.h \
|
callgrindengine.h \
|
||||||
workarounds.h \
|
|
||||||
callgrindtextmark.h \
|
callgrindtextmark.h \
|
||||||
memchecktool.h \
|
memchecktool.h \
|
||||||
memcheckerrorview.h \
|
memcheckerrorview.h \
|
||||||
@@ -37,7 +36,6 @@ SOURCES += \
|
|||||||
callgrindtool.cpp \
|
callgrindtool.cpp \
|
||||||
callgrindvisualisation.cpp \
|
callgrindvisualisation.cpp \
|
||||||
callgrindengine.cpp \
|
callgrindengine.cpp \
|
||||||
workarounds.cpp \
|
|
||||||
callgrindtextmark.cpp \
|
callgrindtextmark.cpp \
|
||||||
memchecktool.cpp \
|
memchecktool.cpp \
|
||||||
memcheckerrorview.cpp \
|
memcheckerrorview.cpp \
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ QtcPlugin {
|
|||||||
"valgrindplugin.cpp", "valgrindplugin.h",
|
"valgrindplugin.cpp", "valgrindplugin.h",
|
||||||
"valgrindrunner.cpp", "valgrindrunner.h",
|
"valgrindrunner.cpp", "valgrindrunner.h",
|
||||||
"valgrindsettings.cpp", "valgrindsettings.h",
|
"valgrindsettings.cpp", "valgrindsettings.h",
|
||||||
"workarounds.cpp", "workarounds.h",
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
**
|
|
||||||
** Copyright (C) 2016 The Qt Company Ltd.
|
|
||||||
** Contact: https://www.qt.io/licensing/
|
|
||||||
**
|
|
||||||
** This file is part of Qt Creator.
|
|
||||||
**
|
|
||||||
** Commercial License Usage
|
|
||||||
** Licensees holding valid commercial Qt licenses may use this file in
|
|
||||||
** accordance with the commercial license agreement provided with the
|
|
||||||
** Software or, alternatively, in accordance with the terms contained in
|
|
||||||
** a written agreement between you and The Qt Company. For licensing terms
|
|
||||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
||||||
** information use the contact form at https://www.qt.io/contact-us.
|
|
||||||
**
|
|
||||||
** GNU General Public License Usage
|
|
||||||
** Alternatively, this file may be used under the terms of the GNU
|
|
||||||
** General Public License version 3 as published by the Free Software
|
|
||||||
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
||||||
** included in the packaging of this file. Please review the following
|
|
||||||
** information to ensure the GNU General Public License requirements will
|
|
||||||
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
|
||||||
**
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#include "workarounds.h"
|
|
||||||
|
|
||||||
#include <QPalette>
|
|
||||||
|
|
||||||
#include <utils/stylehelper.h>
|
|
||||||
|
|
||||||
QPalette panelPalette(const QPalette &oldPalette, bool lightColored)
|
|
||||||
{
|
|
||||||
QColor color = Utils::StyleHelper::panelTextColor(lightColored);
|
|
||||||
QPalette pal = oldPalette;
|
|
||||||
pal.setBrush(QPalette::All, QPalette::WindowText, color);
|
|
||||||
pal.setBrush(QPalette::All, QPalette::ButtonText, color);
|
|
||||||
pal.setBrush(QPalette::All, QPalette::Foreground, color);
|
|
||||||
color.setAlpha(100);
|
|
||||||
pal.setBrush(QPalette::Disabled, QPalette::WindowText, color);
|
|
||||||
pal.setBrush(QPalette::Disabled, QPalette::ButtonText, color);
|
|
||||||
pal.setBrush(QPalette::Disabled, QPalette::Foreground, color);
|
|
||||||
return pal;
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
**
|
|
||||||
** Copyright (C) 2016 The Qt Company Ltd.
|
|
||||||
** Contact: https://www.qt.io/licensing/
|
|
||||||
**
|
|
||||||
** This file is part of Qt Creator.
|
|
||||||
**
|
|
||||||
** Commercial License Usage
|
|
||||||
** Licensees holding valid commercial Qt licenses may use this file in
|
|
||||||
** accordance with the commercial license agreement provided with the
|
|
||||||
** Software or, alternatively, in accordance with the terms contained in
|
|
||||||
** a written agreement between you and The Qt Company. For licensing terms
|
|
||||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
||||||
** information use the contact form at https://www.qt.io/contact-us.
|
|
||||||
**
|
|
||||||
** GNU General Public License Usage
|
|
||||||
** Alternatively, this file may be used under the terms of the GNU
|
|
||||||
** General Public License version 3 as published by the Free Software
|
|
||||||
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
||||||
** included in the packaging of this file. Please review the following
|
|
||||||
** information to ensure the GNU General Public License requirements will
|
|
||||||
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
|
||||||
**
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <qglobal.h>
|
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
|
||||||
class QPalette;
|
|
||||||
QT_END_NAMESPACE
|
|
||||||
|
|
||||||
///FIXME: remove this once https://bugreports.qt.io/browse/QTCREATORBUG-3247 gets fixed
|
|
||||||
QPalette panelPalette(const QPalette &oldPalette, bool lightColored = false);
|
|
||||||
Reference in New Issue
Block a user