projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes #513 - crash when connection fails
[quassel.git]
/
src
/
uisupport
/
inputline.h
diff --git
a/src/uisupport/inputline.h
b/src/uisupport/inputline.h
index
453f286
..
dc6d691
100644
(file)
--- a/
src/uisupport/inputline.h
+++ b/
src/uisupport/inputline.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-0
8
by the Quassel Project *
+ * Copyright (C) 2005-0
9
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-31,27
+31,32
@@
class InputLine : public QLineEdit {
public:
InputLine(QWidget *parent = 0);
~InputLine();
public:
InputLine(QWidget *parent = 0);
~InputLine();
-
+
protected:
// virtual bool event(QEvent *);
virtual void keyPressEvent(QKeyEvent * event);
protected:
// virtual bool event(QEvent *);
virtual void keyPressEvent(QKeyEvent * event);
+ virtual bool eventFilter(QObject *watched, QEvent *event);
private slots:
void on_returnPressed();
void on_textChanged(QString newText);
private slots:
void on_returnPressed();
void on_textChanged(QString newText);
- bool addToHistory(const QString &text);
+ bool addToHistory(const QString &text
, bool temporary = false
);
signals:
void sendText(QString text);
private:
QStringList history;
signals:
void sendText(QString text);
private:
QStringList history;
+ QHash<int, QString> tempHistory;
qint32 idx;
TabCompleter *tabCompleter;
int bindModifier;
int jumpModifier;
qint32 idx;
TabCompleter *tabCompleter;
int bindModifier;
int jumpModifier;
+
+ void resetLine();
+ void showHistoryEntry();
};
#endif
};
#endif