Commit bffca9b1 authored by Tobias Hunger's avatar Tobias Hunger

Kit: Simplify rendering of config widget

Do not bother to paint a nice gradient just to paint all over it
again.

Change-Id: Ia01dae59f48e3b7cd2923e28770e9d953028b22a
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent ba33fac6
......@@ -380,13 +380,5 @@ QLabel *KitManagerConfigWidget::createLabel(const QString &name, const QString &
return label;
}
void KitManagerConfigWidget::paintEvent(QPaintEvent *)
{
QPainter p(this);
if (m_background.size() != size())
m_background = Utils::DetailsWidget::createBackground(size(), 0, this);
p.drawPixmap(rect(), m_background);
}
} // namespace Internal
} // namespace ProjectExplorer
......@@ -95,7 +95,6 @@ private:
void showEvent(QShowEvent *event);
QLabel *createLabel(const QString &name, const QString &toolTip);
void paintEvent(QPaintEvent *ev);
QGridLayout *m_layout;
QToolButton *m_iconButton;
......@@ -108,7 +107,6 @@ private:
bool m_isDefaultKit;
bool m_fixingKit;
bool m_hasUniqueName;
QPixmap m_background;
QList<QAction *> m_actions;
mutable QString m_cachedDisplayName;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment