]> git.lyx.org Git - features.git/commitdiff
Fixup LocalLayout ui after [3847e0ef/lyxgit]
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 29 Dec 2018 10:47:37 +0000 (11:47 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 29 Dec 2018 10:47:37 +0000 (11:47 +0100)
src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/ui/LocalLayoutUi.ui

index 91a8241e5e066dde06c82f80cf382d4c5574c3b7..cea563da73d204fda7a63a54f7b6fedbb877965d 100644 (file)
@@ -632,8 +632,10 @@ void LocalLayout::hideConvert()
 
 void LocalLayout::textChanged()
 {
-       static const QString message =
-               qt_("Press button to check validity...");
+       // Flashy red bold text
+       static const QString ivpar("<p style=\"color: #c00000; font-weight: bold; text-align:left\">"
+                                  "%1</p>");
+       static const QString message = ivpar.arg(qt_("Validation required!"));
        string const layout =
                fromqstr(locallayoutTE->document()->toPlainText().trimmed());
 
@@ -673,9 +675,9 @@ void LocalLayout::convertPressed() {
 
 void LocalLayout::validate() {
        // Bold text
-       static const QString vpar("<p style=\"font-weight: bold;\">%1</p>");
+       static const QString vpar("<p style=\"font-weight: bold; text-align:left\">%1</p>");
        // Flashy red bold text
-       static const QString ivpar("<p style=\"color: #c00000; font-weight: bold; \">"
+       static const QString ivpar("<p style=\"color: #c00000; font-weight: bold; text-align:left\">"
                                   "%1</p>");
        string const layout =
                fromqstr(locallayoutTE->document()->toPlainText().trimmed());
index 7202199ce68a9c7f070f9965393bfbe1fc7d7df9..8a942f5fb2c3395e66d6bc4ac78259ebc3a2b9b0 100644 (file)
@@ -6,71 +6,15 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>377</width>
-    <height>434</height>
+    <width>331</width>
+    <height>376</height>
    </rect>
   </property>
   <property name="windowTitle">
    <string/>
   </property>
-  <layout class="QGridLayout" name="gridLayout">
-   <item row="3" column="2">
-    <widget class="QLabel" name="convertLB">
-     <property name="contextMenuPolicy">
-      <enum>Qt::NoContextMenu</enum>
-     </property>
-     <property name="toolTip">
-      <string>Errors reported in terminal.</string>
-     </property>
-     <property name="text">
-      <string/>
-     </property>
-     <property name="alignment">
-      <set>Qt::AlignCenter</set>
-     </property>
-    </widget>
-   </item>
-   <item row="3" column="0">
-    <widget class="QPushButton" name="convertPB">
-     <property name="text">
-      <string>Convert</string>
-     </property>
-    </widget>
-   </item>
-   <item row="1" column="2">
-    <widget class="QLabel" name="validLB">
-     <property name="contextMenuPolicy">
-      <enum>Qt::NoContextMenu</enum>
-     </property>
-     <property name="toolTip">
-      <string>Errors reported in terminal.</string>
-     </property>
-     <property name="text">
-      <string/>
-     </property>
-     <property name="alignment">
-      <set>Qt::AlignCenter</set>
-     </property>
-    </widget>
-   </item>
-   <item row="2" column="2">
-    <widget class="QPushButton" name="editPB">
-     <property name="text">
-      <string>Edit</string>
-     </property>
-    </widget>
-   </item>
-   <item row="2" column="0">
-    <widget class="QPushButton" name="validatePB">
-     <property name="toolTip">
-      <string/>
-     </property>
-     <property name="text">
-      <string>&amp;Validate</string>
-     </property>
-    </widget>
-   </item>
-   <item row="0" column="0" rowspan="2" colspan="3">
+  <layout class="QGridLayout" name="gridLayout_2">
+   <item row="0" column="0">
     <widget class="QTextEdit" name="locallayoutTE">
      <property name="toolTip">
       <string>Document-specific layout information</string>
      </property>
     </widget>
    </item>
+   <item row="1" column="0">
+    <layout class="QGridLayout" name="gridLayout">
+     <item row="0" column="0">
+      <widget class="QPushButton" name="validatePB">
+       <property name="toolTip">
+        <string/>
+       </property>
+       <property name="text">
+        <string>&amp;Validate</string>
+       </property>
+      </widget>
+     </item>
+     <item row="0" column="1">
+      <widget class="QLabel" name="validLB">
+       <property name="contextMenuPolicy">
+        <enum>Qt::NoContextMenu</enum>
+       </property>
+       <property name="toolTip">
+        <string>Errors reported in terminal.</string>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+       <property name="alignment">
+        <set>Qt::AlignCenter</set>
+       </property>
+      </widget>
+     </item>
+     <item row="0" column="2">
+      <spacer name="horizontalSpacer">
+       <property name="orientation">
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeHint" stdset="0">
+        <size>
+         <width>40</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item row="0" column="3">
+      <widget class="QPushButton" name="editPB">
+       <property name="text">
+        <string>Edit</string>
+       </property>
+      </widget>
+     </item>
+     <item row="1" column="0">
+      <widget class="QPushButton" name="convertPB">
+       <property name="text">
+        <string>Convert</string>
+       </property>
+      </widget>
+     </item>
+     <item row="1" column="1">
+      <widget class="QLabel" name="convertLB">
+       <property name="contextMenuPolicy">
+        <enum>Qt::NoContextMenu</enum>
+       </property>
+       <property name="toolTip">
+        <string>Errors reported in terminal.</string>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+       <property name="alignment">
+        <set>Qt::AlignCenter</set>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
   </layout>
  </widget>
  <includes>