To remove blank space, add none boder-style to QGraphicView.
And it should not be overwritten.
Change-Id: I50f6fad3a65d191faa4effd0c969c23b0821a140
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
if (selectedItem) {
//qDebug("%s", selectedItem->text().toLocal8Bit().data());
} else {
- qDebug("do nothing");
+ qDebug("show context menu");
+ /* do nothing */
}
}
{
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);