From 45359775458f5069833127dafa482fc71b382493 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 17 Aug 2006 09:03:26 +0000 Subject: [PATCH] get rid of QT3_SUPPORT and some cleanup git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14771 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/validators.C | 12 ++++++------ src/frontends/qt4/validators.h | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/frontends/qt4/validators.C b/src/frontends/qt4/validators.C index 2de6e5df00..34a2e4fa03 100644 --- a/src/frontends/qt4/validators.C +++ b/src/frontends/qt4/validators.C @@ -24,8 +24,8 @@ #include "support/lstrings.h" #include "support/std_ostream.h" -#include -#include +#include +#include #include @@ -33,8 +33,8 @@ using lyx::support::isStrDbl; using std::string; -LengthValidator::LengthValidator(QWidget * parent, const char * name) - : QValidator(parent, name), +LengthValidator::LengthValidator(QWidget * parent) + : QValidator(parent), no_bottom_(true), glue_length_(false) {} @@ -88,8 +88,8 @@ LengthValidator * unsignedLengthValidator(QLineEdit * ed) PathValidator::PathValidator(bool acceptable_if_empty, - QWidget * parent, const char * name) - : QValidator(parent, name), + QWidget * parent) + : QValidator(parent), acceptable_if_empty_(acceptable_if_empty), latex_doc_(false), tex_allows_spaces_(false) diff --git a/src/frontends/qt4/validators.h b/src/frontends/qt4/validators.h index 56bcc77a51..21784beb1d 100644 --- a/src/frontends/qt4/validators.h +++ b/src/frontends/qt4/validators.h @@ -26,7 +26,8 @@ #include "lyxlength.h" #include "lyxgluelength.h" -#include + +#include class QWidget; class QLineEdit; @@ -40,7 +41,7 @@ class LengthValidator : public QValidator Q_OBJECT public: /// Define a validator for widget @c parent. - LengthValidator(QWidget * parent, const char *name = 0); + LengthValidator(QWidget * parent); /** @returns QValidator::Acceptable if @c data is a LyXGlueLength. * If not, returns QValidator::Intermediate. @@ -98,8 +99,7 @@ public: * If @c acceptable_if_empty is @c true then an empty path * is regarded as acceptable. */ - PathValidator(bool acceptable_if_empty, - QWidget * parent, const char *name = 0); + PathValidator(bool acceptable_if_empty, QWidget * parent); /** @returns QValidator::Acceptable if @c data is a valid path. * If not, returns QValidator::Intermediate.