mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 09:10:01 +02:00
made some changes to make clone and main window resize plot
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@4 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
parent
4624c65398
commit
216a9ada7c
@ -26,7 +26,7 @@ class SlsQt2DPlotLayout;
|
|||||||
/**
|
/**
|
||||||
*@short Sets up the clone plot widget
|
*@short Sets up the clone plot widget
|
||||||
*/
|
*/
|
||||||
class qCloneWidget:public QFrame{
|
class qCloneWidget:public QMainWindow{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -24,11 +24,11 @@ using namespace std;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
qCloneWidget::qCloneWidget(QWidget *parent,int id,QSize fSize,QString title,int numDim,SlsQt1DPlot*& plot1D,SlsQt2DPlotLayout*& plot2D):QFrame(parent,Qt::Popup|Qt::SubWindow),id(id){
|
qCloneWidget::qCloneWidget(QWidget *parent,int id,QSize fSize,QString title,int numDim,SlsQt1DPlot*& plot1D,SlsQt2DPlotLayout*& plot2D):QMainWindow(parent),id(id){
|
||||||
|
|
||||||
|
|
||||||
mainLayout = new QGridLayout(this);
|
/* mainLayout = new QGridLayout(this);
|
||||||
setLayout(mainLayout);
|
setLayout(mainLayout);*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -51,6 +51,7 @@ qCloneWidget::qCloneWidget(QWidget *parent,int id,QSize fSize,QString title,int
|
|||||||
cloneBox->setFlat(true);
|
cloneBox->setFlat(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cloneBox->setCentralWidget();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
boxSave = new QGroupBox(this);
|
boxSave = new QGroupBox(this);
|
||||||
@ -105,8 +106,8 @@ qCloneWidget::qCloneWidget(QWidget *parent,int id,QSize fSize,QString title,int
|
|||||||
|
|
||||||
gridClone->addWidget(boxSave,0,0);
|
gridClone->addWidget(boxSave,0,0);
|
||||||
mainLayout->addWidget(boxSave,1,1);*/
|
mainLayout->addWidget(boxSave,1,1);*/
|
||||||
|
/*
|
||||||
mainLayout->addWidget(cloneBox,0,0);
|
mainLayout->addWidget(cloneBox,0,0);*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user