Commit e0782185 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Help mode: don't hide the frame for the open pages switcher

Also removed a superfluous elide mode setter.

Reviewed-by: kh1
parent 629a4d66
......@@ -62,6 +62,8 @@ OpenPagesManager::OpenPagesManager(QObject *parent)
m_model = new OpenPagesModel(this);
m_openPagesWidget = new OpenPagesWidget(m_model);
m_openPagesWidget->setFrameStyle(QFrame::NoFrame);
connect(m_openPagesWidget, SIGNAL(setCurrentPage(QModelIndex)), this,
SLOT(setCurrentPage(QModelIndex)));
connect(m_openPagesWidget, SIGNAL(closePage(QModelIndex)), this,
......
......@@ -53,7 +53,6 @@ OpenPagesSwitcher::OpenPagesSwitcher(OpenPagesModel *model)
m_openPagesWidget->allowContextMenu(false);
m_openPagesWidget->installEventFilter(this);
m_openPagesWidget->setTextElideMode(Qt::ElideMiddle);
m_openPagesWidget->setGeometry(gMargin, gMargin, gWidth - 2 * gMargin,
gHeight - 2 * gMargin);
......
......@@ -90,7 +90,6 @@ OpenPagesWidget::OpenPagesWidget(OpenPagesModel *model, QWidget *parent)
setIndentation(0);
setItemDelegate((m_delegate = new OpenPagesDelegate(this)));
setFrameStyle(QFrame::NoFrame);
setTextElideMode(Qt::ElideMiddle);
setAttribute(Qt::WA_MacShowFocusRect, false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment