From: Juergen Spitzmueller Date: Sat, 29 Dec 2018 10:47:37 +0000 (+0100) Subject: Fixup LocalLayout ui after [3847e0ef/lyxgit] X-Git-Tag: 2.3.3~85 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=07ba1d04fbdc2c860015d0833a63be57d38193ae;p=features.git Fixup LocalLayout ui after [3847e0ef/lyxgit] (cherry picked from commit a67c541d6b329ed2db6906904c1e1dbadc49aa0a) --- diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 07a067bcde..146d0abde7 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -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("

" + "%1

"); + 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("

%1

"); + static const QString vpar("

%1

"); // Flashy red bold text - static const QString ivpar("

" + static const QString ivpar("

" "%1

"); string const layout = fromqstr(locallayoutTE->document()->toPlainText().trimmed()); diff --git a/src/frontends/qt4/ui/LocalLayoutUi.ui b/src/frontends/qt4/ui/LocalLayoutUi.ui index 7202199ce6..8a942f5fb2 100644 --- a/src/frontends/qt4/ui/LocalLayoutUi.ui +++ b/src/frontends/qt4/ui/LocalLayoutUi.ui @@ -6,71 +6,15 @@ 0 0 - 377 - 434 + 331 + 376 - - - - - Qt::NoContextMenu - - - Errors reported in terminal. - - - - - - Qt::AlignCenter - - - - - - - Convert - - - - - - - Qt::NoContextMenu - - - Errors reported in terminal. - - - - - - Qt::AlignCenter - - - - - - - Edit - - - - - - - - - - &Validate - - - - + + Document-specific layout information @@ -83,6 +27,79 @@ + + + + + + + + + &Validate + + + + + + + Qt::NoContextMenu + + + Errors reported in terminal. + + + + + + Qt::AlignCenter + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Edit + + + + + + + Convert + + + + + + + Qt::NoContextMenu + + + Errors reported in terminal. + + + + + + Qt::AlignCenter + + + + +