From: GiWoong Kim Date: Mon, 9 Nov 2015 02:35:28 +0000 (+0900) Subject: ui: remove unnecessary blank space in window X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~40^2~77 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49778a8ba0966a69e34949a1ce11b58a7fb59b02;p=sdk%2Femulator%2Fqemu.git 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 --- 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);