Commit 75881cdf authored by Laurent Montel's avatar Laurent Montel
Browse files

Remove old code

parent 4914691f
Pipeline #224316 passed with stage
in 50 seconds
......@@ -147,20 +147,12 @@ bool KWQQuizModel::checkAnswer(const QString & a)
if (!m_correctBlank.isEmpty()) {
QStringList la, ls;
if (ans.indexOf(';') > 0)
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
ls = ans.split(';', QString::SkipEmptyParts);
#else
ls = ans.split(';', Qt::SkipEmptyParts);
#endif
else
ls.append(ans);
if (m_correctBlank.indexOf(';') > 0)
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
la = m_correctBlank.split(';', QString::SkipEmptyParts);
#else
la = m_correctBlank.split(';', Qt::SkipEmptyParts);
#endif
else
la.append(m_correctBlank);
......
......@@ -61,13 +61,8 @@ void KWQTableDelegate::drawDecoration(QPainter* painter, const QStyleOptionViewI
if (option.state & QStyle::State_Selected) {
painter->fillRect(rect, option.palette.brush(cg, option.state & QStyle::State_HasFocus ?
QPalette::Base : QPalette::Highlight));
#if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
const QPixmap pm = selectedPixmap(pixmap, option.palette, option.state & QStyle::State_Enabled);
painter->drawPixmap(p, pm);
#else
QPixmap *pm = selected(pixmap, option.palette, option.state & QStyle::State_Enabled);
painter->drawPixmap(p, *pm);
#endif
} else {
painter->drawPixmap(p, pixmap);
}
......
Supports Markdown
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