forked from qt-creator/qt-creator
Clean up layouts and use minisplitter everywhere
This patch replaces all uses of QSplitter with thin 1-pixel splitters. I also fixed dock widget layouts in main windows to do the same. Additionally I had to tweak the tabbars so they look good in mini splitter layouts to avoid a double left-border. Reviewed-by: thorbjorn
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
#endif
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/minisplitter.h>
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <projectexplorer/toolchain.h>
|
||||
@@ -585,7 +586,7 @@ void DebuggerManager::init()
|
||||
|
||||
d->m_threadsDock = uiSwitcher->createDockWidget(LANG_CPP, d->m_threadsWindow);
|
||||
|
||||
QSplitter *localsAndWatchers = new QSplitter(Qt::Vertical);
|
||||
QSplitter *localsAndWatchers = new Core::MiniSplitter(Qt::Vertical);
|
||||
localsAndWatchers->setWindowTitle(d->m_localsWindow->windowTitle());
|
||||
localsAndWatchers->addWidget(d->m_localsWindow);
|
||||
localsAndWatchers->addWidget(d->m_watchersWindow);
|
||||
|
||||
Reference in New Issue
Block a user