From 29f052bc3d67a937f8575ac84f0b4c505cadd7af Mon Sep 17 00:00:00 2001 From: Edwin Leuven Date: Tue, 21 Oct 2008 09:07:15 +0000 Subject: [PATCH] make error dialog more comprehensible: 1. selects the 1st error so that the error message shows 2. adds labels to the listwidgets in the dialog 3. adds a tooltip to the error listwidget git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27007 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiErrorList.cpp | 2 +- src/frontends/qt4/ui/ErrorListUi.ui | 56 +++++++++++++++++------------ 2 files changed, 34 insertions(+), 24 deletions(-) diff --git a/src/frontends/qt4/GuiErrorList.cpp b/src/frontends/qt4/GuiErrorList.cpp index 2b0834d0d4..54eb83ebc6 100644 --- a/src/frontends/qt4/GuiErrorList.cpp +++ b/src/frontends/qt4/GuiErrorList.cpp @@ -51,7 +51,6 @@ GuiErrorList::GuiErrorList(GuiView & lv) void GuiErrorList::showEvent(QShowEvent * e) { - errorsLW->setCurrentRow(0); select(); e->accept(); } @@ -78,6 +77,7 @@ void GuiErrorList::updateContents() ErrorList::const_iterator end = errorList().end(); for (; it != end; ++it) errorsLW->addItem(toqstr(it->error)); + errorsLW->setCurrentRow(0); } diff --git a/src/frontends/qt4/ui/ErrorListUi.ui b/src/frontends/qt4/ui/ErrorListUi.ui index a731acdc0d..1f861a21d9 100644 --- a/src/frontends/qt4/ui/ErrorListUi.ui +++ b/src/frontends/qt4/ui/ErrorListUi.ui @@ -1,7 +1,4 @@ - - - ErrorListUi @@ -18,29 +15,43 @@ true - - - 9 - - - 6 - + + + + + &Errors: + + + errorsLW + + + + + + Selecting an error will show the error message in the panel below, +and jump the cursor to the location in the document where the error occured. + + + + + + + Description: + + + + - - 7 - 5 + 0 0 - - - - + Qt::Horizontal @@ -48,7 +59,7 @@ QSizePolicy::Expanding - + 20 20 @@ -56,7 +67,7 @@ - + &Close @@ -65,15 +76,14 @@ - - - qt_i18n.h - errorsLW descriptionTB closePB + + qt_i18n.h +