upgrade to qt 6 compliance
This commit is contained in:
@@ -40,7 +40,7 @@ ProjectPanel::ProjectPanel(QWidget *parent) :
|
||||
// Create main widget and its layout
|
||||
QWidget* central_widget = new QWidget(this);
|
||||
QVBoxLayout* layout = new QVBoxLayout(central_widget);
|
||||
layout->setMargin(0);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
SetWidgetWithPadding(central_widget);
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ ScopePanel::ScopePanel(QWidget* parent) :
|
||||
QVBoxLayout* layout = new QVBoxLayout(central);
|
||||
|
||||
QHBoxLayout* toolbar_layout = new QHBoxLayout();
|
||||
toolbar_layout->setMargin(0);
|
||||
toolbar_layout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
scope_type_combobox_ = new QComboBox();
|
||||
|
||||
|
||||
@@ -29,6 +29,11 @@ TimeBasedPanel::TimeBasedPanel(const QString &object_name, QWidget *parent) :
|
||||
{
|
||||
}
|
||||
|
||||
TimeBasedPanel::~TimeBasedPanel()
|
||||
{
|
||||
delete widget_;
|
||||
}
|
||||
|
||||
rational TimeBasedPanel::GetTime()
|
||||
{
|
||||
return widget_->GetTime();
|
||||
|
||||
@@ -32,6 +32,8 @@ class TimeBasedPanel : public PanelWidget
|
||||
public:
|
||||
TimeBasedPanel(const QString& object_name, QWidget *parent = nullptr);
|
||||
|
||||
virtual ~TimeBasedPanel() override;
|
||||
|
||||
void ConnectViewerNode(ViewerOutput *node);
|
||||
|
||||
void DisconnectViewerNode()
|
||||
|
||||
Reference in New Issue
Block a user