From 55a508a577fe5f58df59d2367bbe2a0e32846e5e Mon Sep 17 00:00:00 2001 From: ribes Date: Thu, 4 Feb 2010 16:51:54 +0000 Subject: [PATCH] - JobManager handle low resolution --- src/genericgui/BL_GenericGui.cxx | 3 ++- src/genericgui/BL_JobsManager_QT.cxx | 2 +- src/genericgui/BL_Summary.cxx | 2 +- src/genericgui/BL_Summary.hxx | 2 +- src/genericgui/JM_ResourceCatalog.cxx | 2 +- src/genericgui/JM_ResourceCatalog.hxx | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/genericgui/BL_GenericGui.cxx b/src/genericgui/BL_GenericGui.cxx index 888b84b..253b4b1 100644 --- a/src/genericgui/BL_GenericGui.cxx +++ b/src/genericgui/BL_GenericGui.cxx @@ -59,7 +59,8 @@ BL::GenericGui::GenericGui(BL::MainWindows_Wrap * wrapper) : QObject(wrapper->ge _job_tab->setModel(_model); /* Tab Central Widget */ - QWidget * central_widget = new QWidget(_tab_parent); + //QWidget * central_widget = new QWidget(_tab_parent); + QScrollArea * central_widget = new QScrollArea(_tab_parent); QSplitter * tab_central_widget = new QSplitter(Qt::Vertical, central_widget); tab_central_widget->addWidget(_jobs_table); diff --git a/src/genericgui/BL_JobsManager_QT.cxx b/src/genericgui/BL_JobsManager_QT.cxx index 5e75ecb..ff2c245 100644 --- a/src/genericgui/BL_JobsManager_QT.cxx +++ b/src/genericgui/BL_JobsManager_QT.cxx @@ -42,7 +42,7 @@ BL::JobsManager_QT::JobsManager_QT(QWidget * parent, BL::GenericGui * main_gui, // Widget Part - QWidget * main_widget = new QWidget(this); + QScrollArea * main_widget = new QScrollArea(this); _load_jobs = new QPushButton("Load Jobs"); _save_jobs = new QPushButton("Save Jobs"); diff --git a/src/genericgui/BL_Summary.cxx b/src/genericgui/BL_Summary.cxx index 4cb67fc..5e565cf 100644 --- a/src/genericgui/BL_Summary.cxx +++ b/src/genericgui/BL_Summary.cxx @@ -20,7 +20,7 @@ #include "BL_Summary.hxx" #include "BL_Traces.hxx" -BL::Summary::Summary(QWidget *parent, BL::JobsManager_QT * jobs_manager) : QWidget(parent) +BL::Summary::Summary(QWidget *parent, BL::JobsManager_QT * jobs_manager) : QScrollArea(parent) { DEBTRACE("Creating BL::Summary"); BL_ASSERT(parent); diff --git a/src/genericgui/BL_Summary.hxx b/src/genericgui/BL_Summary.hxx index b972388..f066bdf 100644 --- a/src/genericgui/BL_Summary.hxx +++ b/src/genericgui/BL_Summary.hxx @@ -25,7 +25,7 @@ namespace BL { - class Summary: public QWidget + class Summary: public QScrollArea { Q_OBJECT diff --git a/src/genericgui/JM_ResourceCatalog.cxx b/src/genericgui/JM_ResourceCatalog.cxx index 134f368..0ce262d 100644 --- a/src/genericgui/JM_ResourceCatalog.cxx +++ b/src/genericgui/JM_ResourceCatalog.cxx @@ -22,7 +22,7 @@ #include "JM_SalomeResource.hxx" #include "JM_EditSalomeResource.hxx" -JM::ResourceCatalog::ResourceCatalog(QWidget *parent, BL::SALOMEServices * salome_services) : QWidget(parent) +JM::ResourceCatalog::ResourceCatalog(QWidget *parent, BL::SALOMEServices * salome_services) : QScrollArea(parent) { DEBTRACE("Creating JM::ResourceCatalog"); BL_ASSERT(parent); diff --git a/src/genericgui/JM_ResourceCatalog.hxx b/src/genericgui/JM_ResourceCatalog.hxx index e051097..ba486da 100644 --- a/src/genericgui/JM_ResourceCatalog.hxx +++ b/src/genericgui/JM_ResourceCatalog.hxx @@ -29,7 +29,7 @@ namespace JM { - class ResourceCatalog: public QWidget + class ResourceCatalog: public QScrollArea { Q_OBJECT -- 2.39.2