diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-04-13 14:04:15 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-04-13 17:33:36 +0200 |
commit | e07821855c2aa29cd48ff9b4cb419e02124f38fa (patch) | |
tree | 3e40803494fdcaf689957da4de446e96ff4ebf09 /src | |
parent | 629a4d66c17c38a3f458d4aa90a9804aca5a4645 (diff) | |
download | qt-creator-e07821855c2aa29cd48ff9b4cb419e02124f38fa.tar.gz |
Help mode: don't hide the frame for the open pages switcher
Also removed a superfluous elide mode setter.
Reviewed-by: kh1
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/help/openpagesmanager.cpp | 2 | ||||
-rw-r--r-- | src/plugins/help/openpagesswitcher.cpp | 1 | ||||
-rw-r--r-- | src/plugins/help/openpageswidget.cpp | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/help/openpagesmanager.cpp b/src/plugins/help/openpagesmanager.cpp index 61a9e2a046..5396f05aac 100644 --- a/src/plugins/help/openpagesmanager.cpp +++ b/src/plugins/help/openpagesmanager.cpp @@ -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, diff --git a/src/plugins/help/openpagesswitcher.cpp b/src/plugins/help/openpagesswitcher.cpp index 65b1ad51bc..3a5ba82799 100644 --- a/src/plugins/help/openpagesswitcher.cpp +++ b/src/plugins/help/openpagesswitcher.cpp @@ -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); diff --git a/src/plugins/help/openpageswidget.cpp b/src/plugins/help/openpageswidget.cpp index ae539224fe..985e7a956c 100644 --- a/src/plugins/help/openpageswidget.cpp +++ b/src/plugins/help/openpageswidget.cpp @@ -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); |