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
This commit is contained in:
Abdelrazak Younes 2006-08-17 09:03:26 +00:00
parent d150b99ed7
commit 4535977545
2 changed files with 10 additions and 10 deletions

View File

@ -24,8 +24,8 @@
#include "support/lstrings.h" #include "support/lstrings.h"
#include "support/std_ostream.h" #include "support/std_ostream.h"
#include <qlineedit.h> #include <QLineEdit>
#include <qwidget.h> #include <QWidget>
#include <sstream> #include <sstream>
@ -33,8 +33,8 @@ using lyx::support::isStrDbl;
using std::string; using std::string;
LengthValidator::LengthValidator(QWidget * parent, const char * name) LengthValidator::LengthValidator(QWidget * parent)
: QValidator(parent, name), : QValidator(parent),
no_bottom_(true), glue_length_(false) no_bottom_(true), glue_length_(false)
{} {}
@ -88,8 +88,8 @@ LengthValidator * unsignedLengthValidator(QLineEdit * ed)
PathValidator::PathValidator(bool acceptable_if_empty, PathValidator::PathValidator(bool acceptable_if_empty,
QWidget * parent, const char * name) QWidget * parent)
: QValidator(parent, name), : QValidator(parent),
acceptable_if_empty_(acceptable_if_empty), acceptable_if_empty_(acceptable_if_empty),
latex_doc_(false), latex_doc_(false),
tex_allows_spaces_(false) tex_allows_spaces_(false)

View File

@ -26,7 +26,8 @@
#include "lyxlength.h" #include "lyxlength.h"
#include "lyxgluelength.h" #include "lyxgluelength.h"
#include <qvalidator.h>
#include <QValidator>
class QWidget; class QWidget;
class QLineEdit; class QLineEdit;
@ -40,7 +41,7 @@ class LengthValidator : public QValidator
Q_OBJECT Q_OBJECT
public: public:
/// Define a validator for widget @c parent. /// 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. /** @returns QValidator::Acceptable if @c data is a LyXGlueLength.
* If not, returns QValidator::Intermediate. * If not, returns QValidator::Intermediate.
@ -98,8 +99,7 @@ public:
* If @c acceptable_if_empty is @c true then an empty path * If @c acceptable_if_empty is @c true then an empty path
* is regarded as acceptable. * is regarded as acceptable.
*/ */
PathValidator(bool acceptable_if_empty, PathValidator(bool acceptable_if_empty, QWidget * parent);
QWidget * parent, const char *name = 0);
/** @returns QValidator::Acceptable if @c data is a valid path. /** @returns QValidator::Acceptable if @c data is a valid path.
* If not, returns QValidator::Intermediate. * If not, returns QValidator::Intermediate.