Fix spaces to please Andre

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21203 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-10-25 15:56:32 +00:00
parent eab1d98ab4
commit 6981d14f80
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ using lyx::toqstr;
void ShortcutLineEdit::keyPressEvent(QKeyEvent * e)
{
int keyQt = e->key();
switch(e->key()) {
switch (e->key()) {
case Qt::Key_AltGr: //or else we get unicode salad
case Qt::Key_Shift:
case Qt::Key_Control:
@ -80,7 +80,7 @@ bool ShortcutLineEdit::event(QEvent* e)
}
QString const SearchLineEdit::hintMessage()
QString const SearchLineEdit::hintMessage() const
{
return toqstr("Search ...");
}

View File

@ -26,7 +26,7 @@ public:
ShortcutLineEdit(QWidget * parent) : QLineEdit(parent) {}
protected Q_SLOTS:
void keyPressEvent(QKeyEvent * e);
bool event(QEvent* e);
bool event(QEvent * e);
};
@ -37,7 +37,7 @@ protected Q_SLOTS:
class SearchLineEdit : public QLineEdit {
Q_OBJECT
public:
QString const hintMessage();
QString const hintMessage() const;
SearchLineEdit(QWidget * parent) : QLineEdit(parent) {}
protected Q_SLOTS:
void focusInEvent(QFocusEvent * e);