forked from qt-creator/qt-creator
Fix some warnings about unused variables
Change-Id: Ib23d45e3a3523014826a863601b2f7f57dcb8e40 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -85,6 +85,7 @@ void CommentDelegate::updateEditorGeometry(QWidget *editor,
|
|||||||
const QStyleOptionViewItem &option,
|
const QStyleOptionViewItem &option,
|
||||||
const QModelIndex &index) const
|
const QModelIndex &index) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(index)
|
||||||
editor->setGeometry(option.rect);
|
editor->setGeometry(option.rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,6 +105,9 @@ QWidget *CommentTitleDelegate::createEditor(QWidget *parent,
|
|||||||
const QStyleOptionViewItem &option,
|
const QStyleOptionViewItem &option,
|
||||||
const QModelIndex &index) const
|
const QModelIndex &index) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(option)
|
||||||
|
Q_UNUSED(index)
|
||||||
|
|
||||||
auto *editor = new QComboBox(parent);
|
auto *editor = new QComboBox(parent);
|
||||||
editor->setEditable(true);
|
editor->setEditable(true);
|
||||||
editor->setCompleter(completer());
|
editor->setCompleter(completer());
|
||||||
|
|||||||
@@ -126,8 +126,6 @@ QIcon paintPreview(const QColor& background)
|
|||||||
|
|
||||||
QIcon paintPreview(const EasingCurve &curve, const QColor& background, const QColor& curveColor)
|
QIcon paintPreview(const EasingCurve &curve, const QColor& background, const QColor& curveColor)
|
||||||
{
|
{
|
||||||
const QColor curveLine = Theme::getColor(Theme::DStextColor);
|
|
||||||
|
|
||||||
QPixmap pm(iconWidth, iconHeight);
|
QPixmap pm(iconWidth, iconHeight);
|
||||||
pm.fill(background);
|
pm.fill(background);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user