summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Belyashov <Sergey.Belyashov@gmail.com>2011-01-25 19:41:07 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-01-25 19:43:27 (GMT)
commite881b19ba3f2f4bfda460e1a043f461fb0517d70 (patch)
tree0adc68c6df9643f4b4d5de156cb2870b1cc65755
parent648dbc62e9c4e3fc15613c86bbf3c33029d56366 (diff)
downloadQt-e881b19ba3f2f4bfda460e1a043f461fb0517d70.zip
Qt-e881b19ba3f2f4bfda460e1a043f461fb0517d70.tar.gz
Qt-e881b19ba3f2f4bfda460e1a043f461fb0517d70.tar.bz2
Added scrollbars support to the Linguist form preview.
Merge-request: 1030 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-rw-r--r--tools/linguist/linguist/formpreviewview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/linguist/linguist/formpreviewview.cpp b/tools/linguist/linguist/formpreviewview.cpp
index d46cf76..a2a6002 100644
--- a/tools/linguist/linguist/formpreviewview.cpp
+++ b/tools/linguist/linguist/formpreviewview.cpp
@@ -463,6 +463,8 @@ FormPreviewView::FormPreviewView(QWidget *parent, MultiDataModel *dataModel)
m_mdiArea = new QMdiArea(this);
m_mdiArea->addSubWindow(m_mdiSubWindow);
setCentralWidget(m_mdiArea);
+ m_mdiArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
+ m_mdiArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
}
void FormPreviewView::setSourceContext(int model, MessageItem *messageItem)