screen too small fix again
This commit is contained in:
parent
779c4a87c9
commit
f7a7dff2a3
|
@ -40,13 +40,15 @@ DigiSettingsPanel::DigiSettingsPanel(Digitizer ** digi, unsigned int nDigi, QStr
|
|||
enableSignalSlot = false;
|
||||
|
||||
setWindowTitle("Digitizer Settings");
|
||||
setGeometry(0, 0, 1700, 850);
|
||||
|
||||
//====== resize window if screen too small
|
||||
QScreen * screen = QGuiApplication::primaryScreen();
|
||||
QRect screenGeo = screen->geometry();
|
||||
if( screenGeo.width() < 1700 || screenGeo.height() < 850) this->showMaximized();
|
||||
|
||||
if( screenGeo.width() < 1700 || screenGeo.height() < 850) {
|
||||
setGeometry(0, 0, screenGeo.width() - 100, screenGeo.height() - 100);
|
||||
}else{
|
||||
setGeometry(0, 0, 1700, 850);
|
||||
}
|
||||
|
||||
tabWidget = new QTabWidget(this);
|
||||
setCentralWidget(tabWidget);
|
||||
|
|
|
@ -54,13 +54,16 @@ Scope::Scope(Digitizer ** digi, unsigned int nDigi, ReadDataThread ** readDataTh
|
|||
this->readDataThread = readDataThread;
|
||||
|
||||
setWindowTitle("Scope");
|
||||
setGeometry(0, 0, 1000, 800);
|
||||
setWindowFlags( this->windowFlags() & ~Qt::WindowCloseButtonHint );
|
||||
|
||||
//====== resize window if screen too small
|
||||
QScreen * screen = QGuiApplication::primaryScreen();
|
||||
QRect screenGeo = screen->geometry();
|
||||
if( screenGeo.width() < 1000 || screenGeo.height() < 800) this->showMaximized();
|
||||
if( screenGeo.width() < 1000 || screenGeo.height() < 800) {
|
||||
setGeometry(0, 0, screenGeo.width() - 100, screenGeo.height() - 100);
|
||||
}else{
|
||||
setGeometry(0, 0, 1000, 800);
|
||||
}
|
||||
|
||||
enableSignalSlot = false;
|
||||
|
||||
|
|
|
@ -18,13 +18,17 @@ SingleSpectra::SingleSpectra(Digitizer ** digi, unsigned int nDigi, QString rawD
|
|||
isSignalSlotActive = true;
|
||||
|
||||
setWindowTitle("Single Histograms");
|
||||
setGeometry(0, 0, 1000, 800);
|
||||
|
||||
//setWindowFlags( this->windowFlags() & ~Qt::WindowCloseButtonHint );
|
||||
|
||||
//====== resize window if screen too small
|
||||
QScreen * screen = QGuiApplication::primaryScreen();
|
||||
QRect screenGeo = screen->geometry();
|
||||
if( screenGeo.width() < 1000 || screenGeo.height() < 800) this->showMaximized();
|
||||
if( screenGeo.width() < 1000 || screenGeo.height() < 800) {
|
||||
setGeometry(0, 0, screenGeo.width() - 100, screenGeo.height() - 100);
|
||||
}else{
|
||||
setGeometry(0, 0, 1000, 800);
|
||||
}
|
||||
|
||||
QWidget * layoutWidget = new QWidget(this);
|
||||
setCentralWidget(layoutWidget);
|
||||
|
|
|
@ -84,13 +84,14 @@ private:
|
|||
|
||||
inline void Encore::SetUpCanvas(){
|
||||
|
||||
setGeometry(0, 0, 1600, 1600);
|
||||
|
||||
//====== resize window if screen too small
|
||||
QScreen * screen = QGuiApplication::primaryScreen();
|
||||
QRect screenGeo = screen->geometry();
|
||||
if( screenGeo.width() < 1600 || screenGeo.height() < 1600) this->showMaximized();
|
||||
|
||||
if( screenGeo.width() < 1600 || screenGeo.height() < 1600) {
|
||||
setGeometry(0, 0, screenGeo.width() - 100, screenGeo.height() -100);
|
||||
}else{
|
||||
setGeometry(0, 0, 1600, 1600);
|
||||
}
|
||||
chkRunAnalyzer = new QCheckBox("Run Analyzer", this);
|
||||
layout->addWidget(chkRunAnalyzer, 0, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user