SkDebuggerGUI::SkDebuggerGUI(QWidget *parent) :
QMainWindow(parent)
- , fCentralWidget(this)
+ , fCentralSplitter(this)
, fStatusBar(this)
, fToolBar(this)
, fActionOpen(this)
, fActionZoomIn(this)
, fActionZoomOut(this)
, fMapper(this)
- , fListWidget(&fCentralWidget)
- , fDirectoryWidget(&fCentralWidget)
+ , fListWidget(&fCentralSplitter)
+ , fDirectoryWidget(&fCentralSplitter)
, fCanvasWidget(this, &fDebugger)
, fImageWidget(&fDebugger)
, fMenuBar(this)
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,
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));
#include <QtGui/QListView>
#include <QtGui/QListWidget>
#include <QtGui/QMainWindow>
+#include <QtGui/QSplitter>
#include <QtGui/QStatusBar>
#include <QtGui/QToolBar>
#include <QtGui/QVBoxLayout>
void toggleFilter(QString string);
private:
- QWidget fCentralWidget;
+ QSplitter fCentralSplitter;
QStatusBar fStatusBar;
QToolBar fToolBar;
QWidget fSpacer;
QComboBox fFilter;
- QHBoxLayout fContainerLayout;
- QVBoxLayout fLeftColumnLayout;
+ QSplitter fLeftColumnSplitter;
+ QWidget fMainAndRightColumnWidget;
QVBoxLayout fMainAndRightColumnLayout;
QHBoxLayout fCanvasSettingsAndImageLayout;
QVBoxLayout fSettingsAndImageLayout;