From 594725e513732148b146b7a53a4de964281b2b7d Mon Sep 17 00:00:00 2001 From: sungmin ha Date: Tue, 28 Jul 2015 17:05:43 +0900 Subject: [PATCH] skin: prevent skin resizing Change-Id: I4e70d80c0ce40c9b9c06ec58be089392b73cbd7d Signed-off-by: sungmin ha --- tizen/src/ui/controller/floatingcontroller.cpp | 1 + tizen/src/ui/mainwindow.cpp | 9 +++++++++ tizen/src/ui/mainwindow.h | 1 + 3 files changed, 11 insertions(+) diff --git a/tizen/src/ui/controller/floatingcontroller.cpp b/tizen/src/ui/controller/floatingcontroller.cpp index a80043d..fdd4f9b 100644 --- a/tizen/src/ui/controller/floatingcontroller.cpp +++ b/tizen/src/ui/controller/floatingcontroller.cpp @@ -45,6 +45,7 @@ FloatingController::FloatingController(ControllerForm *conForm, QHBoxLayout *layout = new QHBoxLayout(this); layout->setMargin(0); layout->setSpacing(0); + layout->setSizeConstraint(QLayout::SetFixedSize); QGraphicsScene *conScene = new QGraphicsScene(this); conScene->setBackgroundBrush(Qt::black); diff --git a/tizen/src/ui/mainwindow.cpp b/tizen/src/ui/mainwindow.cpp index dcf9599..96e8a45 100644 --- a/tizen/src/ui/mainwindow.cpp +++ b/tizen/src/ui/mainwindow.cpp @@ -348,6 +348,13 @@ void MainWindow::closeController() } /* override */ +void MainWindow::resize(const QSize &size) +{ + setFixedSize(QSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX)); + QWidget::resize(size); +} + +/* override */ void MainWindow::showEvent(QShowEvent *event) { qDebug("show main window"); @@ -355,6 +362,7 @@ void MainWindow::showEvent(QShowEvent *event) resize(uiInfo->getUiSize()); QWidget::showEvent(event); + setFixedSize(size()); } /* override */ @@ -365,6 +373,7 @@ void MainWindow::resizeEvent(QResizeEvent *event) setMask(uiInfo->getUiRegion()); QWidget::resizeEvent(event); + setFixedSize(size()); } /* override */ diff --git a/tizen/src/ui/mainwindow.h b/tizen/src/ui/mainwindow.h index 7a6541e..3a301bc 100644 --- a/tizen/src/ui/mainwindow.h +++ b/tizen/src/ui/mainwindow.h @@ -91,6 +91,7 @@ protected: void resizeEvent(QResizeEvent *event); void setMask(const QRegion ®ion); void closeEvent(QCloseEvent *); + void resize(const QSize &); QLabel *screenWidget; -- 2.7.4