From 49778a8ba0966a69e34949a1ce11b58a7fb59b02 Mon Sep 17 00:00:00 2001 From: GiWoong Kim Date: Mon, 9 Nov 2015 11:35:28 +0900 Subject: [PATCH] ui: remove unnecessary blank space in window To remove blank space, add none boder-style to QGraphicView. And it should not be overwritten. Change-Id: I50f6fad3a65d191faa4effd0c969c23b0821a140 Signed-off-by: GiWoong Kim --- tizen/src/ui/mainwindow.cpp | 3 ++- tizen/src/ui/skinview.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tizen/src/ui/mainwindow.cpp b/tizen/src/ui/mainwindow.cpp index 72a41f8212..b3af2bbd0c 100644 --- a/tizen/src/ui/mainwindow.cpp +++ b/tizen/src/ui/mainwindow.cpp @@ -200,7 +200,8 @@ void MainWindow::showContextMenu(const QPoint& pos) if (selectedItem) { //qDebug("%s", selectedItem->text().toLocal8Bit().data()); } else { - qDebug("do nothing"); + qDebug("show context menu"); + /* do nothing */ } } diff --git a/tizen/src/ui/skinview.cpp b/tizen/src/ui/skinview.cpp index 7a5e5d81a1..079c5fbc4c 100644 --- a/tizen/src/ui/skinview.cpp +++ b/tizen/src/ui/skinview.cpp @@ -37,8 +37,8 @@ SkinView::SkinView(QWidget *parent, QGraphicsScene *scene) : { this->grabPos = QPoint(-1, -1); - setStyleSheet("border-style: none"); - setStyleSheet(STYLE_TOOLTIP); + /* note: do not call setStyleSheet() separately for each style */ + setStyleSheet("border-style: none; " + QString(STYLE_TOOLTIP)); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); -- 2.34.1