Mercurial > hg > orthanc-stone
view Samples/Qt/BasicSceneWindow.ui @ 1314:9b126de2cde2 broker
Since the observer system now uses shared_ptr and many registrations are
done in the constructors, and since we cannot called shared_from_this() in
the constructors, it is mandatory to split construction from registration.
This has been done by making many ctors protected and replacing them
by factory methods that directly return shared_ptrs + added PostConstructor
method when base classes perform shared_from_this() calls too.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 16 Mar 2020 11:19:50 +0100 |
parents | 12b591d5d63c |
children |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>BasicSceneWindow</class> <widget class="QMainWindow" name="BasicSceneWindow"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>903</width> <height>634</height> </rect> </property> <property name="minimumSize"> <size> <width>500</width> <height>300</height> </size> </property> <property name="baseSize"> <size> <width>500</width> <height>300</height> </size> </property> <property name="windowTitle"> <string>Stone of Orthanc</string> </property> <property name="layoutDirection"> <enum>Qt::LeftToRight</enum> </property> <widget class="QWidget" name="mainWidget"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="layoutDirection"> <enum>Qt::LeftToRight</enum> </property> <layout class="QVBoxLayout" name="verticalLayout_2" stretch="0"> <property name="sizeConstraint"> <enum>QLayout::SetDefaultConstraint</enum> </property> <item> <widget class="OrthancStone::QStoneOpenGlWidget" name="centralWidget" native="true"> <property name="minimumSize"> <size> <width>0</width> <height>500</height> </size> </property> </widget> </item> </layout> </widget> <widget class="QMenuBar" name="menubar"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>903</width> <height>21</height> </rect> </property> <widget class="QMenu" name="menuTest"> <property name="title"> <string>Test</string> </property> </widget> <addaction name="menuTest"/> </widget> <widget class="QStatusBar" name="statusbar"/> </widget> <customwidgets> <customwidget> <class>QStoneOpenGlWidget</class> <extends>QWidget</extends> <header location="global">QStoneOpenGlWidget.h</header> </customwidget> </customwidgets> <resources/> <connections/> </ui>