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:
@@ -80,6 +80,11 @@ void FormEditorStack::add(const EditorData &data)
|
||||
|
||||
if (Designer::Constants::Internal::debug)
|
||||
qDebug() << "FormEditorStack::add" << data.widgetHost;
|
||||
|
||||
// Since we have 1 pixel splitters we enforce no frame
|
||||
// on the content widget
|
||||
if (QFrame *frame = qobject_cast<QFrame*>(data.widgetHost))
|
||||
frame->setFrameStyle(QFrame::NoFrame);
|
||||
}
|
||||
|
||||
int FormEditorStack::indexOf(const QDesignerFormWindowInterface *fw) const
|
||||
|
||||
Reference in New Issue
Block a user