REMOVE old QT<= 5.14 code
Ubuntu 22.04 use qt 1.15.3. In the code is still used qt code <5.10. A cleanup was done by removing qT code version used in ubuntu 18.04.
This commit is contained in:
@@ -270,9 +270,6 @@ QSize TaskPanel::minimumSizeHint() const
|
||||
TaskView::TaskView(QWidget *parent)
|
||||
: QScrollArea(parent),ActiveDialog(nullptr),ActiveCtrl(nullptr)
|
||||
{
|
||||
//addWidget(new TaskEditControl(this));
|
||||
//addWidget(new TaskAppearance(this));
|
||||
//addStretch();
|
||||
taskPanel = new TaskPanel(this);
|
||||
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
@@ -751,18 +748,11 @@ void TaskView::addTaskWatcher()
|
||||
taskPanel->addStretch();
|
||||
updateWatcher();
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
||||
// Workaround to avoid a crash in Qt. See also
|
||||
// https://forum.freecad.org/viewtopic.php?f=8&t=39187
|
||||
//
|
||||
// Notify the button box about a style change so that it can
|
||||
// safely delete the style animation of its push buttons.
|
||||
auto box = taskPanel->findChild<QDialogButtonBox*>();
|
||||
if (box) {
|
||||
QEvent event(QEvent::StyleChange);
|
||||
QApplication::sendEvent(box, &event);
|
||||
}
|
||||
#endif
|
||||
|
||||
taskPanel->setScheme(QSint::FreeCADPanelScheme::defaultScheme());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user