[GUI] Remove code for Qt < 5.9

This commit is contained in:
Chris Hennes
2021-03-30 15:38:26 -05:00
committed by wmayer
parent 67bbb61103
commit 098d7b9aee
57 changed files with 19 additions and 686 deletions

View File

@@ -127,11 +127,7 @@ void iisIconLabel::paintEvent ( QPaintEvent * event )
QRect boundingRect;
QFontMetrics fm(fnt);
#if QT_VERSION >= 0x040203
QString txt(fm.elidedText(myText, Qt::ElideRight, textRect.width()));
#else
QString txt = myText;
#endif
p.drawText(textRect, Qt::AlignLeft | Qt::AlignVCenter, txt, &boundingRect);

View File

@@ -77,11 +77,7 @@ void iisTaskBox::showHide()
if (m_foldStep)
return;
#if QT_VERSION >= 0x050000
m_foldPixmap = myGroup->grab(myGroup->rect());
#else
m_foldPixmap = QPixmap::grabWidget(myGroup, myGroup->rect());
#endif
if (myGroup->isVisible()) {
m_tempHeight = m_fullHeight = myGroup->height();
@@ -158,12 +154,10 @@ void iisTaskBox::paintEvent ( QPaintEvent * event )
QPainter p(this);
if (myDummy->isVisible()) {
#if QT_VERSION >= 0x040202
if (m_foldDirection < 0)
p.setOpacity((double)m_foldStep / myScheme->groupFoldSteps);
else
p.setOpacity((double)(myScheme->groupFoldSteps-m_foldStep) / myScheme->groupFoldSteps);
#endif
p.drawPixmap(myDummy->x(),myDummy->y(),m_foldPixmap);

View File

@@ -100,10 +100,8 @@ void iisTaskHeader::paintEvent ( QPaintEvent * event )
Q_UNUSED(event);
QPainter p(this);
#if QT_VERSION >= 0x040203
if (myScheme->headerAnimation)
p.setOpacity(m_opacity+0.7);
#endif
p.setPen(myScheme->headerBorder);
p.setBrush(myScheme->headerBackground);