Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: debugger/QT/SkDebuggerGUI.cpp

Issue 79573002: Make the debugger left panel resizable. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « debugger/QT/SkDebuggerGUI.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « debugger/QT/SkDebuggerGUI.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698