mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 20:09:59 +00:00
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:
parent
b985659e05
commit
e172898430
@ -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;
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user