forked from qt-creator/qt-creator
Removed the gray border around the open editors widget
It looks wrong when a shadow is added, which a lot of window managers do these days. Whether is looks better when no shadow is added by the window manager is debatable. Reviewed-by: Jens Bache-Wiig
This commit is contained in:
@@ -39,7 +39,6 @@
|
||||
|
||||
using namespace Help::Internal;
|
||||
|
||||
const int gMargin = 4;
|
||||
const int gWidth = 300;
|
||||
const int gHeight = 200;
|
||||
|
||||
@@ -53,8 +52,7 @@ OpenPagesSwitcher::OpenPagesSwitcher(OpenPagesModel *model)
|
||||
|
||||
m_openPagesWidget->allowContextMenu(false);
|
||||
m_openPagesWidget->installEventFilter(this);
|
||||
m_openPagesWidget->setGeometry(gMargin, gMargin, gWidth - 2 * gMargin,
|
||||
gHeight - 2 * gMargin);
|
||||
m_openPagesWidget->setGeometry(0, 0, gWidth, gHeight);
|
||||
|
||||
connect(m_openPagesWidget, SIGNAL(closePage(QModelIndex)), this,
|
||||
SIGNAL(closePage(QModelIndex)));
|
||||
|
||||
Reference in New Issue
Block a user