diff options
author | Girish Ramakrishnan <girish@forwardbias.in> | 2009-11-27 09:52:30 +0530 |
---|---|---|
committer | Girish Ramakrishnan <girish@forwardbias.in> | 2009-11-27 09:52:30 +0530 |
commit | b79fa32f995de585e343ab2e794e78ab1045f348 (patch) | |
tree | b65e19b37efc5e11fa0ce3d5ba8f99e950afe811 | |
parent | c589f8957552de5b7f47dd21b83c2959b17e46fd (diff) |
Make toolbars of the same size
-rw-r--r-- | mainwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |