compil fix for Qt-4.2

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22856 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-08 08:44:52 +00:00
parent b985659e05
commit e172898430
2 changed files with 9 additions and 2 deletions

View File

@ -22,8 +22,10 @@
#include "support/gettext.h"
#include <QChar>
#include <QPixmap>
#include <QListWidgetItem>
#include <QString>
using namespace std;
@ -283,7 +285,12 @@ void GuiSymbols::updateSymbolList()
SymbolsList::const_iterator const end = symbols.end();
for (SymbolsList::const_iterator it = symbols.begin(); it != end; ++it) {
char_type c = *it;
QChar::Category cat = QChar::Category((uint) c);
#if QT_VERSION >= 0x040300
QChar::Category const cat = QChar::category(uint(c));
#else
QChar const qc = uint(c);
QChar::Category const cat = qc.category();
#endif
// we do not want control or space characters
if (cat == QChar::Other_Control || cat == QChar::Separator_Space)
continue;

View File

@ -35,7 +35,7 @@ public:
void dispatchParams();
void enableView(bool enable);
bool isBufferDependent() const { return true; }
virtual kb_action getLfun() const { return LFUN_SELF_INSERT; }
virtual kb_action getLfun() const { return LFUN_SELF_INSERT; }
//@}
public Q_SLOTS: