]> git.lyx.org Git - features.git/commitdiff
fix #4430 . initial size of the "view source" window can shrunk now.
authorAndré Pönitz <poenitz@gmx.net>
Sat, 15 Nov 2008 21:55:17 +0000 (21:55 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Sat, 15 Nov 2008 21:55:17 +0000 (21:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27493 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiViewSource.cpp
src/frontends/qt4/ui/ViewSourceUi.ui

index 5941186b9894526d8232351348befcbc3bbfcacf..37eaa96efa0162ef49eb58bb9f1df6c4fbe30bc9 100644 (file)
@@ -57,6 +57,7 @@ ViewSourceWidget::ViewSourceWidget()
        // so we disable the signals here:
        document_->blockSignals(true);
        viewSourceTV->setDocument(document_);
+       viewSourceTV->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
        document_->blockSignals(false);
        viewSourceTV->setReadOnly(true);
        ///dialog_->viewSourceTV->setAcceptRichText(false);
index a43d8528c5448696e3fbf471aceb3d153a27e3bb..556961ba31cbe336008bff196de7794dd6c74146 100644 (file)
@@ -65,7 +65,7 @@
        <property name="sizeHint" >
         <size>
          <width>20</width>
-         <height>40</height>
+         <height>1</height>
         </size>
        </property>
       </spacer>