Commit e70e4f5a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against q5.15 . This method was removed and unused here

parent c21490c9
......@@ -42,7 +42,7 @@ BitButton::BitButton(QWidget *parent) : QAbstractButton(parent), on_(false) , ov
size.setWidth(size.height());
}
setFixedSize(size.expandedTo(QApplication::globalStrut()));
setFixedSize(size);
this->setAttribute(Qt::WA_Hover, true);
}
......
......@@ -210,7 +210,6 @@ void KCalcButton::calcSizeHint() {
}
size_ += QSize(margin * 2, margin * 2);
size_ = size_.expandedTo(QApplication::globalStrut());
}
//------------------------------------------------------------------------------
......
......@@ -1023,5 +1023,5 @@ QSize KCalcDisplay::sizeHint() const {
QStyleOptionFrame option;
initStyleOption(&option);
return (style()->sizeFromContents(QStyle::CT_LineEdit, &option, sz.expandedTo(QApplication::globalStrut()), this));
return (style()->sizeFromContents(QStyle::CT_LineEdit, &option, sz, this));
}
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