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

Also removed a superfluous elide mode setter.

Reviewed-by: kh1
This commit is contained in:
Thorbjørn Lindeijer
2010-04-13 14:04:15 +02:00
parent 629a4d66c1
commit e07821855c
3 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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);

View File

@@ -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);