From b79fa32f995de585e343ab2e794e78ab1045f348 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 27 Nov 2009 09:52:30 +0530 Subject: Make toolbars of the same size --- mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index ba1cba0..e36452c 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -73,6 +73,11 @@ MainWindow::MainWindow(QWidget *parent) createScrapsToolbar(scene()); loadSettings(); // load the saved scraps and add them to the animations + // make the toolbars of the same size + const QSizeF toolBarSize = m_browserToolbar->effectiveSizeHint(Qt::PreferredSize).expandedTo(m_scrapsToolbar->effectiveSizeHint(Qt::PreferredSize)); + m_scrapsToolbar->resize(toolBarSize); + m_browserToolbar->resize(toolBarSize); + // init states QState *seeScraps = new QState; QState *browseWeb = new QState; -- cgit v1.2.3