Index: debugger/QT/SkDebuggerGUI.cpp |
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp |
index fad5c0cd554b37fa4b071d56922201a0cd9b9edf..f500dcf9e88b2898c1c85011992585f23e683011 100644 |
--- a/debugger/QT/SkDebuggerGUI.cpp |
+++ b/debugger/QT/SkDebuggerGUI.cpp |
@@ -29,7 +29,7 @@ __SK_FORCE_IMAGE_DECODER_LINKING; |
SkDebuggerGUI::SkDebuggerGUI(QWidget *parent) : |
QMainWindow(parent) |
- , fCentralWidget(this) |
+ , fCentralSplitter(this) |
, fStatusBar(this) |
, fToolBar(this) |
, fActionOpen(this) |
@@ -56,8 +56,8 @@ SkDebuggerGUI::SkDebuggerGUI(QWidget *parent) : |
, fActionZoomIn(this) |
, fActionZoomOut(this) |
, fMapper(this) |
- , fListWidget(&fCentralWidget) |
- , fDirectoryWidget(&fCentralWidget) |
+ , fListWidget(&fCentralSplitter) |
+ , fDirectoryWidget(&fCentralSplitter) |
, fCanvasWidget(this, &fDebugger) |
, fImageWidget(&fDebugger) |
, fMenuBar(this) |
@@ -801,11 +801,11 @@ void SkDebuggerGUI::setupUi(QMainWindow *SkDebuggerGUI) { |
fListWidget.setItemDelegate(new SkListWidget(&fListWidget)); |
fListWidget.setObjectName(QString::fromUtf8("listWidget")); |
- fListWidget.setMaximumWidth(250); |
+ fListWidget.setMinimumWidth(250); |
fFilter.addItem("--Filter By Available Commands--"); |
- fDirectoryWidget.setMaximumWidth(250); |
+ fDirectoryWidget.setMinimumWidth(250); |
fDirectoryWidget.setStyleSheet("QListWidget::Item {padding: 5px;}"); |
fCanvasWidget.setSizePolicy(QSizePolicy::Expanding, |
@@ -826,26 +826,25 @@ void SkDebuggerGUI::setupUi(QMainWindow *SkDebuggerGUI) { |
QSizePolicy::Expanding); |
fSettingsWidget.setMaximumWidth(250); |
- fLeftColumnLayout.setSpacing(6); |
- fLeftColumnLayout.addWidget(&fListWidget); |
- fLeftColumnLayout.addWidget(&fDirectoryWidget); |
+ fLeftColumnSplitter.addWidget(&fListWidget); |
+ fLeftColumnSplitter.addWidget(&fDirectoryWidget); |
+ fLeftColumnSplitter.setOrientation(Qt::Vertical); |
fCanvasSettingsAndImageLayout.setSpacing(6); |
fCanvasSettingsAndImageLayout.addWidget(&fCanvasWidget); |
fCanvasSettingsAndImageLayout.addLayout(&fSettingsAndImageLayout); |
- |
fMainAndRightColumnLayout.setSpacing(6); |
fMainAndRightColumnLayout.addLayout(&fCanvasSettingsAndImageLayout); |
fMainAndRightColumnLayout.addWidget(&fInspectorWidget); |
+ fMainAndRightColumnWidget.setLayout(&fMainAndRightColumnLayout); |
- fCentralWidget.setLayout(&fContainerLayout); |
- fContainerLayout.setSpacing(6); |
- fContainerLayout.setContentsMargins(11, 11, 11, 11); |
- fContainerLayout.addLayout(&fLeftColumnLayout); |
- fContainerLayout.addLayout(&fMainAndRightColumnLayout); |
+ fCentralSplitter.addWidget(&fLeftColumnSplitter); |
+ fCentralSplitter.addWidget(&fMainAndRightColumnWidget); |
+ fCentralSplitter.setStretchFactor(0, 0); |
+ fCentralSplitter.setStretchFactor(1, 1); |
- SkDebuggerGUI->setCentralWidget(&fCentralWidget); |
+ SkDebuggerGUI->setCentralWidget(&fCentralSplitter); |
SkDebuggerGUI->setStatusBar(&fStatusBar); |
fToolBar.setIconSize(QSize(32, 32)); |