Clean constructor of SubWindowAbstract

This commit is contained in:
2021-12-18 23:42:40 +00:00
parent 9d28051f38
commit a048d2e0df
2 changed files with 4 additions and 9 deletions
+1 -6
View File
@@ -35,7 +35,7 @@
#include "MdiSubWindow.h"
SubWindowAbstract::SubWindowAbstract( QWidget* parent, unsigned int category )
: QWidget( parent ), m_cSubWindow( NULL )
: QWidget{ parent }, m_uiCategory{ category }, m_cWindowName{ " " }
{
setParent( parent );
setVisible( false );
@@ -46,11 +46,6 @@ SubWindowAbstract::SubWindowAbstract( QWidget* parent, unsigned int category )
setWindowIcon( QIcon( ":/logos/calyp-icon.png" ) );
// setWidgetResizable( true );
m_pcLayout = NULL;
m_uiCategory = category;
m_cWindowName = QString( " " );
connect( this, SIGNAL( destroyed() ), this, SLOT( onDestroyed() ) );
}
+3 -3
View File
@@ -56,11 +56,11 @@ class SubWindowAbstract : public QWidget
Q_OBJECT
private:
QHBoxLayout* m_pcLayout;
QHBoxLayout* m_pcLayout{ nullptr };
unsigned int m_uiCategory;
QString m_cWindowName;
MdiSubWindow* m_cSubWindow;
MdiSubWindow* m_cSubWindow{ nullptr };
public:
enum SubWindowCategory
@@ -90,7 +90,7 @@ public:
*/
virtual void zoomToFit() = 0;
/**
* Scale the image (zoomed in or out) to speficied absolute zoom value (1.0 =
* Scale the image (zoomed in or out) to specified absolute zoom value (1.0 =
* original size).
*/
virtual void zoomToFactor( double factor, QPoint center = QPoint() ) = 0;