diff options
author | Pierre Rossi <pierre.rossi@digia.com> | 2013-06-18 08:59:24 +0200 |
---|---|---|
committer | Pierre Rossi <pierre.rossi@digia.com> | 2013-06-18 10:34:15 +0200 |
commit | 1b065b291ece9e1228773544633cc21dd0bb4674 (patch) | |
tree | 3e77e6deaf05af0fa346830b2e51662ea6db0923 /examples/widgets | |
parent | c6144131d1f97bcd69682bb733a54f2cd777f127 (diff) |
cleaner content margins for the nested layouts
also remove QQUICKWEBENGINE env var
Diffstat (limited to 'examples/widgets')
-rw-r--r-- | examples/widgets/widgetwindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/widgets/widgetwindow.cpp b/examples/widgets/widgetwindow.cpp index 159952715..2cf2cfddd 100644 --- a/examples/widgets/widgetwindow.cpp +++ b/examples/widgets/widgetwindow.cpp @@ -43,6 +43,8 @@ #include "qwebcontentsview.h" +static const int margin = 1; + WidgetWindow::WidgetWindow() : m_webView(new QWebContentsView) , addressLineEdit(0) @@ -51,12 +53,14 @@ WidgetWindow::WidgetWindow() if (QIcon::themeName().isEmpty()) QIcon::setThemeName("oxygen"); - setGeometry(0, 0, 1024, 768); + setGeometry(0, 0, 800, 600); QVBoxLayout* layout = new QVBoxLayout; + layout->setContentsMargins(margin, margin, margin, margin); // Create a widget based address bar. QHBoxLayout* addressBar = new QHBoxLayout; + addressBar->setSpacing(margin); // Bigger buttons, less space between them QToolButton* backButton = new QToolButton; backButton->setIcon(QIcon::fromTheme("go-previous")); |