Commit 25222ed7 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

lspclient: tweak setup of toolviews

parent 0156ce3a
...@@ -299,6 +299,7 @@ public: ...@@ -299,6 +299,7 @@ public:
QIcon::fromTheme(QStringLiteral("application-x-ms-dos-executable")), QIcon::fromTheme(QStringLiteral("application-x-ms-dos-executable")),
i18n("LSP Client"))); i18n("LSP Client")));
m_tabWidget = new QTabWidget(m_toolView.get()); m_tabWidget = new QTabWidget(m_toolView.get());
m_toolView->layout()->addWidget(m_tabWidget);
m_tabWidget->setFocusPolicy(Qt::NoFocus); m_tabWidget->setFocusPolicy(Qt::NoFocus);
m_tabWidget->setTabsClosable(true); m_tabWidget->setTabsClosable(true);
KAcceleratorManager::setNoAccel(m_tabWidget); KAcceleratorManager::setNoAccel(m_tabWidget);
......
...@@ -85,14 +85,12 @@ public: ...@@ -85,14 +85,12 @@ public:
QIcon::fromTheme(QStringLiteral("code-context")), QIcon::fromTheme(QStringLiteral("code-context")),
i18n("LSP Client Symbol Outline"))); i18n("LSP Client Symbol Outline")));
QWidget *container = new QWidget(m_toolview.get()); m_symbols = new QTreeWidget(m_toolview.get());
QHBoxLayout *layout = new QHBoxLayout(container);
m_symbols = new QTreeWidget();
m_symbols->setFocusPolicy(Qt::NoFocus); m_symbols->setFocusPolicy(Qt::NoFocus);
m_symbols->setLayoutDirection( Qt::LeftToRight ); m_symbols->setLayoutDirection(Qt::LeftToRight);
layout->addWidget(m_symbols, 10); m_toolview->layout()->setContentsMargins(0, 0, 0, 0);
layout->setContentsMargins(0,0,0,0); m_toolview->layout()->addWidget(m_symbols);
m_toolview->layout()->setSpacing(0);
QStringList titles; QStringList titles;
titles << i18nc("@title:column", "Symbols") << i18nc("@title:column", "Position"); titles << i18nc("@title:column", "Symbols") << i18nc("@title:column", "Position");
......
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